Lighttpd - MySQL - PHP (cgi) - SUCCESS
nivekiam
![]()
Joined: 2002-12-10
Posts: 16504 |
![]() |
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 |
|
m3lvm
Joined: 2009-06-17
Posts: 49 |
![]() |
The Change you have commented on is standard for fast cgi in lighttpd. Quote:
url.access-deny = ( "~", "::$DATA", ".inc", "config.php","e107_config.php",".htaccess","boot.ini","MSDOS.SYS","IO.SYS","NTDETECT.COM","khq","ntldr","System Volume Information/","RECYCLER/",) The only difference for virtual Hosts in linux is the path of you hosts web folder. Quote:
$HTTP["host"] == "www.mywebsite.com" { As you can see in this example it is much easier to configure the server. |
|
nivekiam
![]()
Joined: 2002-12-10
Posts: 16504 |
![]() |
Thanks for the suggestion on the web server, I'll check it out. Open Source - Check I'll check it out, but I'm not getting the warm fuzzy from the tiny community standing behind it. |
|
dmizer
Joined: 2008-10-08
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: Quote:
Oh no! Your server needs a configuration change in order for you to hide photos! Ask your server administrator to set AllowOverride FileInfo Options to fix this. 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: |
|
m3lvm
Joined: 2009-06-17
Posts: 49 |
![]() |
Have a look at the php config there are a nimber settings that need to be changed : Quote:
memory_limit = 512M ; Maximum amount of memory a script may consume (16MB) As you can see I have a high memory limit. Also you have to change this; Quote:
upload_max_filesize = 20M ; Maximum file size allowed to be uploaded If these settings are too low then the php will throw out an error Quote:
extension=php_gd2.dll is active The allowoverides is not an issue in Lighttpd as this statment is one for Apache and its htaccess. |
|
coops
![]()
Joined: 2002-10-31
Posts: 40 |
![]() |
dmizer wrote:
I was able to install with lighttpd as well. I can add albums, but I cannot add photos. I get an "upload error: 400" Do you find a solution to this as I'm having the same issues? |
|
nivekiam
![]()
Joined: 2002-12-10
Posts: 16504 |
![]() |
It just worked for me 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 ____________________________________________ |
|
usef
Joined: 2010-06-14
Posts: 4 |
![]() |
Hi nivekiam, I'm not having success in uploading photos... |
|
nivekiam
![]()
Joined: 2002-12-10
Posts: 16504 |
![]() |
dmizer
Joined: 2008-10-08
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. |
|
dragof
Joined: 2010-10-11
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 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] |
|
nivekiam
![]()
Joined: 2002-12-10
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. |
|
dragof
Joined: 2010-10-11
Posts: 2 |
![]() |
Thank you. |
|