DSM-G600, DNS-3xx and NSA-220 Hack Forum

Unfortunately no one can be told what fun_plug is - you have to see it for yourself.

You are not logged in.

Announcement

#1 2008-12-02 20:44:39

Maartenvdv
Member
Registered: 2008-12-02
Posts: 6

Issue with php.ini not being loaded through lighttpd

Hi All,

I am currently working on getting lighttpd,
php and mysql to run on the CH3SNAS, to be able to run the egroupware.
I've installed all the packages and edited the lighttpd.conf (with php
support) and the php.ini to load the mysql.so. Also the path to the
extensions for php is set.

When I run the command: php -i | grep mysql on the command line I see
that the mysql extension is succesfully loaded.
When I run a phpinfo through the browser and lighttpd, the mysql is
not loaded, even though the path to the php.ini is succesfully set.

I've added the main parts of the config files below.
I'm very curious about the issue here and thus looking for an expert
to help me out. I was hoping that you could provide me with some
clues?

Regards,

Maarten

[php.ini]
extension_dir = "/ffp/lib/php/extensions/no-debug-non-zts-20060613/"

extension=mysql.so
extension=pdo.so
extension=pdo_mysql.so
extension=pdo_sqlite.so
extension=sqlite.so
extension=tokenizer.so
extension=zlib.so

[lighttpd.conf]
fastcgi.server = ( ".php" => ((
   "bin-path"  => "/ffp/bin/php-cgi -c /ffp/etc/php.ini",
   "socket"    => "/tmp/php-cgi.socket",
   "max-procs" => 2
)))

Offline

 

#2 2008-12-02 21:21:28

fonz
Member / Developer
From: Berlin
Registered: 2007-02-06
Posts: 1716
Website

Re: Issue with php.ini not being loaded through lighttpd

Maartenvdv wrote:

[php.ini]
extension_dir = "/ffp/lib/php/extensions/no-debug-non-zts-20060613/"

extension=mysql.so
extension=pdo.so
extension=pdo_mysql.so
extension=pdo_sqlite.so
extension=sqlite.so
extension=tokenizer.so
extension=zlib.so

A php.ini starts with '[php]', and I don't think you need the extension_dir.

Code:

[php]
extension=mysql.so

Offline

 

Board footer

Powered by PunBB
© Copyright 2002–2010 PunBB