Yes, I'm sure. You previously marked this answer as accepted. Are you sure you want to unaccept it? DigitalOcean home. Community Control Panel. Hacktoberfest Contribute to Open Source. Posted July 18, I set cgi. Add a comment. Subscribe Subscribed. I had same issue.
Anyone can help us? Tell me what happens. Submit an Answer Submit an answer. Reply Report. Asked 8 years, 3 months ago. Active 1 year ago. Viewed k times. OS and server information: CentOS 6. Thank you. EDIT: I have these lines in the php. Anthony Gainor. Anthony Gainor Anthony Gainor 1, 2 2 gold badges 9 9 silver badges 9 9 bronze badges. Well, how did you install it? Which SAPI? Your php module is not running. I edited the questions. The modules do exits and they are being loaded apparently — Anthony Gainor.
Did you restart apache after installation? Show 6 more comments. Active Oldest Votes. Mihkel Mihkel 6 6 silver badges 2 2 bronze badges. Could you add some info where to put these lines? For people looking for where to put these lines. In my case , on Apache This works, adding d part to x-http-php like on your post works! I've configured php from source — Liso. Add a comment. So here is another possible cause: If you have something like AddHandler x-mapp-php6. I had the some problem but found the culprit.
If anyone else has the same issue, look for. I had an. It was forcing a version of PHP that was not installed on my local machine. Thus the virtual host wasn't executing the PHP file properly. This is almost certainly the problem if some sites work and others don't. Show 1 more comment.
After struggling a lot I finally solved the problem. But If you are still getting the error : Config file php5. Ravi Shankar Ravi Shankar 1 1 silver badge 5 5 bronze badges. Note that this only works under Linux and specifically Debian Linux. Please take a look at your addtype directives. Clearing your browser cache is always a good idea. AddHandler php5-script.
DirectoryIndex index. Sam Azer Sam Azer 3 3 bronze badges. The problem here is that PHP is not being run correctly somehow, or the wrong headers are being sent Note the last AddType directive which is commented out in the above example, causes a. Is it possible that your Apache configuration is pretty-printing. You can begin installation of modules like, sudo apt-get install libapache2-mod-php7.
Noushad Noushad 4, 3 3 gold badges 22 22 silver badges 27 27 bronze badges. Thanks to all!!! Ladislao Garcia Ladislao Garcia 62 2 2 bronze badges. Take care of browser cache too. My system : Ubuntu Do NOT set it to On as it prevents. In case someone is using php7 under a Linux environment Make sure you enable php7 sudo a2enmod php7 Restart the mysql service and Apache sudo systemctl restart mysql sudo systemctl restart apache2.
MedoAlmasry MedoAlmasry 3 3 silver badges 18 18 bronze badges. Jeffrey Bosboom This worked for me as well macOS Sierra. The odd thing is, I encountered this problem when switching from Mamp 3.
Cez Cez 4, 1 1 gold badge 23 23 silver badges 36 36 bronze badges. I've tried that and again, just now to no avail. My httpd. My problem is that, despite the problematic line mentioned in my question being removed, I'm still having problems. It's like the server has cached the. Please added emphasis to my question for clarification. Thank you, anyways! Does the server have any cache modules loaded? Yes, the "5" was left in by accident — Cez. How could I clear these caches? Would any of these cause this problem?
Simply renaming the file, trying to access it by the old name, and then renaming it again as you described worked like a charm. Thank you! StefaDesign StefaDesign 6 6 silver badges 16 16 bronze badges. Work around was to remove the line.
Amber Amber k 78 78 gold badges silver badges bronze badges. I tried that to no avail. Before it was working just fine without anything in the. Mariella Mariella 21 1 1 bronze badge.
First check if your apache server is running. Check if your mysql is running and listening using same command but you should be looking for TCP 0. Sarfraz Sarfraz k 70 70 gold badges silver badges bronze badges. Please see the updates to my post for more details. Good Luck! Annabelle Green Annabelle Green 13 2 2 bronze badges. Juan Ignacio Juan Ignacio 1 2 2 bronze badges. Amarjeet Kumar Amarjeet Kumar 1.
Stefan Avramovic Stefan Avramovic 1, 1 1 gold badge 10 10 silver badges 17 17 bronze badges. Sign up or log in Sign up using Google. Sign up using Facebook.
0コメント