Results 1 to 10 of 15
what folder do you put html & PHP scripts in to view in konquror..i tried putting them in var/www/ but it said i didnt have permission to save there...
- 04-26-2008 #1
default HTML/PHP script folder?
what folder do you put html & PHP scripts in to view in konquror..i tried putting them in var/www/ but it said i didnt have permission to save there
- 04-26-2008 #2Linux Guru
- Join Date
- Oct 2007
- Location
- Tucson AZ
- Posts
- 1,884
On systems I have used you need to be 'root' user to put files in /var/www/ and sub-directories.
You should be able to open an html page anywhere.
Do you have apache installed/configured?
- 04-26-2008 #3
how do you log into live cd knoppix as root? coz when i open terminal it says user is knoppix ..also how do i activate (turn on) apache? & where does the php/html files (scripts) usually go to view them in your browser ...& what do you type in the browser to view the particular script i.e if i want to view index.php where do i save it & what do i type in browser to view index.php ?
- 04-26-2008 #4
- 04-26-2008 #5Linux Guru
- Join Date
- Oct 2007
- Location
- Tucson AZ
- Posts
- 1,884
If you are using a knoppix live cd, what do you have installed on your hard drive? I'm not really sure what you are trying to do, a more detailed explanation of what you have on your system and what you are trying to do would probably get you more help. What distro on your hard drive? The are different installers so different methods to install apache/php etc.
Logging in to knoppix as root: Root - Knoppix Documentation Wiki
- 04-26-2008 #6
i dont want to install it to my HD..thats why i use live cd..what folder do html/php files go in to view them on your browser..& what do you type in your browser to view that file..
- 04-26-2008 #7Linux Guru
- Join Date
- Oct 2007
- Location
- Tucson AZ
- Posts
- 1,884
i dont want to install it to my HD.
A Live CD is read-only. You can't save/write files to it. Still have no idea what you are trying to do or if you have a system on your hard drive you can access??HTML Code:That's good because Knoppix was meant as a Live CD and not to be installed on hard drive, although it can be.
What you would type in your browser to see "myfile.html" would be (http://localhost/myfile.html) Of course, before you could do this you would have to have a web server (apache) installed and configured and if you want to view php files php installed and configured. You would then create your files and put them in the "/var/www/htdocs" directory. You don't need "html" files there, you can open them anywhere by just clicking on them.
- 04-26-2008 #8
- 04-26-2008 #9Linux Guru
- Join Date
- Oct 2007
- Location
- Tucson AZ
- Posts
- 1,884
If you used Slax "SERVER" edition it had a web server (apache) and if you don't see an "htdocs" directory in /var/www/ on Knoppix it is because there is no server.
- 04-26-2008 #10


Reply With Quote

