By rebbuxton on
I have downloaded Drupal and MAMP. Everything worked with Drupal and MAMP states that I'm running PHP 5.2.6 on my Mac. I uploaded the Drupal files to my server and can see the page that says, "Install Drupal in Enlish" so I'm guessing I did something right but when I go to the next screen I get this error:
Your PHP installation is too old. Drupal requires at least PHP 4.3.5. (Currently using PHP 4.3.4)
I don't know how to update this. Help please.
Thank you.
Comments
phpinfo
Try creating a file in your main directory. Call it 'test.php'. In the file use just the following code
Then, visit 'test.php' in a browser (http://localhost/test.php probably). It will tell you which version of php you are currently running (as well as modules and several other things). Be sure to remove the file when you're done.
Test.PHP
I ran this test and it said 4.3.4.
Is the answer to this as simple as getting PHP and uploading that file to my server? That doesn't seem right since there are PHP files all over the place and not just in one file.
That file was just to see
That file was just to see what version of php your server was reporting. It doesn't do anything further than that. After a quick google search I came across this:
http://maestric.com/en/doc/mac/upgrade_php5_tiger
Perhaps updating the installed version of PHP on your OS might help. Also, just a thought, in your MAMP settings it does show that PHP5 is selected, correct?
OS X ships with an Apache
OS X ships with an Apache and PHP stack. I believe the PHP version included in that is in the 4.x family. My guess is you're still inadvertently running the OS X default Apache/PHP install rather than the one you installed. Make sure "Web sharing" is turned off in your System Preferences (as this controls whether the system default Apache runs or not). Might also want to check the error log for the Apache+PHP5 that you installed and see if complains it can't bind to port 80 because it's already in use.
Web Sharing-not check
I checked in system prefs and web sharing was not checking. I am not sure how to check the error log as you mentioned.
I'm pretty sure the solution is to update the PHP file but I don't know how to do that. Any suggestions?