Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I've configured xampp and firewall so I can access desktop pc's localhost over my local network through desktop pc's IP. But I'm not able to access auctual projects:

I can access:

http://192.168.x.x/xampp or http://192.168.x.x/phpMyAdmin

But I cannot access:


I get an error:

Server error

We're sorry! The server encountered an internal error and was unable to complete your request. Please try again later.

error 500
share|improve this question
What do the logs say? – mgorven Jun 28 '12 at 20:42
Take a look at your XAMPP's Apache logs and post them here. It'll help diagnose what's going on – qweet Jun 28 '12 at 20:44
[Thu Jun 28 22:26:13 2012] [error] [client] client denied by server configuration: D:/xampp/htdocs/peixa/log/ – Peter O. Jun 28 '12 at 20:47
It's the last one, but I've found another in that folder: – Peter O. Jun 28 '12 at 20:47
Access denied for user 'peixa'@'localhost' (using password: YES) – Peter O. Jun 28 '12 at 20:48
up vote 1 down vote accepted

The web server in XAMP answered with a HTTP 500 error, so you most certainly can access the projects/sites. The problem is that you have some sort of error in your code.

If you see any response at all then the web server is up and running, and you can stop worrying about Firewalls and that kind of thing.

Apache is giving an error, so you need to look in your Apache error log to see what is going on. A 500 error is a generic error you get when ever any sort of CGI of any form fails to return output to the web server. It's about as generic an error as you can get. The logs however will contain the exact error message, and that should help you track the problem down.

share|improve this answer
I think it has something to do with MySQL connection, because: Access denied for user 'peixa'@'localhost' (using password: YES) – Peter O. Jun 29 '12 at 12:05
Ah - no thinking about it - your MySQL permissions are wrong. MySQL is telling Apache to get stuffed when it tried to connect. You need to use a GRANT statement in MySQL to assign the correct permissions. – Bart B Jun 29 '12 at 13:06
@BartB nailed it, take a look at the mysql docs: – Somantra Jun 29 '12 at 13:36
Thanks a lot both you guys – Peter O. Jun 29 '12 at 14:14

That seems like mysql connection problem. You are probably using wrong info, username or password to connect with. Try editing configuration file at /myWebsite/ to match correct info, if there is one.

share|improve this answer
Yes, I have the same thoughts – Peter O. Jun 29 '12 at 12:03

I think the cause is the apache service account lacking permissions to D:/xampp/htdocs/peixa/log/.

If the service does not have sufficient permissions to write to the log file, then I would expect a 500 error or something like 'client denied by server configuration'.

Is peixa the name of the service user?

Whatever user, did you verify Read-Write permissions to D:/xampp/htdocs/peixa/log/ ?

share|improve this answer
There was a log file with this error: Access denied for user 'peixa'@'localhost' (using password: YES) – Peter O. Jun 29 '12 at 12:03
So the user peixa has permissions? – Somantra Jun 29 '12 at 12:04
Yes, it's a service user, it has permissions – Peter O. Jun 29 '12 at 12:06
I coufused with 'localhost', because I'm connecting remotely – Peter O. Jun 29 '12 at 12:06
You are remote, but the server is connecting to itself. Usually mysql will only accept connections from itself for security reasons. – Somantra Jun 29 '12 at 12:10

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.