Install Wordpress on SUSE: Difference between revisions

From Jwiki
No edit summary
No edit summary
Line 15: Line 15:
systemctl enable apache2
systemctl enable apache2
systemctl start apache2
systemctl start apache2
</syntaxhighlight>
2. Install MariaDB:
<syntaxhighlight lang="bash">
zypper install -y mariadb mariadb-client
</syntaxhighlight>
<syntaxhighlight lang="bash">
systemctl enable mariadb
systemctl start mariadb
</syntaxhighlight>
<syntaxhighlight lang="sql">
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;
</syntaxhighlight>
</syntaxhighlight>



Revision as of 09:03, 29 August 2024

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