-
Senior Member
registered user

Originally Posted by
felipe_lopes

Originally Posted by
Stephen
You could mount a partition on the hard drive as /var/www/ and server yourself webpages from there. You would make a directory on the /var/www/ for your web pages and then
sudo chown user:user /var/www/your_directory to change the ownership to your user then you will have read-write access. You would access your web pages by
http://127.0.0.1/your_directory/file.html.
Sorry Stephen, But I gotta be stupid....When I try to create a directory in /var/www/ it returns an error! On your code, what I suppose to put on "user:user"?
Maybe I didn get what you said to do...
thank you and sorry
Felipe Lopes
In a console window after you have booted from CD:
sudo mount /dev/hda1 /var/www/ - to mount first partition on first drive (c: in windows)
sudo mkdir /var/www/mywebpages - make a directory for your webpages (you could have already done this in windows first and already have your web pages there in which case this would be unnecessary)
sudo chown -R knoppix:knoppix /var/www/mywebpages/* - to change ownership of files in all the directories of your web pages (may not be needed use if it gives you a no permission to access files)
You may only need step one to mount the HD as your /var/www/ then when you type http://127.0.0.1/mywebpages/file.php in the browser your web pages will be served from your HD directory.
The user:user part in post above is your username I should have been a little clearer on that.
[edit]
Also if it will not let you add pages to your web page directory sudo chown knoppix:knoppix /var/www/mywebpages (to find the ownership of the directory ls -la /var/www/mywebpages)
[/edit]
-
Junior Member
registered user
I've done everything you said...The first 2 steps worked fine, but the third step returnned the following error:
Code:
root@ttyp0[knoppix]# chown -R knoppix:knoppix /var/www/web/*
chown: changing ownership of `/var/www/web/index.php': Operation not permitted
When I try to access my "web" directory thru konquedor (running apache) it says that I don't have permission to see that page...I'm assuming that it is happen due to the above error...How to solve it?
Thank you Stephen so far!
Felipe Lopes
ICQ:59336685
-
Senior Member
registered user
Put sudo in front of the chown line you must be super user to change permissions.
-
Junior Member
registered user
But I'm already logged in as root -> "#"
-
Senior Member
registered user
Did you make the directory in knoppix or windows? If you made the directory with knoppix you can change the permissions because you just wrote to the drive, if you made it in windows are you by any chance using ntfs file system on the drive you are trying to change the permissions on if this is the case the drive would be mounted read-only you cannot write to ntfs.
Check the output of ls -la /var/www/web and ls -la /var/www/web/* also the output of the mount command to see what the file system type is and whether there is a (rw) at the end of the line with /var/www. If the directory /var/www/web is owned by root then change it to knoppix, also try to change just the single file index.php without the -R in the chown line.
-
Junior Member
registered user
Just wondering:
I've edit httpd.conf and then I saved it on my hd (knoppix running from cd)...
Then I started apache this way:
Code:
# apache -f /path/to/file/httpd.conf
Didn't worked though!!!
Does it only work w/ knoppix on hd?
-
Similar Threads
-
By reyn in forum General Support
Replies: 4
Last Post: 08-24-2004, 02:56 AM
-
By drews in forum General Support
Replies: 2
Last Post: 06-25-2004, 09:59 AM
-
By Gencho in forum The Lounge
Replies: 2
Last Post: 06-19-2004, 07:01 PM
-
By sn0wflake in forum General Support
Replies: 4
Last Post: 03-25-2004, 07:08 AM
-
By Idletask in forum General Support
Replies: 0
Last Post: 01-09-2004, 01:03 PM
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules

(2) Seagate SAS Hard Drive Exos 7E8 3TB 7200RPM 128MB 12Gb/s 3.5 ST3000NM0035
$49.99

Dell EMC WD-HITACHI H5H72101CLAR10T0 10TB 7.2K SAS 12Gb/s SED 3.5in A POH 0-50k
$189.99

WD Ultrastar DC HC530 14TB SATA 6G 3.5" 7200RPM Enterprise HDD - WUH721414ALE604
$329.99

Seagate 6TB HDD ST6000NM0034 7.2K 3.5" SAS 12Gb/s (NOT FOR PC - FOR SERVER ONLY)
$87.00

Toshiba 14TB MG07 MG07ACA14TEY 7.2K RPM SATA 6Gb/s 512e 3.5" Enterprise HDD
$299.00

Seagate ST28000NM001C 28TB 256MB 7200RPM 3.5" SATA 6.0Gb/s Enterprise Hard Drive
$669.99

Western Digital WD Black 4TB 3.5" SATA hard drive – WD4004FZWX 128MB cache
$70.00

Seagate Exos ST10000NM002C 10TB CMR 7200RPM SATA6Gb/s 3.5" Enterprise Hard Drive
$279.99

Seagate BarraCuda ST3000DM008 3TB Internal SATA 6Gb 3.5" Hard Drive 7200RPM 64MB
$91.99

Seagate Exos X16 ST12000NM001G 12TB 256MB 7200RPM 3.5" SATA 6Gb/s Enterprise HDD
$349.95