Author Topic: Apache  (Read 3083 times)

manu3612

  • Newbie
  • *
  • Posts: 15
    • View Profile
Apache
« on: December 23, 2004, 03:00:59 pm »
Hi,
I installed this Apache+PHP package : http://www.choup.net/linux/pda/old/apache-...0.5_0.1_arm.ipk and it works well.

The document root is /home/www/htdocs but this place doesn't have lots of disk space, so I tried to use /home/zaurus/Documents/htdocs with a symbolinc link : ln -s /home/zaurus/Documents/htdocs /home/www/htdocs/www but when I go to http://127.0.0.1/www/index.html, NetFront tells Error 403 (forbidden) (Yes, I have an index.html in /home/zaurus/Documents/htdocs)
I tried to modify DocumentRoot in /home/www/conf/httpd.conf but vi would not even open httpd.conf (and ZEditor would not save the modified file).

Can you help me ?

Thanks

SolarX

  • Newbie
  • *
  • Posts: 41
    • View Profile
Apache
« Reply #1 on: December 23, 2004, 05:01:52 pm »
It could just be a matter of chmod'ing the htdocs link to the appropriate settings. But you should be able to edit httpd.conf, can you give any more details about what happens when you edit it? What does VI say, and is ZEditor telling you anything? Might just be a permissions thing as well (perhaps httpd.conf is a link too?).

manu3612

  • Newbie
  • *
  • Posts: 15
    • View Profile
Apache
« Reply #2 on: December 23, 2004, 06:10:49 pm »
# ls -l /home/www/conf/httpd.conf
-rwxrwxrwx 1 root root 43401 Jan 1 2001 httpd.conf
(it was originally -rw-r--r-- but I changed to 777)

# vi httpd.conf
"http.conf" is busy[More]
vi opens an empty file and the satus line says :
garbage() failed to read oldhdr??
(the same after apachectl stop)

with ZEditor, httpd.conf opens normally and when I try to save the file, I get the error message :
outfile.open(IO_WriteOnly) : Please incestigate the file...)
even with if saving as another file (as if /home/www/conf was write protected).
I finally saved the httpd.conf in another place and copied httpd.conf to the regular place but I still got error 403.

manu3612

  • Newbie
  • *
  • Posts: 15
    • View Profile
Apache
« Reply #3 on: December 24, 2004, 08:06:43 am »
Finally I put /hdd3/Documents/htdocs as DocumentRoot in httpd.conf with ZEditor and it works OK.