Search for apps, problems, ...
Install localhost xampp for php coding
Install xampp from arch
$ yay xampp
You can start xampp manually and test if it works:
$ sudo /opt/lampp/lampp start
Go to your browser and check if it works. Just type in localhost in the URL bar – you should see something like this:
Autostart xampp after boot
To start Xampp at boot, create a systemd service for it (/etc/systemd/system/xampp.service):
First, create a file, named, xampp.service:
$ sudo touch /etc/systemd/system/xampp.service
Open the file with Kate (or any other editor) and paste the following lines in the file, save and exit.
[Unit]
Description=XAMPP
[Service]
ExecStart=/opt/lampp/lampp start
ExecStop=/opt/lampp/lampp stop
Type=forking
[Install]
WantedBy=multi-user.target
Make the file “executable”
Go the
$ sudo chmod a+x /etc/systemd/system/xampp.service
Start the service at Startup
Enable a unit to be started on bootup and start immediately:
$ systemctl enable --now xampp.service
Changing access to htdocs
The htdocs folder is only accessible if you are root. To change this, do the following:
$ cd /opt/lampp/
$ sudo chown -R gd:gd htdocs
Note that you need to change gd (= my username) to your username. That’s all.