Lighttpd - MySQL - PHP (cgi) - SUCCESS
nivekiam
Joined: 2002-12-10
Posts: 16504 |
Posted: Tue, 2009-06-30 21:13 |
Successfully installed G3 (latest code from git as of about 1pm PST 6/30/2009) and uploaded pictures. This is not a tutorial, period. Once I do this again and actually document the process I'll post on the wiki. Though it's not much different that on an Apache server other than one config change noted below. Only real configuration change I needed to make to php was to set (assuming you have lighttpd working with php and mysql) cgi.fix_pathinfo = 1
A fresh server, had to install all the related software.... Everything I installed was just out of the repositories: Since this is a fresh server, I haven't even moved my sites over yet. Once I do, I'll test out other stuff, like importing G2 and running through any module (well any module I'm interested in) available. EDIT: getting an error 411 - length required when trying to move photos around in Options > Organize Album |
|
Posts: 49
The Change you have commented on is standard for fast cgi in lighttpd.
The most important aspect of lighttpd is that its faster than Apache and eaiser to configure.
Both my linux server and windows server are running lighttpd.
one word of caution make sure you understand how to secure the web root as htaccess is not an option. but chmod as you know is the way in linux
This is for a window install....
The only difference for virtual Hosts in linux is the path of you hosts web folder.
What I tend to do is keep the default webroot for the server as is with phpmyadmin installed there, and v-host to a different harddrive
As you can see in this example it is much easier to configure the server.
The only anoying aspect of lighttpd it will give no real warning especially in window if the server fails to start up. nor will it give you any indication of what has stopped it working.
Also look at Hiawatha for another light weight server.
Posts: 16504
Thanks for the suggestion on the web server, I'll check it out.
Open Source - Check
Maturity - looks like it's been around for awhile and is still actively developed, though it looks like if Hugo get hits by a bus tomorrow, development will cease...
Support Community - hmmm my home town, which there are people 30 miles away who don't know it exists, is bigger...
I'll check it out, but I'm not getting the warm fuzzy from the tiny community standing behind it.
____________________________________________
Like Gallery? Like the support? Donate now!!! See G2 live here
Posts: 40
I was able to install with lighttpd as well. I can add albums, but I cannot add photos. I get an "upload error: 400".
Upon attempting to change the permissions on the album, I get this error:
Looks like this needs a rewrite, but I haven't a clue as to how to craft one for Lighttpd. Any insight on that one?
Server is Ubuntu 8.04 Using Gallery 3.0 beta 1
Took me a few days to figure out that I have to use the "update translations" function in the maintenance tab in order to make my language choices functional.
Edit:
I also get the 411 - Length Required error when attempting to upload from the server.
Posts: 49
Have a look at the php config there are a nimber settings that need to be changed :
As you can see I have a high memory limit.
Also you have to change this;
If these settings are too low then the php will throw out an error
Also make sure you have the
is active
The allowoverides is not an issue in Lighttpd as this statment is one for Apache and its htaccess.
the server security is totally different for lighttpd.
you use the url.access-deny statment listed in this topic to restrict access to important files.
in lighttpd everything is allowed until you deny access.
Posts: 40
Do you find a solution to this as I'm having the same issues?
Posts: 16504
It just worked for me Are you using the latest code:
http://codex.gallery2.org/Gallery3:Upgrading
Check gallery2/var/logs
Check your error and access logs, probably at /var/log/lighttpd/error.log and /var/log/lighttpd/access.log
Error 400 = Bad Request: http://en.wikipedia.org/wiki/List_of_HTTP_status_codes#4xx_Client_Error
____________________________________________
Like Gallery? Like the support? Donate now!!! See G2 live here
Posts: 4
Hi nivekiam,
are you using lighttpd now, with RC1?
I'm not having success in uploading photos...
Posts: 16504
No, only Apache right now. I don't have any time to spend troubleshooting something else right now.
____________________________________________
Like Gallery? Like the support? Donate now!!! See G2 live here
Posts: 40
Have Gallery 3.0 RC2 working perfectly in lighttpd with the information in this thread.
Server is Ubuntu 10.04 LTS
Able to add and remove photos and albums. Later this evening I will test the gallery2 import.
Unrelated to lighttpd, I can't begin to tell you how wonderful it is to be able to include multilingual translations with just a few clicks.
Posts: 2
Have anyone tried tried to restrict access to certain albums? Does not seem to work with lighttpd. Tried various changes in conf. Env. Gallery 3, Ubuntu 10.04 LTS, Lighttpd the latest & greatest Rest is working just fine.
Message from gallery 3 is:
Oh no! Your server needs a configuration change in order for you to hide photos! Ask your server administrator to enable mod_rewrite and set AllowOverride FileInfo Options to fix this.[i]
Posts: 16504
No it doesn't and will probably never be a supported configuration.
You'll probably always get that info unless you figure out some way to fool G3's url rewrite check under Lighttpd.
To force Gallery to run everything through it's file proxy, you'll need to manually create a rewrite rule in Lighttd's config. Sorry, but I don't know what you'd need to put in there. I've only done enough research to get a good idea that it'll be a PITA to run Lighttd for my low traffic sites. I have no need at this time to run something more efficient than Apache.
____________________________________________
Like Gallery? Like the support? Donate now!!! See G2 live here
Posts: 2
Thank you.