Project

General

Profile

New User failed at the first hurdle setting own site

Added by jamesr over 13 years ago

Hi All,

I am a new user of lighty altough have used Apache2 to run an intranet site, probably an overkill. But my main server failed Hard drive failure (SCSI) so I am currently down while waiting for a replacement. I had an old PC that I used for checking server operations etc so I thought that I would try lighttpd.

OS Xubuntu 10.04 LTS version

Downloaded the latest version for the Ubuntu site version 1.4.26-1.
Installed OK and I could the place holder page.

Using the information in the www.linuxuser.co.uk magazine, I set up a couple of standard aliases. I copied my intranet site to the /var/www directory and tried to restart the lighty server
comp2@comp2:~$ lightreload
chown: changing ownership of `/var/run/lighttpd': Operation not permitted
comp2@comp2:~$

lightreload is equivalent to
alias lightreload='/etc/init.d/lighttpd force-reload'

but as you can see I get a chown error. Therefore no change

I rebooted the system and still see the place holder not my index file.

As you can see, I failed at the first hurdle not good news.

I believe that this is a permission problem because I equally cannot see the log files (permission denied)

The log files as listed as being owned by www-data
@
comp2@comp2:/var/log$ ls -l
total 10168

rw-rw-r- 1 root utmp 295212 2010-10-11 17:49 lastlog
drwxr-x--- 2 www-data www-data 4096 2010-11-27 14:16 lighttpd
rw-r---- 1 syslog adm 0 2010-09-01 16:46 lpr.log
@

Best Wishes
Jim R


Replies (2)

RE: New User failed at the first hurdle setting own site - Added by spaam over 13 years ago

try run that command as root.
using sudo or with su.

RE: Xubuntu 10:04 and Lighttpd New User failed at the first hurdle setting own site - Added by jamesr over 13 years ago

Hi spaam

Thanks for the tip or should I say reminder, I should have remembered that feature of (X)ubuntu. The process now works without the error message.

But the problem was not totally solved. The placeholder page was still being used even after using the corrected reload command. I found that changed the placeholder file name , added .old on the end, still made no difference but if I specified
http://localhost/index.html or http://xxxxx/index.html where xxxxx was the server name then it worked.

BUT all changed this morning after rebooting the server , now the correct page seen. !!!???

Now to add more of my intranet site and then check out seeing the log files.

Thanks again.

Jim

    (1-2/2)