# Lighttpd/rails deployment error

**URL:** <https://www.ruby-forum.com/t/lighttpd-rails-deployment-error/50930>\
**Category:** Ruby\
**Created:** [December 22, 2005, 11:05pm UTC](https://www.ruby-forum.com/t/lighttpd-rails-deployment-error/50930 "2005-12-22T23:05:30Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![phil\_swenson](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/p/f17d59/32.png) [@phil\_swenson](https://www.ruby-forum.com/u/phil_swenson)\
**Post date:** [December 22, 2005, 11:05pm UTC](https://www.ruby-forum.com/t/lighttpd-rails-deployment-error/50930/1 "2005-12-22T23:05:30Z")

</div>

I have been trying to get Lighttpd working… we have been using  
webrick, but want to move to a production quality web server. I  
followed the instructions found here :  
[http://brainspl.at/pages/rails\_stack](http://brainspl.at/pages/rails_stack)

We are developing on windows and deploying to Fedora Linux. We’re using  
rails 1.0. The build actually happens on the windows box and using ant  
transfers the code to the Linux box. If I manually copy the code from  
the Windows box to the deployment box, Lighttpd works fine. However if  
I use the ant task deploy it (which just SCPs the code), it fails. Here  
is the error I get when I run ruby script/server:

=\> Booting lighttpd (use ‘script/server webrick’ to force WEBrick)  
Rails Error: Unable to access log file. Please ensure that  
script/…/config/…/log/development.log exists and is chmod 0666. The  
log level has been raised to WARN and the output directed to STDERR  
until the problem is fixed.  
=\> Rails application started on [http://0.0.0.0:3000](http://0.0.0.0:3000)  
=\> Call with -d to detach (requires absolute paths in  
config/lighttpd.conf)  
=\> Ctrl-C to shutdown server (see config/lighttpd.conf for options)  
2005-12-22 17:02:34: (mod\_accesslog.c.512) opening access-log failed:  
Permission denied log/lighttpd.access.log  
2005-12-22 17:02:34: (server.c.670) Configuration of plugins failed.  
Going down.

Any ideas?

---

<div class="post-metadata">

**Author:** ![phil\_swenson](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/p/f17d59/32.png) [@phil\_swenson](https://www.ruby-forum.com/u/phil_swenson)\
**Post date:** [December 22, 2005, 11:24pm UTC](https://www.ruby-forum.com/t/lighttpd-rails-deployment-error/50930/2 "2005-12-22T23:24:34Z")

</div>

On Dec 22, 2005, at 2:05 PM, phil swenson wrote:

> transfers the code to the Linux box. If I manually copy the code from  
> until the problem is fixed.
> 
> –  
> Posted via [http://www.ruby-forum.com/](http://www.ruby-forum.com/).

Phil-

```
It looks like a plain old permissions error. Can you go ahead and

```

use your ant task to move things to linux and then chmod the log  
files to be read/writable by the user that you run lighttpd as? Try  
that and report back with your findings and I’ll help you debug.

-Ezra
