Solved

PHP Module in OS Yosemite

Posted on 2014-12-23
2
159 Views
Last Modified: 2014-12-24
Recently upgraded to Yosemite.
Problem is PHP module not working.

Apache is on. MySQL is on. Both are working.
Safari can see the index.html file in the sites folder. It cannot see the index.php file in the same folder.
Have made changes to httpd.con and to httpd-userdir.conf.
php.ini exists.
0
Comment
Question by:tweddlewalker
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 40

Accepted Solution

by:
Eoin OSullivan earned 500 total points
ID: 40516145
You should only need to uncomment the PHP line in the /etc/apache2/httpd.conf
LoadModule php5_module libexec/apache2/libphp5.so

Open in new window


And then restart apache
sudo apachectl restart

Open in new window


If you want index.php to be the default file in every web folder instead of index.html  then also edit the following line in the httpd.conf and add index.php BEFORE the index.html reference
<IfModule dir_module>
    DirectoryIndex index.php index.html
</IfModule>

Open in new window

0
 

Author Closing Comment

by:tweddlewalker
ID: 40516200
Thank you very much: DirectoryIndex index.php index.html did it.
0

Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Do you come here a lot? Are you lazy like me and don't want to go through the "trouble" of having to click your Dock's Safari icon and then having to click your Experts Exchange Favorites bookmark to get here? Well then this article is for you.
An introduction to the wonderful sport of Scam Baiting.  Learn how to help fight scammers by beating them at their own game. This great pass time helps the world, while providing an endless source of entertainment. Enjoy!
This Micro Tutorial hows how you can integrate  Mac OSX to a Windows Active Directory Domain. Apple has made it easy to allow users to bind their macs to a windows domain with relative ease. The following video show how to bind OSX Mavericks to …
Monitoring a network: how to monitor network services and why? Michael Kulchisky, MCSE, MCSA, MCP, VTSP, VSP, CCSP outlines the philosophy behind service monitoring and why a handshake validation is critical in network monitoring. Software utilized …

621 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question