Jump to content


This topic is now archived and is closed to further replies.


php 5.1.2 on iMac intel- can't edit httpd.conf

Recommended Posts

I went to [a href=\"http://developer.apple.com/internet/opensource/php.html\" target=\"_blank\"]http://developer.apple.com/internet/opensource/php.html[/a] and followed the instructions. First I downloaded php 5.1.2 and uncompressed it. Then I went into Terminal:

[code]cd /Applications
cd \php-5.1.2
sudo mv libphp5
Password: nnnnnnnn

usage: mv [-f | -i | -n] [-v] source target
       mv [-f | -i | -n] [-v] source ... directory
sudo apxs -e -a -n php5 libexec/httpd/libphp5.so
[activating module `php5' in /private/etc/httpd/httpd.conf]
cp /private/etc/httpd/httpd.conf /private/etc/httpd/httpd.conf.bak
cp /private/etc/httpd/httpd.conf.new /private/etc/httpd/httpd.conf
rm /private/etc/httpd/httpd.conf.new

sudo open -a TextEdit /etc/httpd/httpd.conf

------ need to change line near end: "<IfModule mod_php4.c>" to 5 ---------
---------------- (wouldn't let me edit and save ) -----------------------------

sudo apachectl graceful
/usr/sbin/apachectl graceful: configuration broken, ignoring restart
/usr/sbin/apachectl graceful: (run 'apachectl configtest' for details)

apachectl configtest
Syntax error on line 243 of /etc/httpd/httpd.conf:
Cannot load /usr/libexec/httpd/libphp5.so into server: (reason unknown)[/code]
Help please?

Share this post

Link to post
Share on other sites


Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.