User Name Password Register
DaniWeb IT Discussion Community
All
What is DaniWeb IT Discussion Community?
You're currently browsing the PHP section within the Web Development category of DaniWeb, a massive community of 428,637 software developers, web developers, Internet marketers, and tech gurus who are all enthusiastic about making contacts, networking, and learning from each other. In fact, there are 4,094 IT professionals currently interacting right now! Registration is free, only takes a minute and lets you enjoy all of the interactive features of the site.
Please support our PHP advertiser: Lunarpages PHP Web Hosting
Views: 944 | Replies: 3
Reply
Join Date: Dec 2006
Posts: 5
Reputation: neha gupta is an unknown quantity at this point 
Rep Power: 0
Solved Threads: 0
neha gupta neha gupta is offline Offline
Newbie Poster

xampp not running php as well as html files

  #1  
Jan 2nd, 2008
Hi,
I m trying to run my php script using the xampp on Fedora linux.
I ve sucessfully started xampp.And tested using
"http://localhost/"
It works well....
But when i try to run my file (php or html)it does nt work..
I put my file exp.html [or exp.php] in the "lampp/htdocs/" directory...
And give "http://localhost/exp.html"
It shows a message:::"File not found"....

One more ridiculous thing i observed....
If i change the name of some pre existing file of xampp
eg. "/htdocs/xampp/start.php" to "/htdocs/xampp/start1.php"
now i give "http://localhost/xampp/start1.php" in the browser it again gives the error message::File not found

Thanks in advance...
Seeking for a quick reply...
AddThis Social Bookmark Button
Reply With Quote  
Join Date: Nov 2007
Location: Bangalore, India
Posts: 3,098
Reputation: nav33n has a spectacular aura about nav33n has a spectacular aura about 
Rep Power: 8
Solved Threads: 240
nav33n's Avatar
nav33n nav33n is offline Offline
Posting Sensei

Re: xampp not running php as well as html files

  #2  
Jan 2nd, 2008
Well, check DocumentRoot in httpd.conf . Also check <Directory "path/of/your/files"> in the same file. I guess they aren't properly configured.
Programming today is a race between software engineers striving to build bigger and better idiot-proof programs, and the Universe trying to produce bigger and better idiots. So far, the Universe is winning.

*PM asking for help will be ignored*
Reply With Quote  
Join Date: Dec 2007
Posts: 16
Reputation: zeppy.co.uk is an unknown quantity at this point 
Rep Power: 1
Solved Threads: 0
zeppy.co.uk zeppy.co.uk is offline Offline
Newbie Poster

Re: xampp not running php as well as html files

  #3  
Jan 2nd, 2008
Open xampp control panel app, and check that the apache service has started (click start)
Reply With Quote  
Join Date: Dec 2007
Location: Grand Junction, Colorado
Posts: 3
Reputation: cfroese is an unknown quantity at this point 
Rep Power: 0
Solved Threads: 0
cfroese cfroese is offline Offline
Newbie Poster

Re: xampp not running php as well as html files

  #4  
Jan 4th, 2008
Make sure XAMPP is running AND make sure you don't have another instance of httpd running. I think on Fedora you find this info under "Services." If you can't find it there try this at the command line:
  1. > sudo apache2ctl stop
Enter your password when prompted.
Your shell will let you know if Apache is running or not.

Then try this:
  1. > sudo /opt/lampp/lampp restart
Again, enter your password.
Your shell will tell you what's up.
Reply With Quote  
Reply

Only community members can participate in forum threads. You must register or log in to contribute.

DaniWeb PHP Marketplace
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)

 

Thread Tools Display Modes

Other Threads in the PHP Forum

All times are GMT -4. The time now is 1:01 pm.
Forum system based on vBulletin Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
©2003 - 2008 DaniWeb® LLC