LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 02-02-2009, 04:21 PM   #1
utw-mephisto
Member
 
Registered: Apr 2005
Posts: 93

Rep: Reputation: 16
Question Confused about PHP Extension directory


I had a fresh install with Apache and PHP and was asked to install a certain program which required IONCUBE and FFMPEG.

I started with IONCUBE and had a hard time .. Basically I was supposed to put the ioncube_loader_lin_5.2.so into the extension folder.

There was no extension folder at all. So I added the folder where the iocube loader was located in the php.ini, in this case
Code:
extension_dir= "/usr/local/ioncube"
That did not work at all .. After over an hour I have up and went to install FFMPEG .. once installed, it actually did create an extension directory called
Code:
/usr/local/lib/php/extensions/no-debug-non-zts-20060613/
I then moved the ioncube into that particular folder and changed the php.ini to reflect that .. to
Code:
extension_dir="/usr/local/lib/php/extensions/no-debug-non-zts-20060613"
zend_extension = "/usr/local/lib/php/extensions/no-debug-non-zts-20060613/ioncube_loader_lin_5.2.so"
Now I am wondering, why was the "custom" extension dir ignored, and how can I make sure that the extension directory exists in a fresh installation ?

I can see for example the following number on the phpinfo page

Quote:
PHP Extension 20060613
Zend Extension 220060519
So I tried to check the phpinfo page on another server - without an extension directory - created the folder including the 'no-debug-non-zts-' part with the numbers found and it worked.

But it just confuses me...

Why the 'no-debug-non-zts-' part ?
Why are customer folder simply ignored ?

And how to make sure the folder is created upon php compilation ?

Could someone shed some light on this one for me please ? I would really appreciate it ...
 
Old 02-10-2009, 05:10 PM   #2
utw-mephisto
Member
 
Registered: Apr 2005
Posts: 93

Original Poster
Rep: Reputation: 16
Nobody
 
Old 02-10-2009, 05:23 PM   #3
r3sistance
Senior Member
 
Registered: Mar 2004
Location: UK
Distribution: CentOS 6/7
Posts: 1,375

Rep: Reputation: 217Reputation: 217Reputation: 217
I never used any of this and don't really get it, only thing I could even suggest to ask, is did you restart apache at any point?
 
Old 02-11-2009, 03:01 AM   #4
utw-mephisto
Member
 
Registered: Apr 2005
Posts: 93

Original Poster
Rep: Reputation: 16
Quote:
Originally Posted by r3sistance View Post
I never used any of this and don't really get it, only thing I could even suggest to ask, is did you restart apache at any point?
Restarting Apache hardly explains the folder structure does it
 
Old 02-11-2009, 04:26 AM   #5
Wim Sturkenboom
Senior Member
 
Registered: Jan 2005
Location: Roodepoort, South Africa
Distribution: Ubuntu 12.04, Antix19.3
Posts: 3,794

Rep: Reputation: 282Reputation: 282Reputation: 282
Possible cause
Code:
extension_dir= "/usr/local/ioncube/"
Maybe it's the missing final slash that made it not work.
 
  


Reply

Tags
extension, php



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
File Extension in Linux : Still Confused Mustafa^Qasim Linux - Newbie 9 05-19-2008 07:16 PM
frontpage extension sub directory problem abasko Linux - General 0 07-16-2006 03:39 PM
PHP Extension for session_id tunasashimi Linux - Software 11 10-04-2005 03:46 AM
Mysql Php Extension SilentK Linux - Newbie 11 06-11-2004 08:47 AM
Build PHP extension. ugenn Linux - Software 1 11-05-2003 05:34 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 12:33 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