You are not logged in.
Hi, I installed xampp on arch, when I start it on startup, it seems to start. Despite this mysql, apache and proftpd do not start together with xampp and I am forced to start them manually via the command "sudo /opt/lampp/xampp startmysql,sudo /opt/lampp/xampp startapache,sudo /opt/lampp/xampp startftp ". I'll post here the result of command "sudo /opt/lampp/xampp status".How do i start everything at startup?
Version: XAMPP for Linux 8.2.4-0
Apache is not running.
MySQL is not running.
ProFTPD is deactivated.
Thank you
Offline
Mod note: moving to AUR Issues.
Sakura:-
Mobo: MSI MAG X570S TORPEDO MAX // Processor: AMD Ryzen 9 5950X @4.9GHz // GFX: AMD Radeon RX 5700 XT // RAM: 32GB (4x 8GB) Corsair DDR4 (@ 3000MHz) // Storage: 1x 3TB HDD, 6x 1TB SSD, 2x 120GB SSD, 1x 275GB M2 SSD
Making lemonade from lemons since 2015.
Offline
https://wiki.archlinux.org/title/XAMPP# … rt_on_boot
post the output of
systemctl status xampp.service
Disliking systemd intensely, but not satisfied with alternatives so focusing on taming systemd.
clean chroot building not flexible enough ?
Try clean chroot manager by graysky
Offline
https://wiki.archlinux.org/title/XAMPP# … rt_on_boot
post the output of
systemctl status xampp.service
This is output:
○ xampp.service - XAMPP service (XAMPP Apache + MariaDB + PHP + Perl)
Loaded: loaded (/usr/lib/systemd/system/xampp.service; static)
Active: inactive (dead)
Also when I manually start the services I always get this error due to grep,both on apache and proftpd and mysql:
# /opt/lampp/xampp startapache
XAMPP: Starting Apache...egrep: warning: egrep is obsolescent; using grep -E
egrep: warning: egrep is obsolescent; using grep -E
ok.
Rerunning the command /opt/lampp/xampp status,t gives me this output:
Version: XAMPP for Linux 8.2.4-0
egrep: warning: egrep is obsolescent; using grep -E
Apache is running.
egrep: warning: egrep is obsolescent; using grep -E
MySQL is running.
egrep: warning: egrep is obsolescent; using grep -E
ProFTPD is running.
And the output of systemctl status xampp.service is equal
Last edited by neretum925 (2023-07-08 10:11:59)
Offline
https://aur.archlinux.org/cgit/aur.git/ … in?h=xampp doesn't look installable
Compare the suggested service in the wiki, mend it locally, enable the service, reboot - does xampp start automatically?
And please use [code][/code] tags. Edit your posts in this regard.
Online
i think i see the problem, "/opt/lampp/lampp" does not exist and has been replaced by "/opt/lampp/xampp".
from the aur package service file:
ExecStart=@XAMPP_ROOT@/lampp start
from the arch wiki:
Use the following commands to control XAMPP:
# /opt/lampp/xampp start,stop,restart
also referenced in this post on manjaro forums:
https://forum.manjaro.org/t/i-installed … -why/47050
EDIT: sorry totally forgot to mention the fix.....
edit this file in the build dir "xampp.service.in" to contain this:
[Unit]
Description=XAMPP service (XAMPP Apache + MariaDB + PHP + Perl)
[Service]
Type=oneshot
ExecStart=@XAMPP_ROOT@/xampp start
ExecStop=@XAMPP_ROOT@/xampp stop
RemainAfterExit=yes
then rebuild the package and re-install
or i guess you could just edit the installed service file, either will work
Last edited by jonno2002 (2023-07-08 22:35:44)
Offline