Softaculous


Topic : Help! AMPPS 3.4 apache can't start!


Posted By: beta3261 on February 24, 2016, 6:44 am
mac osx 10.6.8 after install ampps 3.4 (newe version with php 7), apache can't start, please help!

Posted By: KRauer on February 24, 2016, 8:19 pm | Post: 1
Your not the only one.. I can't get it to work under 10.8.6 either..

Posted By: Rishi_P on February 29, 2016, 6:31 am | Post: 2
Open Terminal and run following.

sudo /Applications/AMPPS/apache/bin/httpd

Let us know the output.

Posted By: KRauer on March 1, 2016, 3:01 am | Post: 3
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

Posted By: d00t on April 25, 2016, 8:43 am | Post: 4
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

Posted By: KRauer on April 25, 2016, 12:56 pm | Post: 5
I gave up waiting... It still doesn't work.. And no replies from anyone in 2 months..

Posted By: Rishi_P on April 26, 2016, 8:30 am | Post: 6
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.




Posted By: d00t on April 26, 2016, 8:55 am | Post: 7
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.

Posted By: Rishi_P on April 26, 2016, 12:44 pm | Post: 8
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

Posted By: Rishi_P on April 26, 2016, 12:53 pm | Post: 9
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.

Posted By: KRauer on April 26, 2016, 12:56 pm | Post: 10
Thank-you for the patch..

Posted By: swissdoode on July 28, 2016, 8:24 am | Post: 11
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! ;)

Posted By: swissdoode on July 28, 2016, 2:05 pm | Post: 12
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/

Posted By: carlitocenteno on November 20, 2017, 7:13 pm | Post: 13
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

Powered By AEF 1.0.8 © 2007-2008 Electron Inc.