openSUSE
Installeren
Lamp, phpMyAdmin & Wordpress
- ip a
- sudo zypper update
- sudo zypper install apache2
- sudo systemctl start apache2
- sudo systemctl enable apache2
- systemctl status apache2
- echo "<h1>Apache2 is running
fine on openSUSE Leap</h1>" | sudo tee
/srv/www/htdocs/index.html
- sudo firewall-cmd --permanent
--add-port=80/tcp
- sudo firewall-cmd --permanent
--add-port=443/tcp
- sudo firewall-cmd --reload
- Check website http://ipaddress
- sudo zypper install mariadb
mariadb-client
- sudo systemctl start mariadb
- sudo systemctl enable mariadb
- sudo systemctl status mariadb
- sudo mysql_secure_installation
- wachtwoord
- y
- y (zelfde root password invullen)
- de rest van de vragen yes beantwoorden
- sudo zypper install php php-mysql php-gd
php-mbstring apache2-mod_php7
- sudo a2enmod php7
- sudo systemctl restart apache2
- echo "<?php phpinfo();
?>" | sudo tee /srv/www/htdocs/info.php
- sudo zypper install phpMyAdmin
- sudo systemctl restart apache2
- Ga naar website: http://ipaddress/phpMyAdmin (LETOP HOOFDLETTERS IN
MyAdmin)
Wordpress installeren
Note: Hou de default namen aan, als het
volgens opdracht andere gebruikersnaam of ww moet zijn verander het dan!
- mysql -u root -p
- (login)
- CREATE DATABASE wordpress;
- CREATE USER 'wpuser'@'localhost'
IDENTIFIED BY 'wppassword';
- GRANT ALL PRIVILEGES ON wordpress.* TO
'wpuser'@'localhost';
- FLUSH PRIVILEGES;
- exit
- wget http://wordpress.org/latest.tar.gz
- tar -zxvf latest.tar.gz
- sudo mv wordpress/* /srv/www/htdocs
- sudo cp /srv/www/htdocs/wp-config-sample.php
/srv/www/htdocs/wp-config.php
- sudo nano /srv/www/htdocs/wp-config.php
Note: zoals in de
onderstaande afbeelding verander je die gegevens, omdat we dit eerder zo hebben
geinstalleerd.
- chown -R wwwrun /srv/www/htdocs
- http://ipaddres/wp-admin
Made by Sadri
https://www.tecmint.com/install-lamp-apache-php-mariadb-phpmyadmin-in-opensuse/
https://www.itzgeek.com/web/wordpress/install-wordpress-on-opensuse-13-2-with-lamp.html
Reacties
Een reactie posten