Xampp server error 500

I have loaded XAMPP and everything that came in the package seems to be working. According to the XAMPP Control Pannel, I have Apache, MySql and FileZilla running. I created a test.php file and when I enter http://localhost/new/test.php in my browser, I get

Error 500
localhost
12/13/2010 10:15:11 PM
Apache/2.2.14 (Win32) DAV/2 mod_ssl/2.2.14 OpenSSL/0.9.8l mod_autoindex_color PHP/5.3.1 mod_apreq2-20090110/2.7.1 mod_perl/2.0.4 Perl/v5.10.1

The phpMyAdmin works, and test.php works if I put in up one level and enter http://localhost/test.php in my browser.

What do I need to do to get the system working on sub directories?

I just googled ‘xampp error 500’ and got lots of hits. maybe one of them might help you.

Check your server error logs for more detailed error information. 500 is a pretty generic error number that can be caused by a whole lot of problems.

I think you didnt set your web root correctly

Found my problem. I removed the .htaccess file that I will be using on the live site. It has password requirements, and the .htpassword file doesn’t read properly.

Now I just have the issue of getting my includes to work. I am using:
<?php include($_SERVER[‘DOCUMENT_ROOT’]."/include/footer.php") ?> to call the footer used on every page.

I now get this in Firefox:
Warning: include(L:/www/xampp/htdocs/include/footer.php) [function.include]: failed to open stream: No such file or directory in L:\www\xampp\htdocs\mysite\index.php on line 21

What did I do wrong?
How do I fix my problem?
Is there something I can put in a .htaccess file to set the root folder?

have a read through [fphp]include[/fphp] and how it uses the include_path in your php.ini file or in any ini_set().

in my local php.ini file include_path is commented out. yours might be set to a value.

I did read through that and found information about include_path. I checked and found:
include_path = “.;C:\www\xampp\php\PEAR” I suspect that this is something I will have to change frequently unless there is a way to set it with something like .htaccess or a phhp.ini in the local folder.

I understand that include_path in the php.ini is a setting for all php on this server. Can I put a php.ini in the folder that I want to be root and set it as the root.

My thought is that I may have folders for several different sites, and want to test something here before making it live. For that to work, I would need something in the folder for each site that would set this.

I’m not a systems admin guy so I’m not sure exactly how it all works.

I do know that on my web hosting account I have the option to customise the php.ini file for my account and so I imagine each account on the server will also be able to customise their php.ini if they need to.

but I don’t know how it works in the background because the changes I made to my php.ini were done through my account’s control panel.

your situation is now getting beyond what I might be able to help in so hopefully someone else will be able to help you more.