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 |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
 |
GNU/Linux Basic Guide
This 255-page guide will provide you with the keys to understand the philosophy of free software, teach you how to use and handle it, and give you the tools required to move easily in the world of GNU/Linux. Many users and administrators will be taking their first steps with this GNU/Linux Basic guide and it will show you how to approach and solve the problems you encounter.
Click Here to receive this Complete Guide absolutely free. |
|
 |
02-24-2010, 08:06 AM
|
#1
|
|
Member
Registered: Jul 2006
Posts: 84
Rep:
|
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
|
|
|
|
02-24-2010, 10:46 AM
|
#2
|
|
Member
Registered: Jul 2006
Posts: 84
Original Poster
Rep:
|
Please, this is very important for me, can someone help?
|
|
|
|
02-24-2010, 11:26 AM
|
#3
|
|
LQ Newbie
Registered: Feb 2010
Posts: 1
Rep:
|
Try to run this with root
Quote:
|
setsebool -P allow_execstack on
|
|
|
|
|
02-24-2010, 11:46 AM
|
#4
|
|
Senior Member
Registered: Aug 2003
Location: UK
Distribution: Slackware
Posts: 3,084
|
I'm not familiar with the program but do you have libz, libexpat and libcrypto installed?
|
|
|
|
02-24-2010, 12:02 PM
|
#6
|
|
LQ 5k Club
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2012.8, Slack1337 DebSqueeze, +50+ other Linux OS, for test only.
Posts: 11,762
|
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".
.....
|
|
|
|
02-24-2010, 01:15 PM
|
#7
|
|
Member
Registered: Jul 2006
Posts: 84
Original Poster
Rep:
|
Quote:
Originally Posted by unSpawn
|
I checked my SELinux log, XAMPP isn't mentioned anywhere.
|
|
|
|
02-25-2010, 03:08 PM
|
#8
|
|
Moderator
Registered: May 2001
Posts: 24,970
|
Quote:
Originally Posted by jan1024188
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.
|
|
|
|
02-26-2010, 03:08 AM
|
#9
|
|
Member
Registered: Jul 2006
Posts: 84
Original Poster
Rep:
|
Quote:
Originally Posted by unSpawn
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?
|
|
|
|
02-28-2010, 06:47 AM
|
#10
|
|
Moderator
Registered: May 2001
Posts: 24,970
|
1, 2, 3, 4, 5, 6, 7 vulns popped just up end of january 2010...
Quote:
Originally Posted by jan1024188
So what should I use than instead of xampp?
|
The core components of XAMPP as provided by your distribution.
|
|
|
|
03-02-2010, 11:33 AM
|
#11
|
|
Member
Registered: Jul 2006
Posts: 84
Original Poster
Rep:
|
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.
|
|
|
|
| Thread Tools |
Search this Thread |
|
|
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
All times are GMT -5. The time now is 01:58 AM.
|
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|