Installing XAMPP on Fedora 12 64-bit system

I was installing XAMPP on Fedora 11 64-bit today, and I saw this famous message:

sudo /opt/lampp/lampp startapache
XAMPP is currently only availably as 32 bit application. Please use a 32 bit compatibility library for your system.

The message is very clear that XAMPP doesn’t like 32-bit system. So, we will need to cheat XAMPP that the system is 32-bit. First, we will need to install some libraries:

sudo yum -y install glibc.i686 libgcc.i686 libstdc++.i686

and now, we need to skip the 32-bit annoying check. Use Nano or your favorite editor to open this file: /opt/lampp/lampp

sudo nano /opt/lampp/lampp

Replace the following from:

# XAMPP is currently 32 bit only
case `uname -m` in
       *_64)
       if /opt/lampp/bin/php -v > /dev/null 2>&1
       then
               :
       else
               $de && echo "XAMPP gibt es zur Zeit nur als 32-Bit Applikation. Bitte verwende eine 32-Bit Kompatibilitaetsbibliothek fuer Dein System."
               $de || echo "XAMPP is currently only availably as 32 bit application. Please use a 32 bit compatibility library for your system."
               exit
       fi
       ;;
esac

To:

# XAMPP is currently 32 bit only
#case `uname -m` in
#       *_64)
#       if /opt/lampp/bin/php -v > /dev/null 2>&1
#       then
#               :
#       else
#               $de && echo "XAMPP gibt es zur Zeit nur als 32-Bit Applikation. Bitte verwende eine 32-Bit Kompatibilitaetsbibliothek fuer Dein System."
#               $de || echo "XAMPP is currently only availably as 32 bit application. Please use a 32 bit compatibility library for your system."
#               exit
#       fi
#       ;;
#esac

Now run the following the start XAMPP:

sudo /opt/lampp/lampp startapache

Wow! Everything is working great!

–Derrick

Our sponsors:

17 Replies to “Installing XAMPP on Fedora 12 64-bit system”

  1. sajad

    thanks alot but what about my error?

    [sajad@sajad ~]$ su
    Password:
    [root@sajad sajad]# sudo /opt/lampp/lampp startapache

    XAMPP is currently only availably as 32 bit application. Please use a 32 bit compatibility library for your system.
    [root@sajad sajad]#
    [root@sajad sajad]# sudo yum -y install glibc.i686 libgcc.i686 libstdc++.i686
    Loaded plugins: presto, refresh-packagekit
    Zend | 951 B 00:00
    Zend_noarch | 951 B 00:00
    adobe-linux-i386 | 951 B 00:00
    atrpms | 3.0 kB 00:00
    flash | 2.6 kB 00:00
    rpmfusion-nonfree-updates | 2.8 kB 00:00
    Setting up Install Process
    Package glibc-2.12-1.i686 already installed and latest version
    Package libgcc-4.4.4-2.fc13.i686 already installed and latest version
    Package libstdc++-4.4.4-2.fc13.i686 already installed and latest version
    Nothing to do
    [root@sajad sajad]# sudo nano /opt/lampp/lampp
    nano: symbol lookup error: /lib64/libncursesw.so.5: undefined symbol: _nc_set_no_padding
    [root@sajad sajad]# sudo nano /opt/lampp/lampp
    nano: symbol lookup error: /lib64/libncursesw.so.5: undefined symbol: _nc_set_no_padding
    [root@sajad sajad]#

    please reply me to [email protected]

    Reply
  2. davit

    this the messege bro..please give the solution..

    [root@localhost lakone]# /opt/lampp/lampp start
    Starting XAMPP for Linux 1.7.3a…
    /opt/lampp/bin/php: error while loading shared libraries: libz.so.1: cannot enable executable stack as shared object requires: Permission denied
    XAMPP: Starting Apache with SSL …
    /opt/lampp/bin/httpd: error while loading shared libraries: libexpat.so.0: cannot enable executable stack as shared object requires: Permission denied
    XAMPP: Error 127! Couldn’t start Apache!
    XAMPP: Starting diagnose…
    XAMPP: Sorry, I’ve no idea what’s going wrong.
    XAMPP: Please contact our forum http://www.apachefriends.org/f/
    XAMPP: Starting MySQL…
    /opt/lampp/bin/my_print_defaults: error while loading shared libraries: libz.so.1: cannot enable executable stack as shared object requires: Permission denied
    /opt/lampp/bin/my_print_defaults: error while loading shared libraries: libz.so.1: cannot enable executable stack as shared object requires: Permission denied
    XAMPP: Couldn’t start MySQL!
    XAMPP: Starting ProFTPD…
    XAMPP: /opt/lampp/sbin/proftpd: error while loading shared libraries: libcrypto.so.0.9.8: cannot enable executable stack as shared object requires: Permission denied
    XAMPP: Error 127! Couln’t start ProFTPD!
    XAMPP for Linux started.

    Reply
    • Derrick Post author

      Looks like SELinux is doing something conflicting with your system. I will disable it first and try again.

      Edit the configuration file:

      sudo nano /etc/selinux/config

      Change the following: From:

      SELINUX=enforcing

      To:

      SELINUX=disabled

      Reply
  3. jack oneil

    HEY, IT WORKS!!!
    Thank’s so much, Derick.
    it now runs on my 64 bit fedora 12 without any problem. so far….

    Reply
  4. lala

    thanks, it worked perfect. in fedora 15 x64
    i didn’t have nano by default. so i use gedit
    it gave some sort of character warning, which i simply ignored and edit (commented that section) , save, and it worked. wow, thanks again..

    Reply
  5. Y. T. Chao

    thank you so much of your sharing
    but i still got some error message as follow:
    (btw, i am running this under fedora 12 64bit system)

    [root@chttl-1303500912828 ~]# /opt/lampp/lampp start
    /opt/lampp/lampp: line 379: syntax error near unexpected token `(‘
    /opt/lampp/lampp: line 379: ` $de && phpextra=”(und PHP5)”‘

    your help will be highly appreciated! 🙂

    Reply

Leave a Reply to davit Cancel reply

Your email address will not be published. Required fields are marked *