1

I'm trying to execute a PHP script from my apache webserver. I tried a Hello World page and it worked, but when I run this findmyiphone script, it shows 500 error from the webserver. What's wrong?

I tried to execute the example.php in terminal by doing php -f example.php, how would I do that from a browser in my web server

5
  • 1
    Take a look into your http servers error log file. That is where you can read the details of the error. It will tell you what is wrong. We cannot tell you, since only you have access to it. Commented Dec 13, 2015 at 9:10
  • in case of linux and apache go to /var/log/apache2 then ls -ltr to sort by newest logs and get your error Commented Dec 13, 2015 at 9:11
  • i checked the apache error log but nothing showed up, only access log shows new access Commented Dec 13, 2015 at 9:14
  • 1
    may be due to php5-curl not installed in your server ? Commented Dec 13, 2015 at 9:24
  • I actually just installed it, just need to restart the apache server Commented Dec 13, 2015 at 9:31

1 Answer 1

1

Answer is I need to restart the server

Sign up to request clarification or add additional context in comments.

1 Comment

glad you made it but the answer is more : install php5-curl and restart apache2 server ...

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.