• Register
1 vote
48 views

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

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
5,680 points

Related questions

0 votes
0 answers 20 views
20 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 Raphael Pacheco 4.9k points
1 vote
1 answer 44 views
44 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 morrisBson 3.2k points
0 votes
1 answer 33 views
33 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 23 views
23 views
Problem: I am trying to built the local DVD Database with the use of Codeigniter with the film names etc in. I am currently trying to do is load in more data for the film from API. But I am facing the below error : A PHP Error was encountered Severity: ... >title; $imdb_uri = "http://www.imdbapi.com/?i=&t=$film_q"; $json = file_get_contents($imdb_uri); $json = json_decode($json); print_r($json);
asked Jul 16 Raphael Pacheco 4.9k points
1 vote
1 answer 18 views
18 views
Problem : Currently I am facing the below issue with one of my website where I am displaying the products randomly. Woocommerce this product is currently out of stock and unavailable. If I go to my WordPress admin and then click on update button for my product and without ... my problem. So I need to find some way to fix my above listed problem permanently so that it will not come back itself.
asked Apr 27 stewart 4k points