-
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]
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

DDR4 Laptop RAM 4GB 8GB 16GB 32GB 2400 2666 3200 Samsung Hynix
$66.00

RAMAXEL Lenovo 32GB LPDDR5X CAMM2 7500MHz Laptop RAM | UNTESTED
$445.00

A-Tech 8GB DDR3 1600 PC3-12800 Laptop SODIMM 204-Pin Memory RAM PC3L DDR3L 1x 8G
$21.68

Crucial DDR3L 16GB 2 x 8GB 1600 MHz PC3L-12800 Laptop RAM Sodimm Memory 1.35V
$41.00

Intel Optane NMA1XXD128GPS DDR4 2666 4Rx4 ECC 128GB Server Ram
$80.00

Corsair Vengeance RGB Pro 32GB (2x16GB) RAM DDR4 3200MHz CMW32GX4M2C3200C16
$169.99

Major Brand 16GB (2x8GB) PC3-12800U DDR3-1600MHz DDR3-12800 DESKTOP RAM NON-ECC
$29.99

Major Brand 8GB PC3L-12800 (DDR3-1600) 2Rx8 DDR3L SDRAM Desktop Memory
$12.99

Kingston HyperX Fury 32GB 16GBx2 DDR4 2666MHz RAM HX426C16FBK2/32
$130.00

Samsung 16GB DDR4 2666MHz PC4-21300 SODIMM RAM M471A2K43CB1-CTD Tested Working
$70.99