LAMP Yükleme
OpenSUSE Tumbleweed LAMP yükleme hakkında rehber
Bu rehber sırasında terminal kullanılacaktır.
Aşağıdaki Komutları yazalım...
sudo su
Apache2
Apache2 Yükleme
sudo zypper --gpg-auto-import-keys in -y apache2
Apache2 Başlatma
sudo systemctl start apache2
Güvenlik Duvarı?
Eğer firewalld aktif ise yapmanız gereken port firewall eklemek. Aşağıdaki komut ile kolayca ekliyebilirsin.
sudo firewall-cmd --zone=public --add-port=80/tcp --permanent && sudo firewall-cmd --reload
Apache2 Test Etmek
/srv/www/htdocs/
klasörüne index.html dosyası oluşturalım.
touch /srv/www/htdocs/index.html && echo "<html><body><h1>Welcome to my web site!</h1></body></html>" | tee /srv/www/htdocs/index.html
PHP8 Yükleme
sudo zypper --gpg-auto-import-keys in -y php8 php8-mysql apache2-mod_php8
Apache2 Başlatma
sudo systemctl start apache2
Ayarlamalar
a2enmod php8
sudo echo "AddType application/x-httpd-php .php" >> /etc/apache2/mod_mime-defaults.conf
MariaDB & MySQL
Yükleme
sudo zypper --gpg-auto-import-keys in -y mariadb mariadb-tools
MariaDB Başlatma
sudo systemctl start mysql
Ayarlamalar
sudo mysql_secure_installation
aşağıdaki gibi soruları yanıtlayın.
Enter current password for root (enter for none): Just press the Enter
Set root password? [Y/n]: Y
New password: Parola girin
Re-enter new password: Parolayı Tekrar Girin
Remove anonymous users? [Y/n]: Y
Disallow root login remotely? [Y/n]: Y
Remove test database and access to it? [Y/n]: Y
Reload privilege tables now? [Y/n]: Y
MYSQL bağlanmak isterseniz.
parolanızı giriniz
sudo mysql -u root -p
Last updated
Was this helpful?