Welcome to Linux Forums! With a comprehensive Linux Forum, information on various types of Linux software and many Linux Reviews articles, we have all the knowledge you need a click away, or accessible via our knowledgeable members.
Find the answer to your Linux question:
New to Linux Forums? Register here for free!
    Linux Forums > Your Distro > Knoppix Help Forum > default HTML/PHP script folder?

Forgot Password?
 Knoppix Help Forum   For all discussions about Knoppix, the Linux "Live CD" that lets you run Linux without needing to install on your hard drive.

Site Navigation
Linux Articles
Linux Forums
Linux Downloads
Linux Hosting
Free Magazines
Job Board
IRC Chat
RSS Feeds


Linux Forum Topics
Linux Forums
Your Distro
Linux Resources
GNU Linux Zone
The Community
Reply
 
Thread Tools Display Modes
Old 04-26-2008   #1 (permalink)
Just Joined!
 
jmoney3457's Avatar
 
Join Date: Apr 2008
Location: maine
Posts: 9
Send a message via AIM to jmoney3457 Send a message via MSN to jmoney3457 Send a message via Yahoo to jmoney3457
Question 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
jmoney3457 is offline  


Reply With Quote
Old 04-26-2008   #2 (permalink)
Linux Engineer
 
Join Date: Oct 2007
Location: Tucson AZ
Posts: 842
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?
yancek is offline   Reply With Quote
Old 04-26-2008   #3 (permalink)
Just Joined!
 
jmoney3457's Avatar
 
Join Date: Apr 2008
Location: maine
Posts: 9
Send a message via AIM to jmoney3457 Send a message via MSN to jmoney3457 Send a message via Yahoo to jmoney3457
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 ?
jmoney3457 is offline   Reply With Quote
Old 04-26-2008   #4 (permalink)
Just Joined!
 
jmoney3457's Avatar
 
Join Date: Apr 2008
Location: maine
Posts: 9
Send a message via AIM to jmoney3457 Send a message via MSN to jmoney3457 Send a message via Yahoo to jmoney3457
ok nice spam lol
jmoney3457 is offline   Reply With Quote
Old 04-26-2008   #5 (permalink)
Linux Engineer
 
Join Date: Oct 2007
Location: Tucson AZ
Posts: 842
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
yancek is offline   Reply With Quote
Old 04-26-2008   #6 (permalink)
Just Joined!
 
jmoney3457's Avatar
 
Join Date: Apr 2008
Location: maine
Posts: 9
Send a message via AIM to jmoney3457 Send a message via MSN to jmoney3457 Send a message via Yahoo to jmoney3457
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..
jmoney3457 is offline   Reply With Quote
Old 04-26-2008   #7 (permalink)
Linux Engineer
 
Join Date: Oct 2007
Location: Tucson AZ
Posts: 842
i dont want to install it to my HD.

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.
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??

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.
yancek is offline   Reply With Quote
Old 04-26-2008   #8 (permalink)
Just Joined!
 
jmoney3457's Avatar
 
Join Date: Apr 2008
Location: maine
Posts: 9
Send a message via AIM to jmoney3457 Send a message via MSN to jmoney3457 Send a message via Yahoo to jmoney3457
Quote:
Originally Posted by yancek View Post
i dont want to install it to my HD.

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.
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??

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.
ya but like w/ SLAX server edition you can save php files to /var/www/htdocs & view them in konq & thats a live cd i thought..& also there isnt htdocs under /var/www in knoppix (@least none i could see)..
jmoney3457 is offline   Reply With Quote
Old 04-26-2008   #9 (permalink)
Linux Engineer
 
Join Date: Oct 2007
Location: Tucson AZ
Posts: 842
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.
yancek is offline   Reply With Quote
Old 04-26-2008   #10 (permalink)
Just Joined!
 
jmoney3457's Avatar
 
Join Date: Apr 2008
Location: maine
Posts: 9
Send a message via AIM to jmoney3457 Send a message via MSN to jmoney3457 Send a message via Yahoo to jmoney3457
Quote:
Originally Posted by yancek View Post
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.
so i need to turn on apache to see htdocs dir
jmoney3457 is offline   Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off

Free Magazines
Run Your Own Web Server Using Linux & Apache - Free 191 Page Preview
Learn about everything you'll need to build and maintain your Linux servers, and to deploy Web applications to them.
subscribe
Open Source Security Myths Dispelled
Dispel the five major myths surrounding Open Source Security and gain the tools necessary to make a truly informed decision for your IT organization
subscribe
InformationWeek
InformationWeek is the only newsweekly you'll need to stay on top of the latest developments in information technology.
subscribe



All times are GMT. The time now is 09:20 AM.






© 2000 - 2009 - All Rights Reserved - Property of  MAS Media

Content Relevant URLs by vBSEO 3.3.0 RC2