How to execute the php files in XAMPP?

Need help installing PHP, configuring a script, or configuring a server? Then come on in and post your questions! We'll try to help the best we can!

Moderator: General Moderators

Post Reply
swetha
Forum Commoner
Posts: 88
Joined: Wed Sep 10, 2008 11:00 pm

How to execute the php files in XAMPP?

Post by swetha »

The operating system im using is Windows Vista.
I have IIS 7.0 in my system previously.Now i have installed XAMPP.
Am trying to access MYSQL through control panel,but am unable to do it.
Kindly help me how to access MYSQL.

Also ive changed the httpd.conf file .The port name ive changed from 80 to 81.
When i give http://localhost:81/xampp,it works fine.Im not sure in which location should i copy the .php file.assume that i have created a new file first.php.In which location do i need to copy this file to execute it through localhost.

Thanks for any help.
sirish
Forum Newbie
Posts: 8
Joined: Tue Sep 09, 2008 11:45 pm

Re: How to execute the php files in XAMPP?

Post by sirish »

You should copy the file inside the folder htdocs
if u have installed xampp in C:\ then the folder htdocs might be in
C:\Program Files\xampp\htdocs\
:lol:
User avatar
novice4eva
Forum Contributor
Posts: 327
Joined: Thu Mar 29, 2007 3:48 am
Location: Nepal

Re: How to execute the php files in XAMPP?

Post by novice4eva »

I would go for the folder named www.
Anyways to be sure check for "DocumentRoot" in httpd.conf
It should look something like:

Code: Select all

DocumentRoot "C:\Program Files\xampp\www"
Whatever it be, that's the location in which your localhost points to and you files should be inside that location
swetha
Forum Commoner
Posts: 88
Joined: Wed Sep 10, 2008 11:00 pm

Re: How to execute the php files in XAMPP?

Post by swetha »

how do i run mysql after installing xampp?
i have installed mysql and apache as a service,but i get an error while trying to run mysql.
this is the error i get while trying to run MYSQL service.
"Access violation at address 10009FB0 in module LIBMYSQL.dll.Read of address 00000000."
User avatar
novice4eva
Forum Contributor
Posts: 327
Joined: Thu Mar 29, 2007 3:48 am
Location: Nepal

Re: How to execute the php files in XAMPP?

Post by novice4eva »

aren't those services loaded automatically!! I use wamp server, never needed to load services separately, maybe xampp is a totally different animal :roll:
Post Reply