You are not logged in.

#1 2023-07-07 14:23:45

neretum925
Member
Registered: 2022-03-17
Posts: 10

Issues with XAMPP

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

#2 2023-07-07 15:15:51

WorMzy
Administrator
From: Scotland
Registered: 2010-06-16
Posts: 12,744
Website

Re: Issues with XAMPP

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.

Online

#3 2023-07-08 09:27:56

Lone_Wolf
Administrator
From: Netherlands, Europe
Registered: 2005-10-04
Posts: 13,621

Re: Issues with XAMPP

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

#4 2023-07-08 10:03:34

neretum925
Member
Registered: 2022-03-17
Posts: 10

Re: Issues with XAMPP

Lone_Wolf wrote:

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

#5 2023-07-08 13:21:32

seth
Member
Registered: 2012-09-03
Posts: 63,424

Re: Issues with XAMPP

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

#6 2023-07-08 22:28:50

jonno2002
Member
Registered: 2016-11-21
Posts: 784

Re: Issues with XAMPP

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

Board footer

Powered by FluxBB