Question

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

  • Posted 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 :(

Subscribe
Share

Submit an 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.

@erhanharm It looks like you fixed your problem! If you’d like to share how you did it, I’m sure the next person to have a similar problem would appreciate it.

Hi @Andrew SB <br> <br>Here is the file : http://95.85.55.217/arduino-push/info.php <br> <br>It works fine! but i can not find any mistake for this configuration ? Could you see the mistake ? <br> <br>Thanks

Can you try with a simple php info file? Create a file in /var/www/arduino-push called info.php containing: <br> <br><pre> <br> <br><?php <br> <br>// Show all information, defaults to INFO_ALL <br>phpinfo(); <br> <br>?> <br> <br></pre>

@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”

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

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>