PHPFixing
  • Privacy Policy
  • TOS
  • Ask Question
  • Contact Us
  • Home
  • PHP
  • Programming
  • SQL Injection
  • Web3.0

Friday, March 11, 2022

[FIXED] In MAMP one .php file is working other gives a HTTP500 error

 March 11, 2022     macos, mamp, php     No comments   

Issue

I am using MAMP on macos . Inside the .htdocs file ı put some php files to open in the browser . Although file names and path are correct login.php file is working well but on the other hand signup.php file gives me an error (http500 / localhost is currently unable to handle this request.). What could be the reason about that ? Any solution


Solution

You can enable display error for php by adding this code to at the beginning of your code (you can also enable error display globally in php.ini by setting display_errors = on).

ini_set('display_errors', 1);
ini_set('display_startup_errors', 1);
error_reporting(E_ALL);

after that you can trace the error.



Answered By - Mohammad Salehi
  • Share This:  
  •  Facebook
  •  Twitter
  •  Stumble
  •  Digg
Newer Post Older Post Home

0 Comments:

Post a Comment

Note: Only a member of this blog may post a comment.

Total Pageviews

Featured Post

Why Learn PHP Programming

Why Learn PHP Programming A widely-used open source scripting language PHP is one of the most popular programming languages in the world. It...

Subscribe To

Posts
Atom
Posts
Comments
Atom
Comments

Copyright © PHPFixing