f1cf Getting a PHP error - The FreeBSD Forums
The FreeBSD Forums  

Go Back   The FreeBSD Forums > Server & Networking > Web & Network Services

Web & Network Services Discussion related to network/web services such as apache, bind, sendmail, etc.

Reply
 
Thread Tools Display Modes
  #1  
Old August 1st, 2012, 19:29
dpalme dpalme is offline
Member
 
Join Date: Nov 2008
Posts: 170
Thanks: 8
Thanked 0 Times in 0 Posts
Default Getting a PHP error

All of a sudden I'm getting the following errors and PHP isn't working properly:
Code:
PHP Warning:  PHP Startup: Unable to load dynamic library '/usr/local/lib/php/20100525/mcrypt.so' - Cannot open "/usr/local/lib/php/20100525/mcrypt.so" in Unknown on line 0
PHP Warning:  PHP Startup: Unable to load dynamic library '/usr/local/lib/php/20100525/sqlite.so' - Cannot open "/usr/local/lib/php/20100525/sqlite.so" in Unknown on line 0
any idea how to fix this?

Last edited by SirDice; August 2nd, 2012 at 15:11. Reason: Read about formatting tags: http://forums.freebsd.org/misc.php?do=bbcode
Reply With Quote
  #2  
Old August 1st, 2012, 20:08
Abriel Abriel is offline
Junior Member
 
Join Date: May 2009
Posts: 81
Thanks: 4
Thanked 15 Times in 15 Posts
Default

If you don't need it, try uncheck
Code:
[ ] MCRYPT      Encryption support 
[ ] SQLITE      sqlite support
in /usr/ports/lang/php52-extensions
or reinstall it.
You can try comment
Code:
extension=mcrypt.so
extension=sqlite.so
in /usr/local/etc/php/extensions.ini
Reply With Quote
  #3  
Old August 1st, 2012, 21:00
dpalme dpalme is offline
Member
 
Join Date: Nov 2008
Posts: 170
Thanks: 8
Thanked 0 Times in 0 Posts
Default

Well I got part of it fixed, but when I try running php from a command line its giving me a segmentation fault.....
Reply With Quote
  #4  
Old August 1st, 2012, 21:02
dpalme dpalme is offline
Member
 
Join Date: Nov 2008
Posts: 170
Thanks: 8
Thanked 0 Times in 0 Posts
Default

Code:
php /home/bomb/www/data/junk/setup.php
PHP Notice:  Undefined index: HTTP_HOST in /usr/home/bomb/www/data/junk/churn.php on line 23
PHP Notice:  Undefined index: HTTP_HOST in /usr/home/bomb/www/data/junk/churn.php on line 24
Segmentation fault (core dumped)
www#

Last edited by SirDice; August 2nd, 2012 at 15:11. Reason: Read about formatting tags: http://forums.freebsd.org/misc.php?do=bbcode
Reply With Quote
  #5  
Old August 1st, 2012, 21:03
dpalme dpalme is offline
Member
 
Join Date: Nov 2008
Posts: 170
Thanks: 8
Thanked 0 Times in 0 Posts
Default

Ignore the directory names, those were changed from what they actually are
Reply With Quote
  #6  
Old August 1st, 2012, 21:32
Abriel Abriel is offline
Junior Member
 
Join Date: May 2009
Posts: 81
Thanks: 4
Thanked 15 Times in 15 Posts
Default

Did you try reinstall php?
Reply With Quote
  #7  
Old August 1st, 2012, 21:54
dpalme dpalme is offline
Member
 
Join Date: Nov 2008
Posts: 170
Thanks: 8
Thanked 0 Times in 0 Posts
Default

Yes, but I'm not sure if it fully took or if I'm somehow missing other packages...

I know there is a way to reinstall a port and all its dependencies but I'm not sure what that is, I tried portmaster -b -w -r php but it crapped out since php has more than one port......

Last edited by SirDice; August 2nd, 2012 at 15:12. Reason: Read about formatting tags: http://forums.freebsd.org/misc.php?do=bbcode
Reply With Quote
  #8  
Old August 2nd, 2012, 00:10
dpalme dpalme is offline
Member
 
Join Date: Nov 2008
Posts: 170
Thanks: 8
Thanked 0 Times in 0 Posts
Default

Well I went ahead and rolled it back to 5.3 and we'll stay there for a while, there appears to be some issues with 5.4 and our storefront as well.

This thread can be closed.
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
Error:mfi_ioctl.h:70: error: field 'hdr' has incomplete type linuxunix FreeBSD Development 0 November 21st, 2011 03:27
[Solved] 8.1 system install hang on error: read error: 0x20 lockfile Installing & Upgrading 9 November 24th, 2010 01:59
How to fix the error in pkg_add: Syntax error, command unrecognized kenorb Howtos & FAQs (Moderated) 3 November 12th, 2010 09:04
[Solved] Error starting jail on 8.1# jail: execvp: /bin/sh: Exec format error ghostcorps General 5 September 13th, 2010 04:34
freebsd 7.0- Error Mounting /dev/acd0 on /dist: Input/output error (5) Lego Installing & Upgrading 52 November 30th, 2008 16:31


All times are GMT +1. The time now is 05:18.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2013, vBulletin Solutions, Inc.
The mark FreeBSD is a registered trademark of The FreeBSD Foundation and is used by The FreeBSD Project with the permission of The FreeBSD Foundation.
Web protection and acceleration provided by CloudFlare
0