Report this

What is the reason for this report?

Getting 500 Error while accesing a basic PHP File ( Wordpress Ubuntu Installed)

Posted on April 20, 2014

Hi guys,

Here is my server IP http://95.85.55.217/

You can see the wordpress is working correctly. But i upload a basic PHP file to same folder with folder name arduino-push

http://95.85.55.217/arduino-push/test.php?title=test&message=test

It is not working. I am getting 500 Error.

I set the permission of the arduino-push folder 755 . Nothing changed :(



This textbox defaults to using Markdown to format your answer.

You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

to see the error instead of just 500 error, you probably need to first tell PHP to show errors: <br>at the TOP <br>error_reporting(E_ALL); <br>ini_set(‘display_errors’ 1); <br>

i accedently sent the previos message bfore i finished it and it seams you can’t edit here so: <br> <br> <br>to see the error instead of just 500 error, you probably need to first tell PHP to show errors: <br>at the TOP of the file <br>error_reporting(E_ALL); <br>ini_set(‘display_errors’ 1); <br> <br>if you still don’t see the errors <br>try to see the server log for errors: <br>on the terminal: tail /etc/log/httpd/error_log <br>or: tail /etc/log/syslog <br>of: tail /et/log/messages

@7ecc4baa <br> <br>Thanks for your help. <br> <br>I’ve added the PHP codes to my PHP file but nothing changed. <br> <br>After that i connected to the machine via SSH , but i could not find the location /etc/log/httpd/error_log or /etc/log/syslog and /et/log/messages <br> <br>You could said /var/log/apache2/ other_vhosts_access.log ? <br> <br>i saw these lines : <br> <br>XXX.XXX.XXX.XX XX.XXX.XXX.XXX(My IP’s) - - [20/Apr/2014:14:35:19 -0400] “GET /arduino-push/test.php?title=Test&message=Test45 HTTP/1.1” 500 190 “-” “Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.17 (KHTML, like Gecko) Chrome/24.0.1312.57 Safari/537.17”

The developer cloud

Scale up as you grow — whether you're running one virtual machine or ten thousand.

Get started for free

Sign up and get $200 in credit for your first 60 days with DigitalOcean.*

*This promotional offer applies to new accounts only.