PHP Running - OSX 10.11 El Capitan
1. Go to the file:
sudo nano /etc/apache2/httpd.conf
2. Uncomment the module php
LoadModule php5_module libexec/apache2/libphp5.so
3. Restart Apache
sudo apachectl restart
4. Access the url:
http://localhost/
5. if it does not work, test the config.
apachectl configtest
6. if you see the error related to lock file, try the following.
Go to the folder:
and restored the
httpd-mpm.conf file from before I loaded El Capitan.
I used these commands:
sudo mv httpd-mpm.conf httpd-mpm.conf.elcapitan
sudo mv httpd-mpm.conf~orig httpd-mpm.conf
Again restart and test.
sudo apachectl restart
apachectl configtest
and got "Syntax OK"
If I enter http://localhost in my browser, I get the page "it works".
7. Create a file phpinfo.php under the folder "/Library/WebServer/Documents"
with the content
<?php
// Show all information, defaults to INFO_ALL
phpinfo();
?>
8. Access the url:
http://localhost/phpinfo.php
|
Sunday, May 15, 2016
PHP Running - OSX 10.11 El Capitan
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment