LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   XAMPP Won't Start (https://www.linuxquestions.org/questions/linux-software-2/xampp-wont-start-791248/)

jan1024188 02-24-2010 08:06 AM

XAMPP Won't Start
 
hello,

I run fedora 12 and I am trying to get XAMPP to work, but here is the error I get when I start it up:

Quote:

[jan1024188@localhost ~]$ su
Password:
[root@localhost jan1024188]# /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.
I followed this guide, please help:
http://www.apachefriends.org/en/xampp-linux.html#378

jan1024188 02-24-2010 10:46 AM

Please, this is very important for me, can someone help?

Desert Fox 02-24-2010 11:26 AM

Try to run this with root

Quote:

setsebool -P allow_execstack on

dive 02-24-2010 11:46 AM

I'm not familiar with the program but do you have libz, libexpat and libcrypto installed?

unSpawn 02-24-2010 11:59 AM

If you run SE Linux check here: http://www.crypt.gen.nz/selinux/faq.html#CP.19, if you run GRSecurity check here (bottom post): http://forums.grsecurity.net/viewtop...3&t=2073#p8566, else please elaborate about your setup and any logged (error) messages.

knudfl 02-24-2010 12:02 PM

http://www.apachefriends.org/en/xampp.html
QUOTE : "" XAMPP for Linux
The distribution for Linux systems
(tested for SuSE, RedHat, Mandrake and Debian)
contains: Apache, MySQL, PHP & PEAR, Perl, ProFTPD, phpMyAdmin, OpenSSL,
GD, Freetype2, libjpeg, libpng, gdbm, zlib, expat, Sablotron, libxml,
Ming, Webalizer, pdf class, ncurses, mod_perl, FreeTDS, gettext, mcrypt,
mhash, eAccelerator, SQLite and IMAP C-Client. ""

Everything seems to be included.
But : Not tested for Fedora 12.
Supposed to be an easy way to "install an Apache web server".
.....

jan1024188 02-24-2010 01:15 PM

Quote:

Originally Posted by unSpawn (Post 3875279)
If you run SE Linux check here: http://www.crypt.gen.nz/selinux/faq.html#CP.19, if you run GRSecurity check here (bottom post): http://forums.grsecurity.net/viewtop...3&t=2073#p8566, else please elaborate about your setup and any logged (error) messages.


I checked my SELinux log, XAMPP isn't mentioned anywhere.

unSpawn 02-25-2010 03:08 PM

Quote:

Originally Posted by jan1024188 (Post 3875368)
I checked my SELinux log, XAMPP isn't mentioned anywhere.

There is no "SELinux log" except /var/log/audit/audit.log. If you use it XAMPP will never be mentioned there but components like those libraries. Anyway. Elsewhere somebody found out XAMPP libraries have been compiled with executable stack enabled which is a bad thing. Basically you should choose not to use XAMPP.
XAMPP is not fit for public exposure or production use.

The workaround seems to be to flip a boolean: 'setsebool -P allow_execstack on'. Flipping the boolean will allow execstack for all libraries which weakens security posture considerably.
You should not do this on machines that are exposed to any non-LAN networks.

jan1024188 02-26-2010 03:08 AM

Quote:

Originally Posted by unSpawn (Post 3876791)
There is no "SELinux log" except /var/log/audit/audit.log. If you use it XAMPP will never be mentioned there but components like those libraries. Anyway. Elsewhere somebody found out XAMPP libraries have been compiled with executable stack enabled which is a bad thing. Basically you should choose not to use XAMPP.
XAMPP is not fit for public exposure or production use.

The workaround seems to be to flip a boolean: 'setsebool -P allow_execstack on'. Flipping the boolean will allow execstack for all libraries which weakens security posture considerably.
You should not do this on machines that are exposed to any non-LAN networks.

So what should I use than instead of xampp?

unSpawn 02-28-2010 06:47 AM

1, 2, 3, 4, 5, 6, 7 vulns popped just up end of january 2010...


Quote:

Originally Posted by jan1024188 (Post 3877469)
So what should I use than instead of xampp?

The core components of XAMPP as provided by your distribution.

jan1024188 03-02-2010 11:33 AM

Ok.

Im yet fresh to fedora, but this seLinux is annoying so I added selinux=0 to grub config and now I have it disabled. Sorry seLinux guys, but it ruins everything I try to run.

It didn't even let me install MySQL LMAO.

Now I manually installed PHP, MySQL, Apache and phpMyAdmin.

The problem is, I can only run my test.php if its copied inside localhost (var/www/html/test). But if I try to run it from my desktop, it won't open.

Is there any way I can make it run in my browser properly from my Desktop/WORKSPACE folder?

Thanks


All times are GMT -5. The time now is 02:19 PM.