[Angstrom-distro-users] PHP, Lighttpd, fastcgi and MySQL problem on armv4t

Farhad Hedayati-Fard hf.farhad at gmail.com
Mon Jul 4 22:18:05 CEST 2011


Hi,
I've installed lighttpd and lighttpd-module-fastcgi and php-cgi to run
some php scripts on my mini2440, but It seems that mysql does not
allow lighttpd to connect to database. I set lighttpd's server.user
and server.group to lighttpd, and added lighttpd user to mysql group,
but nothing changed, I couldn't find php.ini to see if it's related to
php configuration. I checked my.cnf to see if there's anything that's
somehow related to this problem, but I didn't see anything that's
related.
php package is not available for armv4t, so I compiled it using
openembedded, according to phpinfo(), configure command is :
'/opt/setup-scripts/build/tmp-angstrom_2008_1/work/armv4t-angstrom-linux-gnueabi/php-5.2.13-r7.4/php-5.2.13/configure'
'--build=x86_64-linux' '--host=arm-angstrom-linux-gnueabi'
'--target=arm-angstrom-linux-gnueabi' '--prefix=/usr'
'--exec_prefix=/usr' '--bindir=/usr/bin' '--sbindir=/usr/sbin'
'--libexecdir=/usr/libexec' '--datadir=/usr/share' '--sysconfdir=/etc'
'--sharedstatedir=/com' '--localstatedir=/var' '--libdir=/usr/lib'
'--includedir=/usr/include' '--oldincludedir=/usr/include'
'--infodir=/usr/share/info' '--mandir=/usr/share/man'
'--enable-largefile' '--disable-nls' '--enable-ipv6'
'--enable-mbstring' '--enable-discard-path' '--enable-sockets'
'--enable-shared' '--enable-pcntl' '--enable-wddx'
'--disable-embedded-mysqli' '--enable-magic-quotes' '--enable-fastcgi'
'--with-imap=/opt/setup-scripts/build/tmp-angstrom_2008_1/sysroots/armv4t-angstrom-linux-gnueabi'
'--with-imap-ssl=/opt/setup-scripts/build/tmp-angstrom_2008_1/sysroots/armv4t-angstrom-linux-gnueabi'
'--with-zlib' '--with-zlib-dir=/opt/setup-scripts/build/tmp-angstrom_2008_1/sysroots/armv4t-angstrom-linux-gnueabi/usr/lib/..'
'--with-iconv=/opt/setup-scripts/build/tmp-angstrom_2008_1/sysroots/armv4t-angstrom-linux-gnueabi/usr/lib/..'
'--with-libxml-dir=/opt/setup-scripts/build/tmp-angstrom_2008_1/sysroots/x86_64-linux/usr/armv4t/bin'
'--with-mysql=/opt/setup-scripts/build/tmp-angstrom_2008_1/sysroots/armv4t-angstrom-linux-gnueabi/usr'
'--with-mysqli=/opt/setup-scripts/build/tmp-angstrom_2008_1/sysroots/x86_64-linux/usr/armv4t/bin/mysql_config'
'--with-pdo-mysql=/opt/setup-scripts/build/tmp-angstrom_2008_1/sysroots/x86_64-linux/usr/armv4t/bin/mysql_config'
'--without-pdo-sqlite'


mysql table in phpinfo():

Active Persistent Links	0
Active Links	0
Client API version	5.1.40
MYSQL_MODULE_TYPE	external
MYSQL_SOCKET	/tmp/mysql.sock
MYSQL_INCLUDE	-I/opt/setup-scripts/build/tmp-angstrom_2008_1/sysroots/armv4t-angstrom-linux-gnueabi/usr/include/mysql
MYSQL_LIBS	-L/opt/setup-scripts/build/tmp-angstrom_2008_1/sysroots/armv4t-angstrom-linux-gnueabi/usr/lib
-lmysqlclient



Directive	Local Value	Master Value
mysql.allow_persistent	On	On
mysql.connect_timeout	60	60
mysql.default_host	no value	no value
mysql.default_password	no value	no value
mysql.default_port	no value	no value
mysql.default_socket	no value	no value
mysql.default_user	no value	no value
mysql.max_links	Unlimited	Unlimited
mysql.max_persistent	Unlimited	Unlimited
mysql.trace_mode	Off	Off

What's wrong here?

Thanks in advance :)
Farhad Hedayati-Fard



More information about the Angstrom-distro-users mailing list