Install Wordpress on SUSE

From Jwiki
Revision as of 09:03, 29 August 2024 by Gyurci08 (talk | contribs)

Prequisites

1. Install Apache:

zypper install -y apache2
echo '<html><body><h1>It works!</h1></body></html>' > /srv/www/htdocs/index.html
echo -e '<VirtualHost *:80>\nDocumentRoot /srv/www/htdocs\n</VirtualHost>' > /etc/apache2/vhosts.d/_default.conf
systemctl enable apache2
systemctl start apache2

2. Install MariaDB:

zypper install -y mariadb mariadb-client
systemctl enable mariadb 
systemctl start mariadb
CREATE DATABASE `example.com`;
CREATE USER 'example.com'@localhost IDENTIFIED BY 'secure_password';
GRANT ALL PRIVILEGES ON  `example.com`.* TO 'example.com'@'localhost';
FLUSH PRIVILEGES;


Install

Final steps

Sources