gallery2 on solaris with lighttpd

broken_symlink

Joined: 2009-08-19
Posts: 2
Posted: Wed, 2009-08-19 18:22

I am trying to setup gallery2 on solaris with lighttpd. When I go to http://genesis.blogdns.net/gallery2/ I get a blank page. After looking at the lighttpd logs I found this.

2009-08-19 15:50:06: (mod_fastcgi.c.2592) FastCGI-stderr: PHP Warning: require_once(/var/lighttpd/1.4/docroot/gallery2/modules/core/classes/Gallery.class) [<a href='function.require-once'>function.require-once</a>]: failed to open stream: Permission denied in /var/lighttpd/1.4/docroot/gallery2/bootstrap.inc on line 33
PHP Fatal error: require_once() [<a href='function.require'>function.require</a>]: Failed opening required '/var/lighttpd/1.4/docroot/gallery2/modules/core/classes/Gallery.class' (include_path='.:/opt/csw/php5/lib/php') in /var/lighttpd/1.4/docroot/gallery2/bootstrap.inc on line 33

The user the web server is running under owns the gallery2 directory, so I'm not really sure whats going on.


Gallery version (not just "2"): 2.3
PHP version (e.g. 5.1.6): 5.2.9
PHPInfo Link (see FAQ): http://genesis.blogdns.net/test.php
Webserver (e.g. Apache 1.3.33): lighttpd 1.4.19
Database (e.g. MySql 5.0.32): postgresql 8.3.5
Activated toolkits (e.g. NetPbm, GD): gd
Operating system (e.g. Linux): solaris
Browser (e.g. Firefox 2.0): firefox 3.5.2

 
nivekiam
nivekiam's picture

Joined: 2002-12-10
Posts: 16503
Posted: Wed, 2009-08-19 18:38

Well I don't know what to say other than Lighttpd isn't supported :)

This is the only document I can find about Lighttpd with Gallery:
http://codex.gallery2.org/Gallery2:Lighttpd_URL_Rewrite

But I have G2 and G3 running without problems under Lighttpd. Full disclosure; there is a minor issue with running G3 under Lighttpd, a warning message when you go to set permissions on albums, but I think I have a plan to work around that. Other than that non-G2 issue, G2 runs flawlessly on Lighttpd for me.

What happens when you put Gallery into debug mode? Do you see anything beside the blank page?
FAQ: How to set/use Gallery in debug mode?

What if you display PHP errors:
FAQ: How to display PHP errors?

Do either of those garner more info?
____________________________________________
Like Gallery? Like the support? Donate now!!! See G2 live here

 
broken_symlink

Joined: 2009-08-19
Posts: 2
Posted: Fri, 2009-08-28 14:52

I got it working finally. The motherboard in my server died, so I had to get a new. I then found out that Solaris Express is being discontinued in October. So, I switched to OpenSolaris and it worked. I'm still using lighttpd, but i decided to switch to mysql.

 
nivekiam
nivekiam's picture

Joined: 2002-12-10
Posts: 16503
Posted: Fri, 2009-08-28 15:15

Yeah, so far the only issue I've seen with Lighty is setting permissions on albums since Lighty doesn't do .htaccess. However, you should be able to edit lighttpd.conf to add a rewrite rule to run ALL images through file_proxy.php and it should work.
____________________________________________
Like Gallery? Like the support? Donate now!!! See G2 live here