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
  •  


Intel Core i7-9700 Octa-Core 3 GHz Desktop Processor LGA 1151 picture

Intel Core i7-9700 Octa-Core 3 GHz Desktop Processor LGA 1151

$79.99



INTEL CORE I5-11600 2.80GHZ PROCESSOR | SRKNW picture

INTEL CORE I5-11600 2.80GHZ PROCESSOR | SRKNW

$109.99



Intel Core i7-11700T SRKNT 1.4GHz Desktop CPU picture

Intel Core i7-11700T SRKNT 1.4GHz Desktop CPU

$119.99



INTEL CORE ULTRA 7 265 PROCESSOR | 2.40GHZ | SRQCX picture

INTEL CORE ULTRA 7 265 PROCESSOR | 2.40GHZ | SRQCX

$199.00



Intel Core i7-9700 3.00 GHz LGA 1151 Desktop CPU Processor SRG13 picture

Intel Core i7-9700 3.00 GHz LGA 1151 Desktop CPU Processor SRG13

$79.99



AMD Ryzen 5 5600X Desktop Processor (3.7GHz, 6 Cores, AM4 CPU) 100-100000065 picture

AMD Ryzen 5 5600X Desktop Processor (3.7GHz, 6 Cores, AM4 CPU) 100-100000065

$135.00



Intel Core i9-9900 3.10GHz CPU Processor SRG18 picture

Intel Core i9-9900 3.10GHz CPU Processor SRG18

$165.00



Intel Core i7-7700 3.6GHz Quad-Core Desktop CPU Processor SR338 LGA1151 picture

Intel Core i7-7700 3.6GHz Quad-Core Desktop CPU Processor SR338 LGA1151

$40.00



INTEL CORE I7-870 SLBJG 2.93GHZ LGA1156 4 CORE CPU PROCESSOR picture

INTEL CORE I7-870 SLBJG 2.93GHZ LGA1156 4 CORE CPU PROCESSOR

$23.00



Intel Core i5-12600 SRL5T 12th Gen Desktop Processor 3.30GHz LGA1700 CPU picture

Intel Core i5-12600 SRL5T 12th Gen Desktop Processor 3.30GHz LGA1700 CPU

$185.00