DaemonForums  

Go Back   DaemonForums > FreeBSD > FreeBSD Ports and Packages

FreeBSD Ports and Packages Installation and upgrading of ports and packages on FreeBSD.

Reply
 
Thread Tools Display Modes
  #1   (View Single Post)  
Old 12th June 2008
trilog trilog is offline
New User
 
Join Date: Jun 2008
Location: Kuusankoski, Finland
Posts: 2
Thanked 0 Times in 0 Posts
Default Apache 2 + php5 + mod_fcgid (in jail)

Hello folks!

I have installed Apache 2 with php5 and mod_fcgid succesfully in to the jail. Everything seems to be working fine, but I have problems with php5 shared modules.

'Php -m' outputs:
Code:
[PHP Modules]
bz2
calendar
ctype
curl
date
dom
fileinfo
filter
gd
hash
iconv
json
libxml
mbstring
mcrypt
mhash
mysql
openssl
pcre
pdf
PDO
pgsql
posix
Reflection
session
SimpleXML
SPL
standard
tokenizer
xml
xmlreader
xmlwriter
zip
zlib

[Zend Modules]
So it's ok.

When I call phpinfo -function my Apache error log pop-ups these errors:
Code:
[Thu Jun 12 20:09:05 2008] [notice] mod_fcgid: call /usr/local/etc/apache22/wwwroot/phpinfo.php with wrapper /usr/local/bin/php-cgi
PHP Warning:  PHP Startup: Unable to load dynamic library '/usr/local/lib/php/20060613/bz2.so' - Cannot open "/usr/local/lib/php/20060613/bz2.so" in Unknown on line 0
PHP Warning:  PHP Startup: Unable to load dynamic library '/usr/local/lib/php/20060613/calendar.so' - Cannot open "/usr/local/lib/php/20060613/calendar.so" in Unknown on line 0
PHP Warning:  PHP Startup: Unable to load dynamic library '/usr/local/lib/php/20060613/ctype.so' - Cannot open "/usr/local/lib/php/20060613/ctype.so" in Unknown on line 0
PHP Warning:  PHP Startup: Unable to load dynamic library '/usr/local/lib/php/20060613/curl.so' - Cannot open "/usr/local/lib/php/20060613/curl.so" in Unknown on line 0
PHP Warning:  PHP Startup: Unable to load dynamic library '/usr/local/lib/php/20060613/pcre.so' - Cannot open "/usr/local/lib/php/20060613/pcre.so" in Unknown on line 0
PHP Warning:  PHP Startup: Unable to load dynamic library '/usr/local/lib/php/20060613/simplexml.so' - Cannot open "/usr/local/lib/php/20060613/simplexml.so" in Unknown on line 0
PHP Warning:  PHP Startup: Unable to load dynamic library '/usr/local/lib/php/20060613/spl.so' - Cannot open "/usr/local/lib/php/20060613/spl.so" in Unknown on line 0
PHP Warning:  PHP Startup: Unable to load dynamic library '/usr/local/lib/php/20060613/dom.so' - Cannot open "/usr/local/lib/php/20060613/dom.so" in Unknown on line 0
PHP Warning:  PHP Startup: Unable to load dynamic library '/usr/local/lib/php/20060613/fileinfo.so' - Cannot open "/usr/local/lib/php/20060613/fileinfo.so" in Unknown on line 0
PHP Warning:  PHP Startup: Unable to load dynamic library '/usr/local/lib/php/20060613/filter.so' - Cannot open "/usr/local/lib/php/20060613/filter.so" in Unknown on line 0
PHP Warning:  PHP Startup: Unable to load dynamic library '/usr/local/lib/php/20060613/gd.so' - Cannot open "/usr/local/lib/php/20060613/gd.so" in Unknown on line 0
PHP Warning:  PHP Startup: Unable to load dynamic library '/usr/local/lib/php/20060613/hash.so' - Cannot open "/usr/local/lib/php/20060613/hash.so" in Unknown on line 0
PHP Warning:  PHP Startup: Unable to load dynamic library '/usr/local/lib/php/20060613/iconv.so' - Cannot open "/usr/local/lib/php/20060613/iconv.so" in Unknown on line 0
PHP Warning:  PHP Startup: Unable to load dynamic library '/usr/local/lib/php/20060613/json.so' - Cannot open "/usr/local/lib/php/20060613/json.so" in Unknown on line 0
PHP Warning:  PHP Startup: Unable to load dynamic library '/usr/local/lib/php/20060613/mbstring.so' - Cannot open "/usr/local/lib/php/20060613/mbstring.so" in Unknown on line 0
PHP Warning:  PHP Startup: Unable to load dynamic library '/usr/local/lib/php/20060613/mcrypt.so' - Cannot open "/usr/local/lib/php/20060613/mcrypt.so" in Unknown on line 0
PHP Warning:  PHP Startup: Unable to load dynamic library '/usr/local/lib/php/20060613/mhash.so' - Cannot open "/usr/local/lib/php/20060613/mhash.so" in Unknown on line 0
PHP Warning:  PHP Startup: Unable to load dynamic library '/usr/local/lib/php/20060613/mysql.so' - Cannot open "/usr/local/lib/php/20060613/mysql.so" in Unknown on line 0
PHP Warning:  PHP Startup: Unable to load dynamic library '/usr/local/lib/php/20060613/openssl.so' - Cannot open "/usr/local/lib/php/20060613/openssl.so" in Unknown on line 0
PHP Warning:  PHP Startup: Unable to load dynamic library '/usr/local/lib/php/20060613/pdf.so' - Cannot open "/usr/local/lib/php/20060613/pdf.so" in Unknown on line 0
PHP Warning:  PHP Startup: Unable to load dynamic library '/usr/local/lib/php/20060613/pdo.so' - Cannot open "/usr/local/lib/php/20060613/pdo.so" in Unknown on line 0
PHP Warning:  PHP Startup: Unable to load dynamic library '/usr/local/lib/php/20060613/pgsql.so' - Cannot open "/usr/local/lib/php/20060613/pgsql.so" in Unknown on line 0
PHP Warning:  PHP Startup: Unable to load dynamic library '/usr/local/lib/php/20060613/posix.so' - Cannot open "/usr/local/lib/php/20060613/posix.so" in Unknown on line 0
PHP Warning:  PHP Startup: Unable to load dynamic library '/usr/local/lib/php/20060613/session.so' - Cannot open "/usr/local/lib/php/20060613/session.so" in Unknown on line 0
PHP Warning:  PHP Startup: Unable to load dynamic library '/usr/local/lib/php/20060613/tokenizer.so' - Cannot open "/usr/local/lib/php/20060613/tokenizer.so" in Unknown on line 0
PHP Warning:  PHP Startup: Unable to load dynamic library '/usr/local/lib/php/20060613/xml.so' - Cannot open "/usr/local/lib/php/20060613/xml.so" in Unknown on line 0
PHP Warning:  PHP Startup: Unable to load dynamic library '/usr/local/lib/php/20060613/xmlreader.so' - Cannot open "/usr/local/lib/php/20060613/xmlreader.so" in Unknown on line 0
PHP Warning:  PHP Startup: Unable to load dynamic library '/usr/local/lib/php/20060613/xmlwriter.so' - Cannot open "/usr/local/lib/php/20060613/xmlwriter.so" in Unknown on line 0
PHP Warning:  PHP Startup: Unable to load dynamic library '/usr/local/lib/php/20060613/zip.so' - Cannot open "/usr/local/lib/php/20060613/zip.so" in Unknown on line 0
PHP Warning:  PHP Startup: Unable to load dynamic library '/usr/local/lib/php/20060613/zlib.so' - Cannot open "/usr/local/lib/php/20060613/zlib.so" in Unknown on line 0
I paste my mod_fcgid config also:
Code:
LoadModule fcgid_module modules/mod_fcgid.so

SharememPath /var/run/fcgid_shm
IPCCommTimeout 45
DefaultMaxClassProcessCount 3
IdleTimeout 3600
SocketPath /tmp
AddHandler fcgid-script .fcgi

<Files ~ "\.(php|phtml)$">
   SetHandler fcgid-script
   FCGIWrapper /usr/local/bin/php-cgi .php
   Options +ExecCGI
</Files>

DirectoryIndex index.php index.phtml

AddType application/x-httpd-php .php
AddType application/x-httpd-php .phtml
AddType application/x-httpd-php-source .phps
I have compiled php5, php5-extensions, mod_fcgid many times, but it does not affect anything.

I hope you can help me, because I don't have any idea what is wrong! Thanks already now.

-trilog
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
fbsd 7.2 and php5 baraboom FreeBSD Ports and Packages 2 9th July 2009 08:33 PM
apache2.2+PHP5 edvinus OpenBSD Packages and Ports 1 29th June 2009 08:13 PM
Upgrade Apache 1.3 mod_ssl to Apache 2.2 beandip FreeBSD Ports and Packages 11 26th March 2009 09:12 PM
Problem with upgrading php5-pcre and php5-mysql KernelPanic FreeBSD Ports and Packages 6 16th June 2008 10:00 PM
Problem installing PHP5 DrKrall OpenBSD Packages and Ports 8 23rd May 2008 12:10 AM


All times are GMT. The time now is 06:24 AM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content copyright © 2007-2010, the authors
Daemon image copyright ©1988, Marshall Kirk McKusick