Jump to content

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?
Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

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.