From: Jason Lixfeld on 27 Oct 2009 09:18 I have no doubt that this is due to an update that was done on my system at some point, but unfortunately I can't pinpoint where. The upshot is that PHP is completely unresponsive for me when run from Apache and I'm not sure where to look. I recognize that this isn't an apache support list. This message is being cc'd there too. The system is FreeBSD 6.1-RELEASE-p15. PHP 5.2.11 from ports. The only error I get in my php log is this: [27-Oct-2009 13:05:00] PHP Fatal error: Call to undefined function preg_match() in /usr/home/foo/public_html/cerb4/libs/devblocks/libs/ zend_framework/Zend/Cache/Backend/File.php on line 125 Now I've checked and double checked that pcre support is built into php. I'm not sure if there's a command that I can run in php to show all the extensions that are installed or something, but I'm a bazillion percent sure that it's there, so I don't believe that's the cause of the error. I'm reasonably sure of this because the preg_match error thrown every minute when a cron job runs, I have a .php that calls phpinfo() that shows a blank screen when hit from a browser. My problem is that I don't know how to troubleshoot this. I can seem to run PHP from the CLI just fine, so does this look more like an apache issue or perhaps some php module or extension that talks to apache? [root(a)ricky /]# php <?php phpinfo(); ?> phpinfo() PHP Version => 5.2.11 System => FreeBSD ricky.arionetworks.ca 6.1-RELEASE-p15 FreeBSD 6.1- RELEASE-p15 #0: Sat Mar 31 11:43:34 EDT 2007 jlixfeld(a)ricky.arionetworks.ca:/usr/src/sys/amd64/compile/GENERIC amd64 Build Date => Oct 26 2009 15:38:06 Configure Command => './configure' '--with-layout=GNU' '--with- config-file-scan-dir=/usr/local/etc/php' '--disable-all' '--enable- libxml' '--with-libxml-dir=/usr/local' '--enable-reflection' '-- program-prefix=' '--enable-fastcgi' '--with-apxs2=/usr/local/sbin/ apxs' '--with-regex=php' '--with-zend-vm=CALL' '--disable-ipv6' '-- prefix=/usr/local' '--mandir=/usr/local/man' '--infodir=/usr/local/ info/' '--build=amd64-portbld-freebsd6.1' Server API => Command Line Interface Virtual Directory Support => disabled Configuration File (php.ini) Path => /usr/local/etc Loaded Configuration File => /usr/local/etc/php.ini Scan this dir for additional .ini files => /usr/local/etc/php additional .ini files parsed => /usr/local/etc/php/extensions.ini .... .... .... etc .... [root(a)ricky /]# pkg_info | grep php5 php5-5.2.11_1 PHP Scripting Language php5-ctype-5.2.11_1 The ctype shared extension for php php5-dom-5.2.11_1 The dom shared extension for php php5-extensions-1.3 A "meta-port" to install PHP extensions php5-filter-5.2.11_1 The filter shared extension for php php5-gd-5.2.11_1 The gd shared extension for php php5-gettext-5.2.11_1 The gettext shared extension for php php5-iconv-5.2.11_1 The iconv shared extension for php php5-imap-5.2.11_1 The imap shared extension for php php5-ldap-5.2.11_1 The ldap shared extension for php php5-mbstring-5.2.11_1 The mbstring shared extension for php php5-mysql-5.2.11_1 The mysql shared extension for php php5-openssl-5.2.11_1 The openssl shared extension for php php5-pcre-5.2.11_1 The pcre shared extension for php php5-pdo-5.2.11_1 The pdo shared extension for php php5-pdo_sqlite-5.2.11_1 The pdo_sqlite shared extension for php php5-posix-5.2.11_1 The posix shared extension for php php5-session-5.2.11_1 The session shared extension for php php5-simplexml-5.2.11_1 The simplexml shared extension for php php5-spl-5.2.11_1 The spl shared extension for php php5-sqlite-5.2.11_1 The sqlite shared extension for php php5-tokenizer-5.2.11_1 The tokenizer shared extension for php php5-xml-5.2.11_1 The xml shared extension for php php5-xmlreader-5.2.11_1 The xmlreader shared extension for php php5-xmlwriter-5.2.11_1 The xmlwriter shared extension for php [root(a)ricky /]# Any ideas for a completely ignorant, non-developer type? Thanks in advance.
From: Bastien Koert on 27 Oct 2009 09:24 On Tue, Oct 27, 2009 at 9:18 AM, Jason Lixfeld <jason-lists.php(a)lixfeld.ca> wrote: > I have no doubt that this is due to an update that was done on my system at > some point, but unfortunately I can't pinpoint where. The upshot is that > PHP is completely unresponsive for me when run from Apache and I'm not sure > where to look. I recognize that this isn't an apache support list. This > message is being cc'd there too. > > The system is FreeBSD 6.1-RELEASE-p15. PHP 5.2.11 from ports. > > The only error I get in my php log is this: > > [27-Oct-2009 13:05:00] PHP Fatal error: Call to undefined function > preg_match() in > /usr/home/foo/public_html/cerb4/libs/devblocks/libs/zend_framework/Zend/Cache/Backend/File.php > on line 125 > > Now I've checked and double checked that pcre support is built into php. > I'm not sure if there's a command that I can run in php to show all the > extensions that are installed or something, but I'm a bazillion percent sure > that it's there, so I don't believe that's the cause of the error. I'm > reasonably sure of this because the preg_match error thrown every minute > when a cron job runs, I have a .php that calls phpinfo() that shows a blank > screen when hit from a browser. > > My problem is that I don't know how to troubleshoot this. > > I can seem to run PHP from the CLI just fine, so does this look more like an > apache issue or perhaps some php module or extension that talks to apache? > > [root(a)ricky /]# php > <?php > phpinfo(); > ?> > phpinfo() > PHP Version => 5.2.11 > > System => FreeBSD ricky.arionetworks.ca 6.1-RELEASE-p15 FreeBSD > 6.1-RELEASE-p15 #0: Sat Mar 31 11:43:34 EDT 2007 > jlixfeld(a)ricky.arionetworks.ca:/usr/src/sys/amd64/compile/GENERIC amd64 > Build Date => Oct 26 2009 15:38:06 > Configure Command => './configure' '--with-layout=GNU' > '--with-config-file-scan-dir=/usr/local/etc/php' '--disable-all' > '--enable-libxml' '--with-libxml-dir=/usr/local' '--enable-reflection' > '--program-prefix=' '--enable-fastcgi' '--with-apxs2=/usr/local/sbin/apxs' > '--with-regex=php' '--with-zend-vm=CALL' '--disable-ipv6' > '--prefix=/usr/local' '--mandir=/usr/local/man' '--infodir=/usr/local/info/' > '--build=amd64-portbld-freebsd6.1' > Server API => Command Line Interface > Virtual Directory Support => disabled > Configuration File (php.ini) Path => /usr/local/etc > Loaded Configuration File => /usr/local/etc/php.ini > Scan this dir for additional .ini files => /usr/local/etc/php > additional .ini files parsed => /usr/local/etc/php/extensions.ini > ... > ... > ... > etc > ... > > [root(a)ricky /]# pkg_info | grep php5 > php5-5.2.11_1 PHP Scripting Language > php5-ctype-5.2.11_1 The ctype shared extension for php > php5-dom-5.2.11_1 The dom shared extension for php > php5-extensions-1.3 A "meta-port" to install PHP extensions > php5-filter-5.2.11_1 The filter shared extension for php > php5-gd-5.2.11_1 The gd shared extension for php > php5-gettext-5.2.11_1 The gettext shared extension for php > php5-iconv-5.2.11_1 The iconv shared extension for php > php5-imap-5.2.11_1 The imap shared extension for php > php5-ldap-5.2.11_1 The ldap shared extension for php > php5-mbstring-5.2.11_1 The mbstring shared extension for php > php5-mysql-5.2.11_1 The mysql shared extension for php > php5-openssl-5.2.11_1 The openssl shared extension for php > php5-pcre-5.2.11_1 The pcre shared extension for php > php5-pdo-5.2.11_1 The pdo shared extension for php > php5-pdo_sqlite-5.2.11_1 The pdo_sqlite shared extension for php > php5-posix-5.2.11_1 The posix shared extension for php > php5-session-5.2.11_1 The session shared extension for php > php5-simplexml-5.2.11_1 The simplexml shared extension for php > php5-spl-5.2.11_1 The spl shared extension for php > php5-sqlite-5.2.11_1 The sqlite shared extension for php > php5-tokenizer-5.2.11_1 The tokenizer shared extension for php > php5-xml-5.2.11_1 The xml shared extension for php > php5-xmlreader-5.2.11_1 The xmlreader shared extension for php > php5-xmlwriter-5.2.11_1 The xmlwriter shared extension for php > [root(a)ricky /]# > > Any ideas for a completely ignorant, non-developer type? > > Thanks in advance. > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php > > create a small file with this code <?php phpinfo(); ?> which will tell you want modules are enabled in php -- Bastien Cat, the other other white meat
From: Shawn McKenzie on 27 Oct 2009 09:33 Jason Lixfeld wrote: > I have no doubt that this is due to an update that was done on my system > at some point, but unfortunately I can't pinpoint where. The upshot is > that PHP is completely unresponsive for me when run from Apache and I'm > not sure where to look. I recognize that this isn't an apache support > list. This message is being cc'd there too. Are you sure you selected the Apache mod in make config? 1. go to /usr/ports/lang/php5 2. make deinstall 3. make config 4. select APACHE MODULES 5. select ok 6. make clean install -- Thanks! -Shawn http://www.spidean.com
From: Jason Lixfeld on 27 Oct 2009 09:46 On 2009-10-27, at 9:33 AM, Shawn McKenzie wrote: > Jason Lixfeld wrote: >> I have no doubt that this is due to an update that was done on my >> system >> at some point, but unfortunately I can't pinpoint where. The >> upshot is >> that PHP is completely unresponsive for me when run from Apache and >> I'm >> not sure where to look. I recognize that this isn't an apache >> support >> list. This message is being cc'd there too. > > > Are you sure you selected the Apache mod in make config? > > 1. go to /usr/ports/lang/php5 > 2. make deinstall > 3. make config > 4. select APACHE MODULES > 5. select ok > 6. make clean install Yup. Checked and double checked. It's there. Will do the make deinstall ; make clean install again though.
From: Ashley Sheridan on 27 Oct 2009 09:51
On Tue, 2009-10-27 at 09:24 -0400, Bastien Koert wrote: > On Tue, Oct 27, 2009 at 9:18 AM, Jason Lixfeld > <jason-lists.php(a)lixfeld.ca> wrote: > > I have no doubt that this is due to an update that was done on my system at > > some point, but unfortunately I can't pinpoint where. The upshot is that > > PHP is completely unresponsive for me when run from Apache and I'm not sure > > where to look. I recognize that this isn't an apache support list. This > > message is being cc'd there too. > > > > The system is FreeBSD 6.1-RELEASE-p15. PHP 5.2.11 from ports. > > > > The only error I get in my php log is this: > > > > [27-Oct-2009 13:05:00] PHP Fatal error: Call to undefined function > > preg_match() in > > /usr/home/foo/public_html/cerb4/libs/devblocks/libs/zend_framework/Zend/Cache/Backend/File.php > > on line 125 > > > > Now I've checked and double checked that pcre support is built into php. > > I'm not sure if there's a command that I can run in php to show all the > > extensions that are installed or something, but I'm a bazillion percent sure > > that it's there, so I don't believe that's the cause of the error. I'm > > reasonably sure of this because the preg_match error thrown every minute > > when a cron job runs, I have a .php that calls phpinfo() that shows a blank > > screen when hit from a browser. > > > > My problem is that I don't know how to troubleshoot this. > > > > I can seem to run PHP from the CLI just fine, so does this look more like an > > apache issue or perhaps some php module or extension that talks to apache? > > > > [root(a)ricky /]# php > > <?php > > phpinfo(); > > ?> > > phpinfo() > > PHP Version => 5.2.11 > > > > System => FreeBSD ricky.arionetworks.ca 6.1-RELEASE-p15 FreeBSD > > 6.1-RELEASE-p15 #0: Sat Mar 31 11:43:34 EDT 2007 > > jlixfeld(a)ricky.arionetworks.ca:/usr/src/sys/amd64/compile/GENERIC amd64 > > Build Date => Oct 26 2009 15:38:06 > > Configure Command => './configure' '--with-layout=GNU' > > '--with-config-file-scan-dir=/usr/local/etc/php' '--disable-all' > > '--enable-libxml' '--with-libxml-dir=/usr/local' '--enable-reflection' > > '--program-prefix=' '--enable-fastcgi' '--with-apxs2=/usr/local/sbin/apxs' > > '--with-regex=php' '--with-zend-vm=CALL' '--disable-ipv6' > > '--prefix=/usr/local' '--mandir=/usr/local/man' '--infodir=/usr/local/info/' > > '--build=amd64-portbld-freebsd6.1' > > Server API => Command Line Interface > > Virtual Directory Support => disabled > > Configuration File (php.ini) Path => /usr/local/etc > > Loaded Configuration File => /usr/local/etc/php.ini > > Scan this dir for additional .ini files => /usr/local/etc/php > > additional .ini files parsed => /usr/local/etc/php/extensions.ini > > ... > > ... > > ... > > etc > > ... > > > > [root(a)ricky /]# pkg_info | grep php5 > > php5-5.2.11_1 PHP Scripting Language > > php5-ctype-5.2.11_1 The ctype shared extension for php > > php5-dom-5.2.11_1 The dom shared extension for php > > php5-extensions-1.3 A "meta-port" to install PHP extensions > > php5-filter-5.2.11_1 The filter shared extension for php > > php5-gd-5.2.11_1 The gd shared extension for php > > php5-gettext-5.2.11_1 The gettext shared extension for php > > php5-iconv-5.2.11_1 The iconv shared extension for php > > php5-imap-5.2.11_1 The imap shared extension for php > > php5-ldap-5.2.11_1 The ldap shared extension for php > > php5-mbstring-5.2.11_1 The mbstring shared extension for php > > php5-mysql-5.2.11_1 The mysql shared extension for php > > php5-openssl-5.2.11_1 The openssl shared extension for php > > php5-pcre-5.2.11_1 The pcre shared extension for php > > php5-pdo-5.2.11_1 The pdo shared extension for php > > php5-pdo_sqlite-5.2.11_1 The pdo_sqlite shared extension for php > > php5-posix-5.2.11_1 The posix shared extension for php > > php5-session-5.2.11_1 The session shared extension for php > > php5-simplexml-5.2.11_1 The simplexml shared extension for php > > php5-spl-5.2.11_1 The spl shared extension for php > > php5-sqlite-5.2.11_1 The sqlite shared extension for php > > php5-tokenizer-5.2.11_1 The tokenizer shared extension for php > > php5-xml-5.2.11_1 The xml shared extension for php > > php5-xmlreader-5.2.11_1 The xmlreader shared extension for php > > php5-xmlwriter-5.2.11_1 The xmlwriter shared extension for php > > [root(a)ricky /]# > > > > Any ideas for a completely ignorant, non-developer type? > > > > Thanks in advance. > > > > -- > > PHP General Mailing List (http://www.php.net/) > > To unsubscribe, visit: http://www.php.net/unsub.php > > > > > > create a small file with this code > > <?php phpinfo(); ?> > > which will tell you want modules are enabled in php > > -- > > Bastien > > Cat, the other other white meat > He already mentioned that phpinfo() fails. Thanks, Ash http://www.ashleysheridan.co.uk |