Solved

PHP Module in OS Yosemite

Posted on 2014-12-23
2
146 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
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

VMware Disaster Recovery and Data Protection

In this expert guide, you’ll learn about the components of a Modern Data Center. You will use cases for the value-added capabilities of Veeam®, including combining backup and replication for VMware disaster recovery and using replication for data center migration.

Question has a verified solution.

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

If your site has a few sections that need to be secure when data is transmitted between the server and local computer, such as a /order/ section for ordering or /customer/ which contains customer data, etc it would of course be recommended to secure…
Today, still in the boom of Apple, PC's and products, nearly 50% of the computer users use Windows as graphical operating systems. If you are among those users who love windows, but are grappling to keep the system's hard drive optimized, then you s…
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 …
Along with being a a promotional video for my three-day Annielytics Dashboard Seminor, this Micro Tutorial is an intro to Google Analytics API data.

813 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

15 Experts available now in Live!

Get 1:1 Help Now