Posted under » MySQL » Apache » 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
In Arch Apache is called httpd which is similar to CentOS or Redhat so you stop and start the same way. For Garuda which is also my Steamdeck gaming device, I load my LAMP services manually.
The location of the apache config is at /etc/httpd/conf/httpd.conf.
So there are a few differences and I think it is best I stick with Ubuntu for Apache.