Solved

PHP Module in OS Yosemite

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

U.S. Department of Agriculture and Acronis Access

With the new era of mobile computing, smartphones and tablets, wireless communications and cloud services, the USDA sought to take advantage of a mobilized workforce and the blurring lines between personal and corporate computing resources.

Question has a verified solution.

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

Suggested Solutions

The error "There was an error performing the update" occurred on a Mac OS X client workstation running  Symantec AntiVirus for Mac (http://www.symantec.com/business/products/purchasing.jsp?pcid=pcat_security&pvid=825_1) - the Enterprise product vers…
In this article we have discussed about the OS X EI Capitan and how to fix Wi-Fi issue in OS X El Capitan. We have explained how to delete system level preferences and create a new Wi-Fi location to resolve Wi-Fi issue.
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 …
The Email Laundry PDF encryption service allows companies to send confidential encrypted  emails to anybody. The PDF document can also contain attachments that are embedded in the encrypted PDF. The password is randomly generated by The Email Laundr…

739 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