Red Hat / CentOS 7.9 lampp start script bug.

Problems with the Linux version of XAMPP, questions, comments, and anything related.

Red Hat / CentOS 7.9 lampp start script bug.

Postby B_rad » 04. February 2021 21:17

The lampp 7.3.26/7.4.14/8.0.1 or older start script has a bug when run on Red Hat / CentOS 7.9:

Code: Select all
osguess() {
   if test -f /etc/redhat-release
   then
      if egrep "9 " /etc/redhat-release > /dev/null
      then
         echo "rh9"
         return 0
       else
         echo "linux"
         return 0
      fi


The egrep matches the "7.9 " and assumes it needs to execute for Red Hat 9. Of course this doesn't work on Red Hat / CentOS 7. The egrep needs modified to "e 9 " or "release 9 ".
B_rad
 
Posts: 1
Joined: 04. February 2021 20:41
XAMPP version: 7.4.14
Operating System: Red hat Enterprise 7.9

Re: Red Hat / CentOS 7.9 lampp start script bug.

Postby leehigginbotham » 31. March 2021 20:36

Thank you B_rad for this post!

I updated the /opt/lampp/xampp script as you recommended "e 9 " and it started beautifully!!! :D
leehigginbotham
 
Posts: 3
Joined: 31. March 2021 20:31
Location: Louisville, KY, USA
XAMPP version: 8.0.3.0
Operating System: CentOS 7.9


Return to XAMPP for Linux

Who is online

Users browsing this forum: No registered users and 34 guests