Running html & CGI files in XAMPP?

Problems with the Windows version of XAMPP, questions, comments, and anything related.

Running html & CGI files in XAMPP?

Postby Rick-O-Shay » 09. April 2010 06:28

Hello,

I have just installed XAMPP turned it on. I have some html files and some CGI files. Do I just throw all of those files in the htdocs folder?

Also, how do I access those through XAMPP? When I got to http://localhost/index.html I can access this file whether the web server is on or off so I must not really be running it through the server. Any ideas?
Rick-O-Shay
 
Posts: 3
Joined: 09. April 2010 06:10

Re: Running html & CGI files in XAMPP?

Postby Narrowboyy » 09. April 2010 06:53

If you throw all your files in the htdocs folder then you should delete the 2 index files already in there - index.html and index.php - and then use your own index file after starting the Apache server.

http://localhost will then find your own index file and http://localhost/xampp will find the XAMPP Demo Pages.

The way XAMPP is configured 'out of the box' should allow you to run cgi files from within the htdocs folder or you can use the \xampp\cgi-bin folder for your cgi scripts.

BTW if you can access http://localhost/index.html without starting Apache then you may have installation issues or another server on port 80 localhost.
Run \xampp\portcheck.exe and see what is using the ports that XAMPP needs exclusively.

http://localhost/index.html should give the XAMPP message It Works!
http://localhost/index.php should give the XAMPP Demo Pages.


Some helpful reading:
\xampp\readme_en.txt file
or
http://www.apachefriends.org/winxampp/readme_en.txt

http://www.apachefriends.org/en/xampp-windows.html
http://www.apachefriends.org/en/faq-xampp-windows.html
Narrowboyy
 
Posts: 64
Joined: 16. February 2009 02:56


Return to XAMPP for Windows

Who is online

Users browsing this forum: No registered users and 173 guests