LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices

Reply
 
Search this Thread
Old 02-24-2010, 08:06 AM   #1
jan1024188
Member
 
Registered: Jul 2006
Posts: 84

Rep: Reputation: 15
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
 
Old 02-24-2010, 10:46 AM   #2
jan1024188
Member
 
Registered: Jul 2006
Posts: 84

Original Poster
Rep: Reputation: 15
Please, this is very important for me, can someone help?
 
Old 02-24-2010, 11:26 AM   #3
Desert Fox
LQ Newbie
 
Registered: Feb 2010
Posts: 1

Rep: Reputation: 0
Try to run this with root

Quote:
setsebool -P allow_execstack on
 
Old 02-24-2010, 11:46 AM   #4
dive
Senior Member
 
Registered: Aug 2003
Location: UK
Distribution: Slackware
Posts: 3,203

Rep: Reputation: 292Reputation: 292Reputation: 292
I'm not familiar with the program but do you have libz, libexpat and libcrypto installed?
 
Old 02-24-2010, 11:59 AM   #5
unSpawn
Moderator
 
Registered: May 2001
Posts: 27,025
Blog Entries: 54

Rep: Reputation: 2766Reputation: 2766Reputation: 2766Reputation: 2766Reputation: 2766Reputation: 2766Reputation: 2766Reputation: 2766Reputation: 2766Reputation: 2766Reputation: 2766
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.
 
1 members found this post helpful.
Old 02-24-2010, 12:02 PM   #6
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2014, Slack14.1 DebWheezy, +50+ other Linux OS, for test only.
Posts: 13,522

Rep: Reputation: 2503Reputation: 2503Reputation: 2503Reputation: 2503Reputation: 2503Reputation: 2503Reputation: 2503Reputation: 2503Reputation: 2503Reputation: 2503Reputation: 2503
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".
.....
 
Old 02-24-2010, 01:15 PM   #7
jan1024188
Member
 
Registered: Jul 2006
Posts: 84

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by unSpawn View Post
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.
 
Old 02-25-2010, 03:08 PM   #8
unSpawn
Moderator
 
Registered: May 2001
Posts: 27,025
Blog Entries: 54

Rep: Reputation: 2766Reputation: 2766Reputation: 2766Reputation: 2766Reputation: 2766Reputation: 2766Reputation: 2766Reputation: 2766Reputation: 2766Reputation: 2766Reputation: 2766
Quote:
Originally Posted by jan1024188 View Post
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.
 
Old 02-26-2010, 03:08 AM   #9
jan1024188
Member
 
Registered: Jul 2006
Posts: 84

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by unSpawn View Post
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?
 
Old 02-28-2010, 06:47 AM   #10
unSpawn
Moderator
 
Registered: May 2001
Posts: 27,025
Blog Entries: 54

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


Quote:
Originally Posted by jan1024188 View Post
So what should I use than instead of xampp?
The core components of XAMPP as provided by your distribution.
 
Old 03-02-2010, 11:33 AM   #11
jan1024188
Member
 
Registered: Jul 2006
Posts: 84

Original Poster
Rep: Reputation: 15
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

Last edited by jan1024188; 03-02-2010 at 01:07 PM.
 
  


Reply

Tags
xampp


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
XAMPP-MySQL does not start on FC5 vikram_cvk Linux - Software 2 09-24-2008 04:52 PM
MySQL failed to start in XAMPP bhatmahesht Linux - Software 7 07-23-2008 05:48 PM
Xampp kscallions Linux - Newbie 1 02-17-2008 09:14 PM
xampp charnel Programming 0 07-15-2005 07:14 AM


All times are GMT -5. The time now is 02:21 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration