Solved

PHP Module in OS Yosemite

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

Flexible connectivity for any environment

The KE6900 series can extend and deploy computers with high definition displays across multiple stations in a variety of applications that suit any environment. Expand computer use to stations across multiple rooms with dynamic access.

Question has a verified solution.

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

It is possible to boost certain documents at query time in Solr. Query time boosting can be a powerful resource for finding the most relevant and "best" content. Of course the more information you index, the more fields you will be able to use for y…
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.
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 …
Established in 1997, Technology Architects has become one of the most reputable technology solutions companies in the country. TA have been providing businesses with cost effective state-of-the-art solutions and unparalleled service that is designed…

830 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