RUNNING PHP

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

RUNNING PHP

Postby karan84 » 11. June 2006 08:18

i hav installed XAMPP(for LINUX)
but where dhould i store my PHP scripts,i.e,
in which directory .what should i write in the brwser to access those scripts
remember i am working in LINUX

somebody please help me out



i have copy my web page into /opt/lampp/htdocs and i dont see it.

i go to http://localhost/index.html and this is the error i have :The requested URL /index.html was not found on this server.

where did i go wrong?
karan84
 
Posts: 1
Joined: 11. June 2006 08:08

Postby Compact » 15. June 2006 13:48

have you checked if the extension of that file is html or htm?
Compact
 
Posts: 12
Joined: 02. November 2005 21:47

Postby keepsedge » 19. June 2006 03:27

first of all, your pages with php content should have a .php extention not .html

next, http://localhost/ will refer to whatever your document root is directed to.

So go to where ever you installed XAMPP (i hope /usr/local/src/) and then find in the conf/ dir, httpd.conf

open in vi

once opened search for DocumentRoot
Code: Select all
/DocumentRoot


that usually says something like
/usr/local/apache/htdocs/
or something.. anyway tahts where your scripts go.

I run a normal install of apache, with mod_perl, and mod_php, so thats how mines set u, I havent needed XAMPP in about a year and a half.

If its that hairy, i can ssh to ya and look for myself.
keepsedge
 
Posts: 33
Joined: 24. December 2004 11:04


Return to XAMPP for Linux

Who is online

Users browsing this forum: No registered users and 12 guests