- Joined
- Dec 5, 2010
- Messages
- 2
- Reaction score
- 0
- Points
- 1
- Your Mac's Specs
- Macbook 2.16GHz
Hi,
This might have been discussed before so if anyone knows of the relevant thread please redirect me.
I've been trying to enable php on leopard but so far with limited success. At first I tried uncommenting the line:
LoadModule php5_module libexec/apache2/libphp5.so
in etc/apache2/httpd.conf
but kept getting a 403 error.
Then i tried the instructions on this page (which seems to have worked for some people):
Getting Apache & PHP to work with Leopard (OS X 10.5) - John Ford
But that didn't work either.
After undoing that, I installed the latest php from entropy.ch and instead of getting the 403 error, i got the same code as i see in dreamweaver:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<title>Untitled Document</title>
</head>
<body>
<?
echo "Hello World!";
?>
</body>
</html>
Then I tried installing MAMP, which tells me I'm running PHP 5.2.13 and 5.3.2 and i can switch between the two. I get the same result in both.
The thing that really confuses me is this; when i check in terminal which php i'm using (by inputting php -v), it tells me that i have php 5.2.12
This would indicate to me that apache recognises PHP but either can't work with it properly or doesn't know which one to use.
Any ideas? This is driving me mad. Any help at all would be seriously appreciated. Otherwise i'll go back to using tiger.
This might have been discussed before so if anyone knows of the relevant thread please redirect me.
I've been trying to enable php on leopard but so far with limited success. At first I tried uncommenting the line:
LoadModule php5_module libexec/apache2/libphp5.so
in etc/apache2/httpd.conf
but kept getting a 403 error.
Then i tried the instructions on this page (which seems to have worked for some people):
Getting Apache & PHP to work with Leopard (OS X 10.5) - John Ford
But that didn't work either.
After undoing that, I installed the latest php from entropy.ch and instead of getting the 403 error, i got the same code as i see in dreamweaver:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<title>Untitled Document</title>
</head>
<body>
<?
echo "Hello World!";
?>
</body>
</html>
Then I tried installing MAMP, which tells me I'm running PHP 5.2.13 and 5.3.2 and i can switch between the two. I get the same result in both.
The thing that really confuses me is this; when i check in terminal which php i'm using (by inputting php -v), it tells me that i have php 5.2.12
This would indicate to me that apache recognises PHP but either can't work with it properly or doesn't know which one to use.
Any ideas? This is driving me mad. Any help at all would be seriously appreciated. Otherwise i'll go back to using tiger.