• Register
1 vote
115 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

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

Related questions

0 votes
0 answers 28 views
28 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
1 vote
1 answer 63 views
63 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 40 views
40 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 6 views
6 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 4 days ago Umar Ahmad 2.1k points
0 votes
1 answer 4 views
4 views
Problem is currently unable to handle this request
asked 6 days ago jyoti goyal 2.1k points
0 votes
1 answer 4 views
4 views
Problem: http status 500 - request processing failed; nested exception is java.lang.nullpointerexception
asked 6 days ago Muneeb Saadii 2.4k points
1 vote
1 answer 32 views
32 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, 2020 stewart 4k points
0 votes
1 answer 45 views
45 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, 2020 Raphael Pacheco 4.9k points
0 votes
1 answer 4 views
4 views
Problem: we are unable to process your request at this time. please try again later.
asked 6 days ago Muneeb Saadii 2.4k points
0 votes
1 answer 1.2K views
1.2K views
Problem : I am facing following error "500 Internal Server Error - LogicException: Unable to guess how to get a Doctrine instance from the request information". Below is my controller action definition: /** * @Route("/gatheractor/{actor_name}/{gather_id}") * @Template() */ public function createActorAction(Actor $actor, Gather $gather) { // ... } How can I fix the above error?
asked Feb 18, 2020 mphil 2.3k points