Embark on a journey of knowledge! Take the quiz and earn valuable credits.
Take A QuizChallenge yourself and boost your learning! Start the quiz now to earn credits.
Take A QuizUnlock your potential! Begin the quiz, answer questions, and accumulate credits along the way.
Take A QuizPlease log in to access this content. You will be redirected to the login page shortly.
LoginGeneral Tech Bugs & Fixes 3 years ago
User submissions are the sole responsibility of contributors, with TuteeHUB disclaiming liability for accuracy, copyrights, or consequences of use; content is for informational purposes only and not professional advice.
No matter what stage you're at in your education or career, TuteeHUB will help you reach the next level that you're aiming for. Simply,Choose a subject/topic and get started in self-paced practice sessions to improve your knowledge and scores.
Please log in to access this content. You will be redirected to the login page shortly.
Login
Ready to take your education and career to the next level? Register today and join our growing community of learners and professionals.
Your experience on this site will be improved by allowing cookies. Read Cookie Policy
Your experience on this site will be improved by allowing cookies. Read Cookie Policy
manpreet
Best Answer
3 years ago
Once I've upgraded to Yosemite my PHP stopped working. After a quick search I've found this guidewhich worked fine on my work computer.
When I tried the same on my home Mac, it didn't work. 1) on my home Mac I had entropy PHP initially installed, so I followed they guide to uninstall and install a newer version but that didn't work.
I've also tried with standard PHP that came out of the box and that didn't work either.
To clarify: I've cleaned install Yosemite then I imported my user and settings. I've uncommented this line on
httpd.confLoadModule userdir_module libexec/apache2/mod_userdir.soas well as these two:I don't want to use the user's Site (i.e.: localhost/~user/myphpapp) and would rather use (localhost/myphpapp) but I did followed the instructions to set users' Site and that didn't work either. (I then reverted back)
To clarify what it means it doesn't work: when I go to
localhost/php/info.php(where info.php has phpinfo() in it) I can the stringbut it doesn't execute. When I navigate through my apps, the files are visible, which tells me apache is working fine, just PHP isn't executing the files.Another point is that php itself is installed. executing
php --versionon terminal gives me the following:and
which phpmy httpd.conf:
which is what entropy gave me after installing its script. I can see the libphp5.so in the above directory (its actually a symlink but thats fine I guess)
When I execute
sudo apachectl -tI get aSyntax OKand yes, I did restart apache after my last round of changes. Have even restarted the computer to be sure.Lastly, when I execute
php app/console server:runfrom a symfony app, it does work as expected, PHP is definitely in and working fine.My only guess is the my
httpd.confis broken somehow but I don't know how to fix.Can anyone please shed some light on this?
Mny thanks