Installeren apache2
zypper install apache 2
systemctl start apache2
systemctl enable apache2
PHP installeren
zypper in php7 php apache2-mod_php7 php7-curl php7-xmlreader
a2enmod php7
Apache herstarten
systemctl restart apache2
Werking van PHP testen ( alles hieronder in /srv/www/htdocs )
cd /srv/www/htdocs
nano test.php
<?php phpinfo(); ?>
In firefox: localhost/test.php ( je moet nu de php testpagina te zien krijgen )
PHP uitbreiden
zypper install php-gd php-pdo php-mysql php-mbstring php
zypper install phpMyAdmin
systemctl restart apache2
In firefox: localhost/phpMyAdmin
mysql installeren en wordpress database aanmaken
zypper install mariadb mariadb-client mariadb-tools
systemctl start mysql
systemctl enable mysql
mysql -u root -p
Type in password
create database wordpress character set utf8mb4
create user examen@localhost identified by ‘test’;
grant all on wordpress.* to examen@localhost;
flush privileges;
exit
wordpress downloaden in een aparte directory
cd /mnt
wget https://wordpress.org/latest.tar.gz
tar xvf latest.tar.gz
statisch IP adress instellen
yast
System -> network settings -> Network setup method; Wicked Service -> Network settings -> edit IP -> edit Hostname to localhost.localdomain
ip a
Wordpress verplaatsen
mv wordpress/ /srv/www/htdocs/
cd /srv/www/htdocs/wordpress/
mv wp-config-sample.php wp-config.php
nano wp-config.php
Verander de databasenaam, user en wachtwoord
wordpress, examen en test
Verander database charset naar utf8mb4
Ownership en rechten wijzigen
chown -R wwwrun:www /srv/www/htdocs
chmod 755 -R /srv/www/htdocs
systemctl restart apache2
ipadress/wordpress/wp-admin/install.php
Als er een website verplaatst moet worden zet je deze in /srv/www/htdocs en typ je bij het zoeken alleen je ip in.
zypper install apache 2
systemctl start apache2
systemctl enable apache2
PHP installeren
zypper in php7 php apache2-mod_php7 php7-curl php7-xmlreader
a2enmod php7
Apache herstarten
systemctl restart apache2
Werking van PHP testen ( alles hieronder in /srv/www/htdocs )
cd /srv/www/htdocs
nano test.php
<?php phpinfo(); ?>
In firefox: localhost/test.php ( je moet nu de php testpagina te zien krijgen )
PHP uitbreiden
zypper install php-gd php-pdo php-mysql php-mbstring php
zypper install phpMyAdmin
systemctl restart apache2
In firefox: localhost/phpMyAdmin
mysql installeren en wordpress database aanmaken
zypper install mariadb mariadb-client mariadb-tools
systemctl start mysql
systemctl enable mysql
mysql -u root -p
Type in password
create database wordpress character set utf8mb4
create user examen@localhost identified by ‘test’;
grant all on wordpress.* to examen@localhost;
flush privileges;
exit
wordpress downloaden in een aparte directory
cd /mnt
wget https://wordpress.org/latest.tar.gz
tar xvf latest.tar.gz
statisch IP adress instellen
yast
System -> network settings -> Network setup method; Wicked Service -> Network settings -> edit IP -> edit Hostname to localhost.localdomain
ip a
Wordpress verplaatsen
mv wordpress/ /srv/www/htdocs/
cd /srv/www/htdocs/wordpress/
mv wp-config-sample.php wp-config.php
nano wp-config.php
Verander de databasenaam, user en wachtwoord
wordpress, examen en test
Verander database charset naar utf8mb4
Ownership en rechten wijzigen
chown -R wwwrun:www /srv/www/htdocs
chmod 755 -R /srv/www/htdocs
systemctl restart apache2
ipadress/wordpress/wp-admin/install.php
Als er een website verplaatst moet worden zet je deze in /srv/www/htdocs en typ je bij het zoeken alleen je ip in.