LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 03-24-2013, 08:50 AM   #1
dingo-den
Member
 
Registered: Aug 2005
Location: Apr-Oct Enderby, BC Canada Oct-Mar Somewhere warm
Distribution: Debian 6 and 7
Posts: 46

Rep: Reputation: 0
PHP error after update


I updated my Centos system and it must have updated PHP because I am now getting an error when I run a script.

The command in the script is

php youtube-get-embed-code.php

It has been running OK for months but today after the update I get this error:

PHP Warning: PHP Startup: Unable to load dynamic library '/usr/lib64/php/modules/module.so' - /usr/lib64/php/modules/module.so: cannot open shared object file: No such file or directory in Unknown on line 0


I looked in /usr/lib64/php/modules/ and the file is not there. I also did a "find / -name module.so" on the system and module.so was not found ??

Can someone help a newbie with this problem.

The following is what is produced when I run php -v


PHP Warning: PHP Startup: Unable to load dynamic library '/usr/lib64/php/modules/module.so' - /usr/lib64/php/modules/module.so: cannot open shared object file: No such file or directory in Unknown on line 0
PHP 5.3.3 (cli) (built: Feb 22 2013 02:51:11)
Copyright (c) 1997-2010 The PHP Group
Zend Engine v2.3.0, Copyright (c) 1998-2010 Zend Technologies
You have new mail in /var/spool/mail/root
 
Old 03-24-2013, 12:30 PM   #2
Diantre
Member
 
Registered: Jun 2011
Distribution: Slackware
Posts: 515

Rep: Reputation: 234Reputation: 234Reputation: 234
Probably you have a line in your php.ini (or php-cli.ini) loading this non-existing module. Look for extension=module.so in you ini file and remove it (or comment it).
 
Old 03-25-2013, 05:19 AM   #3
dingo-den
Member
 
Registered: Aug 2005
Location: Apr-Oct Enderby, BC Canada Oct-Mar Somewhere warm
Distribution: Debian 6 and 7
Posts: 46

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by Diantre View Post
Probably you have a line in your php.ini (or php-cli.ini) loading this non-existing module. Look for extension=module.so in you ini file and remove it (or comment it).

Thanks for the reply but I had a look in php.ini but the text "module.so" is not in the file ??
 
Old 03-26-2013, 12:29 PM   #4
Diantre
Member
 
Registered: Jun 2011
Distribution: Slackware
Posts: 515

Rep: Reputation: 234Reputation: 234Reputation: 234
Check all configuration files loaded by PHP besides php.ini. You can see a list if loaded files by running php --ini:

Code:
Configuration File (php.ini) Path: /etc/httpd
Loaded Configuration File:         /etc/httpd/php-cli.ini
Scan for additional .ini files in: /etc/php
Additional .ini files parsed:      /etc/php/graphviz.ini,
/etc/php/xdebug.ini
 
Old 03-26-2013, 10:30 PM   #5
dingo-den
Member
 
Registered: Aug 2005
Location: Apr-Oct Enderby, BC Canada Oct-Mar Somewhere warm
Distribution: Debian 6 and 7
Posts: 46

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by Diantre View Post
Check all configuration files loaded by PHP besides php.ini. You can see a list if loaded files by running php --ini:

Code:
Configuration File (php.ini) Path: /etc/httpd
Loaded Configuration File:         /etc/httpd/php-cli.ini
Scan for additional .ini files in: /etc/php
Additional .ini files parsed:      /etc/php/graphviz.ini,
/etc/php/xdebug.ini
Thanks again for the reply. I found it in a file called mcrypt.ini which seems to be used by php-ZendFramework. I use ZendGdata to send videos to youtube api at 00:15 each day. It is a video of the photos from my web cam that are taken every minute. http://dingo-den.com

Not very interesting videos but keeps an old fart like me busy thinking up new things to do and I am trying to keep my mind active.

Thanks for the reply it fixed the problem, I am hoping that the video upload works tonight.
 
Old 04-16-2013, 03:13 AM   #6
marcel@kraan.net
LQ Newbie
 
Registered: Aug 2003
Location: holland
Distribution: RH
Posts: 4

Rep: Reputation: 0
i have fixed this to change the syntax of :
vi /etc/php.d/mcrypt.ini

and marked out the module.so line


; Enable mcrypt extension module
;extension=module.so

after this php -v is working...

php -v
PHP 5.3.3 (cli) (built: Feb 22 2013 02:51:11)
Copyright (c) 1997-2010 The PHP Group
Zend Engine v2.3.0, Copyright (c) 1998-2010 Zend Technologies
 
Old 04-16-2013, 07:07 PM   #7
Diantre
Member
 
Registered: Jun 2011
Distribution: Slackware
Posts: 515

Rep: Reputation: 234Reputation: 234Reputation: 234
Glad to hear you fixed it. You can now mark the thread as solved.
 
Old 06-03-2013, 11:36 PM   #8
neosource
LQ Newbie
 
Registered: Jun 2013
Posts: 2

Rep: Reputation: 0
hey guys, I also ran into the same error when re-installing Centos 6.4 x86_64.

here's what my system had:

Code:
# egrep -i module.so /etc/php.d/*
mcrypt.ini:extension=module.so
It seems module.so is a default/dummy setting for new modules, as I couldn't find module.so anywhere. Though I did find mcrypt.so, so I edited mcrypt.ini as below, which fixed my error.

Code:
# cat /etc/php.d/mcrypt.ini
; Enable mcrypt extension module
extension=mcrypt.so
Hope that helps.

Last edited by neosource; 06-03-2013 at 11:37 PM.
 
Old 06-04-2013, 12:19 PM   #9
Diantre
Member
 
Registered: Jun 2011
Distribution: Slackware
Posts: 515

Rep: Reputation: 234Reputation: 234Reputation: 234
Quote:
Originally Posted by neosource View Post
It seems module.so is a default/dummy setting for new modules, as I couldn't find module.so anywhere. Though I did find mcrypt.so, so I edited mcrypt.ini as below, which fixed my error.

Code:
# cat /etc/php.d/mcrypt.ini
; Enable mcrypt extension module
extension=mcrypt.so
Hope that helps.
It would certainly help others looking for answers to the same problem, so thanks for posting your solution.

And welcome to LQ by the way.
 
Old 06-07-2013, 12:15 PM   #10
neosource
LQ Newbie
 
Registered: Jun 2013
Posts: 2

Rep: Reputation: 0
No worries, thanks for the warm welcome Diantre
 
  


Reply

Tags
php


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
yum update PHP on CentOS - missing dependency php-common AndyMillne Linux - Server 7 05-21-2013 06:34 AM
10.04 update fail, get a BusyBox v1.10.2 error" update‏ vmf007 Linux - Newbie 7 06-09-2010 07:24 PM
Getting Error: Missing Dependency: php-common, when trying to install php-soap amish123 Linux - Software 3 02-18-2010 07:26 PM
cron job running PHP script to update MySQL - access denied error Beauford2008 Linux - Newbie 9 09-24-2008 07:17 PM
PHP5 Upgrade Error: Missing Dependency: php = 4.3.x is needed by package php-pear vsystems Linux - Server 1 05-02-2007 07:17 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 04:35 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration