Speak now
Please Wait Image Converting Into Text...
Embark on a journey of knowledge! Take the quiz and earn valuable credits.
Challenge yourself and boost your learning! Start the quiz now to earn credits.
Unlock your potential! Begin the quiz, answer questions, and accumulate credits along the way.
General 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.
Turn Your Knowledge into Earnings.
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
httpd.conf
LoadModule userdir_module libexec/apache2/mod_userdir.so as well as these two:
LoadModule userdir_module libexec/apache2/mod_userdir.so
LoadModule authz_core_module libexec/apache2/mod_authz_core.so LoadModule authz_host_module libexec/apache2/mod_authz_host.so
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 string but 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.
localhost/php/info.php
Another point is that php itself is installed. executing php --version on terminal gives me the following:
php --version
PHP 5.6.2 (cli) (built: Oct 21 2014 21:47:13) Copyright (c) 1997-2014 The PHP Group Zend Engine v2.6.0, Copyright (c) 1998-2014 Zend Technologies with Zend OPcache v7.0.4-dev, Copyright (c) 1999-2014, by Zend Technologies with Xdebug v2.2.5, Copyright (c) 2002-2014, by Derick Rethans
and which php
which php
/usr/local/php5/bin/php
my httpd.conf:
LoadModule php5_module /usr/local/php5/libphp5.so
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 a Syntax OK and yes, I did restart apache after my last round of changes. Have even restarted the computer to be sure.
sudo apachectl -t
Syntax OK
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.
php app/console server:run
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
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 9 Answers
General Tech 7 Answers
General Tech 3 Answers
General Tech 2 Answers
Ready to take your education and career to the next level? Register today and join our growing community of learners and professionals.