Welcome Guest. Please Login or Register  


You are here: Index > AMPPS > General Support > Topic : Help! AMPPS 3.4 apache can't start!



Threaded Mode | Print  

 Help! AMPPS 3.4 apache can't start! (13 Replies, Read 15796 times)
beta3261
Group: Member
Post Group: Newbie
Posts: 1
Status:
mac osx 10.6.8 after install ampps 3.4 (newe version with php 7), apache can't start, please help!
IP: --   

Help! AMPPS 3.4 apache can't start!
KRauer
Group: Member
Post Group: Newbie
Posts: 4
Status:
Your not the only one.. I can't get it to work under 10.8.6 either..
IP: --   

Help! AMPPS 3.4 apache can't start!
Rishi_P
Group: Member
Post Group: Elite Member
Posts: 317
Status:
Open Terminal and run following.

sudo /Applications/AMPPS/apache/bin/httpd

Let us know the output.
IP: --   

Help! AMPPS 3.4 apache can't start!
KRauer
Group: Member
Post Group: Newbie
Posts: 4
Status:
bash-3.2# /Applications/AMPPS/apache/bin/httpd
httpd: Syntax error on line 154 of /Applications/AMPPS/apache/conf/httpd.conf: Cannot load /Applications/AMPPS/php/libphp5.so into server: dlopen(/Applications/AMPPS/php/libphp5.so, 10): Library not loaded: /usr/local/lib/liblzma.5.dylib\n  Referenced from: /Applications/AMPPS/extra/lib/libxml2.2.dylib\n  Reason: no suitable image found.  Did find:\n\t/usr/local/lib/liblzma.5.dylib: mach-o, but wrong architecture\n\t/usr/local/lib/liblzma.5.dylib: mach-o, but wrong architecture
IP: --   

Help! AMPPS 3.4 apache can't start!
d00t
Group: Member
Post Group: Newbie
Posts: 2
Status:
for me it is not working only with php 7.

I get this error in Terminal: Cannot load /Applications/AMPPS/php/libphp5.so into server: dlopen(/Applications/AMPPS/php/libphp5.so, 10): image not found

All other php version work fine. Fix would be great.

Tip: if you tried to change php while apache is running and you can not stop it. then you have to restore default configs for apache and php.

AMPPS Version: 3.4, Build: Jan 03 2015
OS: OS X El Capitan, Version 10.11.4
IP: --   

Help! AMPPS 3.4 apache can't start!
KRauer
Group: Member
Post Group: Newbie
Posts: 4
Status:
I gave up waiting... It still doesn't work.. And no replies from anyone in 2 months..
IP: --   

Help! AMPPS 3.4 apache can't start!
Rishi_P
Group: Member
Post Group: Elite Member
Posts: 317
Status:
Hi,

@d00t

>> Cannot load /Applications/AMPPS/php/libphp5.so into server: dlopen(/Applications/AMPPS/php/libphp5.so, 10): image not found

Open Apache Config.

AMPPS Control panel --> Apache --> Configuration.

Search for following line.

LoadModule php5_module "{$path}/php/libphp5.so

and edit this to
LoadModule php7_module "{$path}/php/libphp7.so

save it and restart Apache.



IP: --   

Help! AMPPS 3.4 apache can't start!
d00t
Group: Member
Post Group: Newbie
Posts: 2
Status:
Hi Thanks for helping.
I figured out: It is only working if PHP is set to 7 otherwise i get nearly the same message:
httpd: Syntax error on line 154 of /Applications/AMPPS/apache/conf/httpd.conf: Cannot load /Applications/AMPPS/php/libphp7.so into server: dlopen(/Applications/AMPPS/php/libphp7.so, 10): image not found

Following steps are working:
1. stop apache
2. change config as described in previous post
3. switch to php 7
4. start apache.

I think, if you want to use php 5 again, you have to do the same the other way around.
IP: --   

Help! AMPPS 3.4 apache can't start!
Rishi_P
Group: Member
Post Group: Elite Member
Posts: 317
Status:
Hi,

AMPPS edit config files when you change PHP version.

Please make sure write permission is set to following files:
/Applications/AMPPS/apache/conf/httpd.conf file
/Applications/AMPPS/conf/httpd.conf file
IP: --   

Help! AMPPS 3.4 apache can't start!
Rishi_P
Group: Member
Post Group: Elite Member
Posts: 317
Status:
Hi

>>httpd: Syntax error on line 154 of /Applications/AMPPS/apache/conf/httpd.conf: Cannot load /Applications/AMPPS/php/libphp5.so into server: dlopen(/Applications/AMPPS/php/libphp5.so, 10):


@KRauer To resolve your issue download this patch:
http://files.ampps.com/patch.tar.gz

Extract it and copy liblzma.a, liblzma.dylib, liblzma.5.dylib files in your /usr/local/lib folder.
IP: --   

Help! AMPPS 3.4 apache can't start!
KRauer
Group: Member
Post Group: Newbie
Posts: 4
Status:
Thank-you for the patch..
IP: --   

Help! AMPPS 3.4 apache can't start!
swissdoode
Group: Member
Post Group: Newbie
Posts: 6
Status:
Hope you don't mind if I chime in...

I'm having the same problem with the same error-messages.
I installed the provided patch, but then I get a similar error saying something about wrong architecture.
Switching PHP-Versions didn't help...

I'm trying to run Ampps on an older Mac with OSX 10.6.8 installed...

Help! ;)
IP: --   

Help! AMPPS 3.4 apache can't start!
swissdoode
Group: Member
Post Group: Newbie
Posts: 6
Status:
I was able to solve it myself - and maybe it helps someone else...

I just copied the liblzma.5.dylib file from my other machine (running Yosemite), created a symlink name liblzma.dylib pointing to liblzma.5.dylib and it's working now.
(I did get a blank admin page after that, but there's another thread on here that solved this problem).
Also, Rishi_p stated that the files belong into /usr/local/lib/, but that didn't exist on my machine, so I copied the files into /usr/lib/
IP: --   

Help! AMPPS 3.4 apache can't start!
carlitocenteno
Group: Member
Post Group: Newbie
Posts: 2
Status:
This worked for me. After updating AMPPS to 3.8 on my Mac High Sierra, I had to set write permissions for these files not just as user but as admin as well.

Quote From : Rishi_P April 26, 2016, 12:44 pm
Hi,

AMPPS edit config files when you change PHP version.

Please make sure write permission is set to following files:
/Applications/AMPPS/apache/conf/httpd.conf file
/Applications/AMPPS/conf/httpd.conf file
IP: --   

« Previous    Next »

Threaded Mode | Print  



Jump To :


Users viewing this topic
1 guests, 0 users.


All times are GMT. The time now is March 28, 2024, 7:47 pm.

  Powered By AEF 1.0.8 © 2007-2008 Electron Inc.Queries: 11  |  Page Created In:0.019