i have an issue with one of my sites when I run it in xampp.
I am getting the following error message when I run any of the files in the folder. I tried to set AllowOverride None to AllowOverride All in the httpd.config but this gives the same result.
Attached is the message.
I don’t seem to be having the same issue with other folders that I have in the htdocs file which are running PHP files.
This is the error I’m getting for anyone who can’t see my attached image:
Server Error!
The server encountered an internal error and was unable to complete your request. Either the server is overloaded or there was an error in a CGI script.
If you think this is a server error, please contact the webmaster.
no i haven’t. I searched for a solution and someone suggested deleting the .htaccess file in the xampp folder which is inside htdocs folder, however, the .htaccess file didn’t seem to be present there.
Sometimes these issues can be fixed by simply reinstalling. I would go that route than if the problem persists start digging into the actual meaning of the errors in the log.
You could also switch over to using Vagrant + Virtual Box + Puphpet. That is the route all the cool kids are heading in the modern world of php web dev. It is a little more involved setup but much more flexible. Especially if you need to install additional software like php extensions not covered under xampp, ruby, node js, etc. All of which are very common these days to have alongside the php environment.