LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 12-22-2010, 03:33 AM   #1
cbtshare
Member
 
Registered: Jul 2009
Posts: 610

Rep: Reputation: 42
PHP Warning


I am installing a php script on linux.I see no error in apache logs, but in the script itself error logs I see :

22-Dec-2010 02:21:15] PHP Warning: PHP Startup: Unable to load dynamic library '/usr/local/lib/php/extensions/no-debug-non-zts-20090626/mcrypt.so' - /usr/local/lib/php/extensions/no-debug-non-zts-20090626/mcrypt.so: cannot open shared object file: No such file or directory in Unknown on line 0

I tried recompiling apache with php
No luck,

I edited php.ini extensions, no luck


extension=php_mcrypt.so
extension=mcrypt.so

;extension=php_bz2.dll
;extension=php_cpdf.dll
;extension=php_crack.dll
;extension=php_curl.dll
;extension=php_db.dll
;extension=php_dba.dll
;extension=php_dbase.dll
;extension=php_dbx.dll
;extension=php_domxml.dll
;extension=php_exif.dll
;extension=php_fdf.dll
;extension=php_filepro.dll
;extension=php_gd2.dll
;extension=php_gettext.dll
;extension=php_hyperwave.dll
;extension=php_iconv.dll
;extension=php_ifx.dll
;extension=php_iisfunc.dll
;extension=php_imap.dll
;extension=php_interbase.dll
;extension=php_java.dll
;extension=php_ldap.dll
;extension=php_mbstring.dll
;extension=php_mcrypt.so
;extension=php_mhash.dll
;extension=php_mime_magic.dll
;extension=php_ming.dll
;extension=php_mssql.dll
;extension=php_msql.dll
;extension=php_oci8.dll
;extension=php_openssl.dll
;extension=php_oracle.dll
;extension=php_pdf.dll


I cant seem to get rid of the error, any help please.
 
Old 12-22-2010, 03:56 AM   #2
Tinkster
Moderator
 
Registered: Apr 2002
Location: in a fallen world
Distribution: slackware by choice, others too :} ... android.
Posts: 23,066
Blog Entries: 11

Rep: Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910
The first question you'll have to ask yourself: why did you compile
PHP from source rather than using your distros packages?


Cheers,
Tink
 
Old 12-22-2010, 04:00 AM   #3
cbtshare
Member
 
Registered: Jul 2009
Posts: 610

Original Poster
Rep: Reputation: 42
I did not do such a thing sir, this server was like that, it came with PHP.I am just giving you bits and pieces of info, the modules installed are

[PHP Modules]
bcmath
calendar
Core
ctype
date
dom
ereg
filter
ftp
hash
iconv
imap
json
libxml
mysql
pcre
Phar
posix
Reflection
session
SimpleXML
sockets
SPL
SQLite
sqlite3
standard
tokenizer
xml
xmlreader
xmlwriter
zlib
 
Old 12-22-2010, 04:05 AM   #4
cbtshare
Member
 
Registered: Jul 2009
Posts: 610

Original Poster
Rep: Reputation: 42
For some reason the script works on a similar server and the modules installed are :

[PHP Modules]
apc
bcmath
calendar
Core
ctype
curl
date
dom
ereg
filter
ftp
hash
iconv
imap
ionCube Loader
json
libxml
mysql
pcre
Phar
posix
Reflection
session
SimpleXML
sockets
SPL
SQLite
sqlite3
standard
tokenizer
xml
xmlreader
xmlwriter
zlib

Similar all that is different from the server that is not working is ionCube Loader and apc
 
Old 12-22-2010, 04:06 AM   #5
cbtshare
Member
 
Registered: Jul 2009
Posts: 610

Original Poster
Rep: Reputation: 42
Quote:
Originally Posted by Tinkster View Post
The first question you'll have to ask yourself: why did you compile
PHP from source rather than using your distros packages?


Cheers,
Tink
Ohh sorry I didnt remeber I said I did that, what I meant was I used cpanel to do it, which is basically a one line command .
 
  


Reply


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
[SOLVED] Weird PHP warning while session_start() olegk25 Linux - Newbie 2 08-02-2010 04:33 AM
PHP Warning after upgrading from PHP 5.2.1 to 5.3.1 on CentOS rossie Linux - Newbie 4 12-20-2009 03:18 PM
PHP file inclusion warning chus_84 Programming 5 07-18-2008 09:44 AM
Php Warning caused X lockup? kmoffat Debian 4 02-14-2007 09:51 AM
php session - works with warning !!! prabhatsoni Linux - Software 2 06-03-2005 12:45 AM


All times are GMT -5. The time now is 09:51 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration