Posted under » MySQL » Arch on 07 December 2024
in Garuda update, is just update. It will upgrade as well?
Installing LAMP. Arch supports MariaDB instead of MySQL by Oracle. However, it is still MySQL.
$ pacman -S apache php php-apache mariadb libmariadbclient mariadb-clients
To start or restart Apache,
$ systemctl start httpd.service
To check status
$ systemctl status httpd $ systemctl status mysql
if you face this error : Fatal error: Can't open and lock privilege tables: Table 'mysql.db' doesn't exist
It probably means mysql does not have access to the mysql folder.. so you need to
$ chown mysql:mysql /var/lib/mysql/ -R
Now let us configure Apache.