Solved

PHP Module in OS Yosemite

Posted on 2014-12-23
2
140 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
2 Comments
 
LVL 39

Accepted Solution

by:
Eoin OSullivan earned 500 total points
Comment Utility
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
Comment Utility
Thank you very much: DirectoryIndex index.php index.html did it.
0

Featured Post

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

Deploystudio is a system which can be used to deploy OSX clients and servers within the small/medium or large business environments. The system is built onto of the OSX Server NetBoot system and uses images & workflows as its core assets. While work…
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.
Internet Business Fax to Email Made Easy - With eFax Corporate (http://www.enterprise.efax.com), you'll receive a dedicated online fax number, which is used the same way as a typical analog fax number. You'll receive secure faxes in your email, fr…
You have products, that come in variants and want to set different prices for them? Watch this micro tutorial that describes how to configure prices for Magento super attributes. Assigning simple products to configurable: We assigned simple products…

762 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

Need Help in Real-Time?

Connect with top rated Experts

11 Experts available now in Live!

Get 1:1 Help Now