No, the extension_dir should be the place where the rest of the php extensions are (gd.so, mysqli.so, etc.). If you need to, you can create a link to the SourceGuardian extension by using the "ln" command, e.g.:
ln -s /path/to/source/file /path/to/link
So for example, since you gave me your SourceGuardian install dir, you could do something like:
ln -s /hermes/web09/b1501/pow.wolfetj/htdocs/ixed/souceguardian.so /usr/lib/php/modules/sourceguardian.so
For example, on my dev box I downloaded ixed4.lin.x86-32.tar.gz:
[color=green][color=orange][root@bpat.dev ~]#[/color] cd /usr/local/src
[color=orange][root@bpat.dev src]#[/color] wget http://sourceguardian.com/ixeds/ixed4.lin.x86-32.tar.gz
[color=darkblue]--23:44:05-- http://sourceguardian.com/ixeds/ixed4.lin.x86-32.tar.gz
Resolving sourceguardian.com... 75.126.220.225
Connecting to sourceguardian.com|75.126.220.225|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 537811 (525K) [application/octet-stream]
Saving to: `ixed4.lin.x86-32.tar.gz'
100%[================================================================>] 537,811 535K/s in 1.0s
23:44:06 (535 KB/s) - `ixed4.lin.x86-32.tar.gz' saved [537811/537811][/color]
[color=orange][root@bpat.dev src]#[/color] mkdir ixed
[color=orange][root@bpat.dev src]#[/color] tar -C ./ixed -xzf ixed4.lin.x86-32.tar.gz
[color=orange][root@bpat.dev src]#[/color] grep "extension_dir" /etc/php.ini
[color=darkblue]extension_dir = "/usr/lib/php/modules"
; extension_dir directive above.[/color]
[color=orange][root@bpat.dev src]#[/color] cp -R ./ixed /usr/lib/php/modules[/color]
At this point, I then edited php.ini to add the extension that I needed. So I needed to figure out whether I had Thread Safety on or off..
[color=green][color=orange][root@bpat.dev src]#[/color] php -i | grep "Thread Safety"
[color=darkblue]Thread Safety => disabled[/color]
[color=orange][root@bpat.dev src]#[/color] [/color]
So now I need to know what version:
[color=green][color=orange][root@bpat.dev src]#[/color] php -v
[color=darkblue]PHP 5.2.6 (cli) (built: May 2 2008 16:06:40)
Copyright (c) 1997-2008 The PHP Group
Zend Engine v2.2.0, Copyright (c) 1998-2008 Zend Technologies
with Zend Optimizer v3.3.3, Copyright (c) 1998-2007, by Zend Technologies[/color]
[color=orange][root@bpat.dev src]#[/color] [/color]
So now I know I need the ixed.5.2.x.lin extension. If I had thread safety enabled, I would use ixed.5.2.xts.lin. So I see what my options are for the extensions:
[color=green][color=orange][root@bpat.dev src]#[/color] ls /usr/lib/php/modules/ixed
[color=darkblue]ixed.4.3.lin ixed.4.4ts.lin ixed.5.0.1.lin ixed.5.0.2ts.lin ixed.5.1.lin ixed.5.2ts.lin
ixed.4.3ts.lin ixed.5.0.0.lin ixed.5.0.1ts.lin ixed.5.0.lin ixed.5.1ts.lin
ixed.4.4.lin ixed.5.0.0ts.lin ixed.5.0.2.lin ixed.5.0ts.lin ixed.5.2.lin[/color]
[color=orange][root@bpat.dev src]#[/color] [/color]
So I notice that for php 5.2, there are only two extensions: ixed.5.2.lin and ixed5.2ts.lin. So I know since I'm not using thread safety, I can load ixed.5.2.lin.
My php installation has a directory of files that deal with each extension. So in order to enable a new one, all I have to do is create a new file and add the proper extension information to it. I know that my extension config files are stored in /etc/php.d so I just do the following:
[color=green][color=orange][root@bpat.dev src]#[/color] touch /etc/php.d/sourceguardian.ini
[color=orange][root@bpat.dev src]#[/color] echo "; SourceGuardian Loaders" >> /etc/php.d/sourceguardian.ini
[color=orange][root@bpat.dev src]#[/color] echo "extension=ixed/ixed.5.2.lin" >> /etc/php.d/sourceguardian.ini
[color=orange][root@bpat.dev src]#[/color] [/color]
[indent]Note: To find out if your server has this you can do the following:
[color=green][color=orange][root@bpat.dev src]#[/color] grep -i "Note: packaged extensions" /etc/php.ini[/color]
If you get something that looks like:
; Note: packaged extension modules are now loaded via the .ini files
then you know you will have "gd.ini" and other such files for each extension that is enabled. Otherwise, you will have to add the "extension=ixed.5.2.lin" line to php.ini manually through ViM, Nano, xemacs, etc.[/indent]
Then I restarted my webserver:
[color=green][color=orange][root@bpat.dev src]#[/color] service httpd restart
[color=darkblue]Stopping httpd: [[/color] OK [color=darkblue]]
Starting httpd: [[/color] OK [color=darkblue]][/color]
[color=orange][root@bpat.dev src]#[/color] [/color]
Then a quick check to see it loaded:
[color=green][color=orange][root@bpat.dev src]#[/color] php -i | grep "SourceGuardian"
[color=darkblue]SourceGuardian
SourceGuardian Loader Support => enabled
SourceGuardian Loader Version => 7.0.1
SourceGuardian Loader Build Number => 0x0000000C[/color]
[color=orange][root@bpat.dev src]#[/color] [/color]
Hope that helps.