Jump to content


Photo

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


  • Please log in to reply
3 replies to this topic

#1 webhead

webhead
  • Members
  • PipPip
  • Member
  • 23 posts
  • LocationOH

Posted 12 April 2006 - 07:56 PM

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:

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)
Help please?

#2 webhead

webhead
  • Members
  • PipPip
  • Member
  • 23 posts
  • LocationOH

Posted 15 April 2006 - 01:30 PM

hello?

#3 webhead

webhead
  • Members
  • PipPip
  • Member
  • 23 posts
  • LocationOH

Posted 19 April 2006 - 11:52 AM

little help?

#4 webhead

webhead
  • Members
  • PipPip
  • Member
  • 23 posts
  • LocationOH

Posted 25 April 2006 - 11:25 PM

:sigh:




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users