• Register
1 vote

Problem :

Recently I have joined my new project in PHP. I am beginner to PHP programming. I am facing below server error in my project.

Localhost is currently unable to handle this request. http error 500”

I have already done a lot of research on above error from my end and also I have done following changes I have tried to set my variables display_errors: On and also tried error_reporting : E_ALL in the php.ini config file and also tried to restart the server.

But I can still see the same old above error message. Can somebody help in fixing above error?

8 5 2
3,230 points

Please log in or register to answer this question.

1 Answer

1 vote

Solution :

I have gone through your problem and based on the information you have provided I think it is a permissions related issue on your file. It would be one of the causes of a 500 Internal Server Error which you are facing.

To make sure the problem and it seems you do not have more detailed information related to the error you need to navigate to your directory in the Terminal and simply run the below command:

ls –la
After running above command if you come across the limited permissions for example. -rw-------@ written against your file, then it confirms your problem is the limited permissions.

Now solution on it is very simple you need to run chmod 644 on your problem files or chmod 755 on your directories. 

8 4 1
5,680 points

Related questions

0 votes
1 answer 5 views
Problem: What went wrong that caused the error?
asked Apr 9 zayed1 61.8k points
0 votes
1 answer 7 views
Problem: I am doing a simple thing saving some content in database, but some how i'm getting this HTTP ERROR 500. I don't know why it is coming and my code is also not working properly. Please have a look Controller.php function register_query() { //load the registration helper under ... ) { $this->db->insert('queries', $data); $id = $this->db->insert_id(); return (isset($id)) ? $id : FALSE; }
asked Apr 26 sumaiya simi 43.9k points
0 votes
1 answer 4 views
Problem: My old Project use Laravel 5.4.17 It can work in server normally.But new Project use Laravel 5.5.4 It can't work when route in root/public " mydomain.com/root/public is currently unable to handle this request. HTTP ERROR 500". Is it a problem with the version of php? Because current php version is 5.6.23. Laravel 5.5 require php 7.0? Do you think I'm right?
asked 5 days ago jamuna1 30.2k points
0 votes
0 answers 32 views
Problem: I have fundamental knowledge in PHP. I have recently written a PHP script which connects to my database setup up with the MAMP. But it does not seem to be able to connect to my database. Each and every time I tried the script has failed with the below message ... ($myresult)) {                 echo $row['username'] . "<br>";         } else {                 echo "Fail";         } ?>
asked Jun 16, 2020 Raphael Pacheco 4.9k points
0 votes
1 answer 578 views
Problem: I used Google to try to find a solution on the web of the above question, But I got no useful hints. Can I get Pointer information about my problem with this?
asked Mar 21 shamimkhan 15.1k points
1 vote
1 answer 69 views
Problem : I am very new to the Wordpress programming world. I am facing below error. &ldquo;Is currently unable to handle this request. http error 500 wordpress&rdquo;. There is no information present in above error so I am unable to fix above error. Can somebody help me in fixing above error?
asked Mar 30, 2020 morrisBson 3.2k points
0 votes
1 answer 45 views
Problem : I have currently inherited my webpage account for our office. But when I go to the logs in my webpage admin section it shows me the below error:- This page isn't working is currently unable to handle this request. http error 500 I was told by the ... him log back in. I have also tried almost everything to get it back up and running. Does anyone know any solution on this issue?
asked Dec 19, 2019 alecxe 7.5k points
0 votes
1 answer 18 views
Problem: currently unable to handle this request. http error 500 php I have transferred my shopping cart files from local to live. I hope to discover why it is showing this error. Any help will be Appreciated!
asked Feb 25 Umar Ahmad 4.1k points
0 votes
1 answer 7 views
Problem: I am just getting localhost is currently unable to handle this request. xampp, Does anyone know how to fix it?
asked Apr 1 zayed1 61.8k points
0 votes
1 answer 2 views
Problem: Does anyone grasp the problem? >Www.facebook.com is currently unable to handle this request.
asked 20 hours ago Sawyer Parviz 1.9k points