Results 1 to 4 of 4

Thread: Index.html in /ramdisk/var/www and chainging permissions

  1. #1
    Junior Member
    Join Date
    Aug 2004
    Posts
    2

    Index.html in /ramdisk/var/www and chainging permissions

    After starting up knoppix from a CD, I start up Apache.

    Then I want to delete the index.html used by Apache (in /ramdisk/var/www) but I can't seem to change the permissions on it so that I can delete it?

    I can copy files to the directory (/ramdisk/var/www) but for some reason, I can't chmod the index.html and delete it?

    I am sure I am just being stupid but what am I doing wrong?

    I tried,

    chmod 777 /ramdisk/var/www/*

    and it returned,

    chmod: changing permissions of '/ramdisk/var/www/index.html' : Read-only file system
    chmod: changing permissions of '/ramdisk/var/www/search.html': Read-only file system


    I also tried (with no luck),
    sudo chmod 777 /ramdisk/var/www/*



  2. #2
    Junior Member
    Join Date
    Aug 2004
    Posts
    2
    I resolved my own problem but I am still not quite sure I understand why?

    I tried to edit the original Apache "index.html" web page and I couldn't save it to "/ramdisk/var/www/index.html" from the Mozilla Composer application?

    I could save it to "file:/home/knoppix/index.html".

    Then I started up a "root shell" and did a "rm /ramdisk/var/www/index.html"

    Once it was removed, then I could copy the new index.html over from my home directory with "cp index.html /ramdisk/var/www/index.html"

    I think the original index.html was a link to the CD and that is why I couldn't save it because I can't write to the CD where the file really existed? Once I deleted the link then I could save index.html to "/ramdisk/var/www" folder.

  3. #3
    Senior Member registered user
    Join Date
    Jun 2004
    Posts
    788
    JHM_MKE

    What you can do is, create your webpages in either home directory or create a folder on hardisk then point apache to that directory.
    To achieve this, you need to edit your /etc/apache/httpd.conf:
    Find lines that says:
    # DocumentRoot: The directory out of which you will serve your
    # documents. By default, all requests are taken from this directory, but
    # symbolic links and aliases may be used to point to other locations.
    #
    DocumentRoot /var/www/******this is the lines need to be edited. Change to the directory of your webpages located.
    Ex:
    DocumentRoot /home/www
    or
    DocumentRoot /mnt/hda1/www ***remember to mount first.

    Save it and restart apache : /etc/init.d/apache restart.
    To try it, open your browser and point it to your IP

    .

  4. #4
    Senior Member registered user
    Join Date
    Dec 2003
    Location
    Salt Lake City, UT, U.S.A.
    Posts
    1,338
    JHM_MKE,

    Not sure on this, I don't have Apache on my install, don't use it, but...

    I think you are right, about the symlink thing... I had a heck of a time trying to "lock down" my incoming modem / dial-up connection. I was able to change the permissions on my /ttyS0, but, when I tried to change my /dev/modem permissions, it seemed it worked, didn't error, but never did anything - e.g. my permissions never changed to what I told them too. I realized that you CAN'T change permissions on symlinks, and thus, my /dev/modem was a symlink to my /dev/ttyS0

    I am not sure on this one either, guessing here, but the reason why you got an error from your Konsole CLI chmod and from your "sudo" done chmod, may be that you had to be root, not simulated, or sudo'ed - but physically "be" root - and thus, like my /dev/modem issue above, wouldn't have yelled an error at you, but, not actually done the change for you, if you looked afterwords. ( guessing here too )

    Clueless, just more input,
    Ms. Cuddles

Similar Threads

  1. KDE permissions and user permissions!!!
    By newiaqua in forum Hdd Install / Debian / Apt
    Replies: 4
    Last Post: 12-26-2004, 07:49 PM
  2. how can i disabled the knoppix index.html page at setup
    By shayl6 in forum General Support
    Replies: 3
    Last Post: 05-21-2004, 05:21 PM
  3. file:/cdrom/index.html
    By KnoppiXRuleZ in forum General Support
    Replies: 0
    Last Post: 03-14-2004, 11:07 PM
  4. file:/cdrom/index.html
    By KnoppiXRuleZ in forum General Support
    Replies: 0
    Last Post: 03-14-2004, 11:06 PM
  5. File:/cdrom/index.html does not exist
    By evilmrhenry in forum Hdd Install / Debian / Apt
    Replies: 2
    Last Post: 12-07-2003, 05:51 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
  •  


Dell Poweredge R720 8SFF 2.5

Dell Poweredge R720 8SFF 2.5" x Xeon E5-2680 v2 2.8GHz 20-Cores 128gb 4x Trays

$349.99



Dell EMC PowerEdge R440 Xeon silver 4215 2.5GHz 16 GB ram  2x 550W PSU No HDD picture

Dell EMC PowerEdge R440 Xeon silver 4215 2.5GHz 16 GB ram 2x 550W PSU No HDD

$275.00



Dell PowerEdge R420 Rack Server Intel Xeon 1.90GHz Six-Core 8GB DDR3 RAM picture

Dell PowerEdge R420 Rack Server Intel Xeon 1.90GHz Six-Core 8GB DDR3 RAM

$95.00



Dell PowerEdge R730XD Server 2x E5-2695 V4 = 36 Cores H730p 32GB RAM 4x trays picture

Dell PowerEdge R730XD Server 2x E5-2695 V4 = 36 Cores H730p 32GB RAM 4x trays

$649.99



Dell Poweredge R720 8SFF 2.5

Dell Poweredge R720 8SFF 2.5" 2x Xeon E5-2680 v2 2.8GHz 20-Cores 64gb 4x Trays

$259.99



Dell Poweredge R630 2x Xeon E5-2680 v3 2.5ghz 24-Cores / 64gb / Raid / 2x 1Tb picture

Dell Poweredge R630 2x Xeon E5-2680 v3 2.5ghz 24-Cores / 64gb / Raid / 2x 1Tb

$374.99



Dell PowerEdge R620 2x Xeon E5-2630 v2 3.1GHz 2.5

Dell PowerEdge R620 2x Xeon E5-2630 v2 3.1GHz 2.5" 4-BAY 32GB RAM No OS 2x 495w

$174.95



Dell PowerEdge R640 Server 2.10Ghz 32-Core 64GB RAM Energy-Efficient picture

Dell PowerEdge R640 Server 2.10Ghz 32-Core 64GB RAM Energy-Efficient

$649.95



Dell PowerEdge R530 2x E5-2630v4 H330 iDRAC8 Port Card Riser No PSU/RAM/HDD picture

Dell PowerEdge R530 2x E5-2630v4 H330 iDRAC8 Port Card Riser No PSU/RAM/HDD

$99.99



DELL R640 10SFF Server 2x Gold 6152 2.1GHz =44 Cores 64GB H730p 4xRJ45 picture

DELL R640 10SFF Server 2x Gold 6152 2.1GHz =44 Cores 64GB H730p 4xRJ45

$959.00