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 QuizGeneral Tech Bugs & Fixes 2 years ago
Posted on 16 Aug 2022, this text provides information on Bugs & Fixes related to General Tech. Please note that while accuracy is prioritized, the data presented might not be entirely correct or up-to-date. This information is offered for general knowledge and informational purposes only, and should not be considered as a substitute for 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.
General Tech 10 Answers
General Tech 7 Answers
General Tech 3 Answers
General Tech 9 Answers
Is Foldable Smartphone Technology the Future or Just a Trend?
Ready to take your education and career to the next level? Register today and join our growing community of learners and professionals.
manpreet
Best Answer
2 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.conf
LoadModule userdir_module libexec/apache2/mod_userdir.so
as 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 --version
on terminal gives me the following:and
which php
my 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 -t
I get aSyntax OK
and 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:run
from a symfony app, it does work as expected, PHP is definitely in and working fine.My only guess is the my
httpd.conf
is broken somehow but I don't know how to fix.Can anyone please shed some light on this?
Mny thanks