Good day.
I have a problem with Apache configuring on my Mac.
I installed apache and php from MacPorts, apache works fine.
When I add line
Include conf/extra/mod_php.conf
and restart apache - here is an error:
httpd: Syntax error on line 119 of /private/etc/apache2/httpd.conf: Cannot load /opt/local/apache2/modules/libphp5.so into server: dlopen(/opt/local/apache2/modules/libphp5.so, 10): Library not loaded: /opt/local/lib/libaprutil-1.0.dylib\n Referenced from: /opt/local/apache2/modules/libphp5.so\n Reason: Incompatible library version: libphp5.so requires version 6.0.0 or later, but libaprutil-1.0.dylib provides version 4.0.0
So, this is my question: what should I do for resolve this problem?
thanks a lot!
Good luck.
Ditch MacPort and install MAMP from this link.
MAMP installer comes with Apache, PHP and MySQL bundled.
Update: There is a better LAMP package available now on OSX called AMPPS.
Related
I'm stuck. I am trying to install Apache stack on OSX 10.10.3 and i can not get PHP56 to work with Apache. I am getting
httpd: Syntax error on line 171 of /private/etc/apache2/httpd.conf: Cannot load /usr/local/Cellar/php56/5.6.10/libexec/apache2/libphp5.so into server: dlopen(/usr/local/Cellar/php56/5.6.10/libexec/apache2/libphp5.so, 10): Library not loaded: /usr/local/opt/apr-util/libexec/lib/libaprutil-1.0.dylib\n Referenced from: /usr/local/Cellar/php56/5.6.10/libexec/apache2/libphp5.so\n Reason: Incompatible library version: libphp5.so requires version 6.0.0 or later, but libaprutil-1.0.dylib provides version 4.0.0
when running
sudo bash -x /usr/sbin/apachectl -k restart
I fixed it but I don't know how precisly.
Basically I've reinstalled all PHP packages installed trough brew, and I went back to use Apache 2.4 originally installed on OSX, and not that one from brew.
I get the following error when I run MNPP, which is a like XAMPP/MAMP but with Nginx instead of Apache.
$ sudo mnpp --php53 --start
-n Starting php-fpm
dyld: Library not loaded: /opt/X11/lib/libfreetype.6.dylib
Referenced from: /usr/X11/lib/libfontconfig.1.dylib
Reason: Incompatible library version: libfontconfig.1.dylib requires version 17.0.0 or later, but libfreetype.6.dylib provides version 14.0.0
/Applications/MNPP/init/php.sh: line 95: 44087 Trace/BPT trap: 5 $php_fpm_BIN $php_opts
failed
Judging from all the SO threads on this topic, I'm pretty sure this is a X11/XQuartz Mac OSX Mavericks issue as it this command works on my previous Mac with 10.7.5.
How do I upgrade my version of libfreetype.6.dylib?
You likely have the DYLD_LIBRARY_PATH environment variable set. Don't do that.
I have Apache installed on C:\Apache\ and conf on C:\Apache\conf\
When I try to install php 5.3.28 on Windows 8.1 with Apache 2.2.x web server Module I have an 'error 2356' and the php install can not be done !!!
Any ideas ?
Thanks for your help...
Apparently the archived versions of 5.3.28 and 5.3.29 on windows.PHP.net/downloads/releases/archives/ are corrupt as evidenced by their file sizes, 848k vs 47MB for 5.3.27.
Both PHP 5.2 and 5.3 are available for msi install from the archive page http://windows.php.net/downloads/releases/archives/
scroll down and you will find versions upto PHP 5.3.27
Use VC6 version of PHP and download from http://windows.php.net/downloads/releases/archives/
I used PHP 5.2.10 without this error 2356 on Windowc8.1 and Apache 2.2.25
I have got the same error in version 5.3.28. My OS version is win7.
I finally give up and turn to use the Microsoft web platform installer..It does helps and very convenient ,but the disadvantage is that it only supports window IIS server .
I ran the install using archived version 5.3.28 but the install failed with the error code 2356. I ran the install using archived version 5.3.29 and it works. File size looks ok now.
I am trying to configure apache 2.2.15 with php5 in my linux system. I have installed both of them. But when I added libphp5.so module in httpd.conf of apache, it has given the following error while starting the server:
Starting httpd: httpd: Syntax error on line 202 of /etc/httpd/conf/httpd.conf: Cannot load /etc/httpd/modules/libphp5.so into server: /etc/httpd/modules/libphp5.so: undefined symbol: ap_unixd_config
Can anybody tell me how to fix this, as I tried every possible solution by googling it but in vain?
Some newer PHP versions may not be compatible with Apache2.2. This error occurs because the function ap_unixd_config is in Apache2.2 still called unixd_config.
Try to use Apache2.4 if you need to use this PHP version, otherwise you can use an older version of PHP.
This also happens on Arch Linux when one doesn't upgrade Apache 2.2 to Apache 2.4. So if you are using Arch Linux you need to downgrade php-apache package to the version that works for you. php-apache-5.5.8-1 is still OK, whereas 5.5.11-1 is not.
On RedHat Apache2 and PHP installation is done by issuing the following commands (as root):
yum install httpd httpd-devel php php-mysql php-common php-gd php-mbstring php-mcrypt php-devel php-xml
/etc/init.d/httpd start
That's all. (I'm following this tutorial.) You may add or remove some php extensions to or from the list of packages to be installed if so desired.
I am having a problem setting up PHP 5.5.1 on Windows 8 Pro under Apache 2.4.4. I have Apache 2.4.4 x86 and I downloaded PHP 5.5.1 x86 VC11 Thread Safe. When I try to load Apache It returns the error:
httpd.exe: Syntax error on line 531 of C:/Apache24/conf/httpd.conf: Cannot load
C:/php/php5apache2_4.dll into server: The specified module could not be found.
I am staring at the file C:\php\php5apache2_4.dll, so I am 100% positive it exists. Now here is the part I don't understand....
When I download PHP 5.4.17 VC9 Thread Safe and unzip, Apache loads and finds the .dll just fine.
Why does PHP 5.4 install perfectly fine, but PHP 5.5 throws the above error. I have tried to install several times and now I am here because I cannot figure it out on my own.
Thanks!
P.S. I originally asked this question on Server Fault, assuming this was a Server Setup related question, but was directed here, even though I've had questions closed over here that were of this nature. Original Server Fault Question: https://serverfault.com/questions/525029/apache-2-4-4-issue-with-php-5-5-1
Any chance you have a x64 version of Apache and a x86 version on PHP ? Or maybe the other way around ?
I think there's some compatibility issue with that dll file.. try some other version of php