Linux Server Shared Extensions

Whether you are using Linux on the desktop or as a server, it's still good that you're using Linux. Linux related questions go here.

Moderator: General Moderators

Post Reply
eliteghost
Forum Newbie
Posts: 6
Joined: Sun Mar 22, 2009 7:53 pm

Linux Server Shared Extensions

Post by eliteghost »

Im trying to upload my own extensions on to my IXwebhosting server. Its a shared server, so i cannot access the php extensions folder. I can access my php.ini.

Linux question : Do I need to upload a Filetype.so or can I upload a filetype.dll ? Will the linux server be able to use the .dll?

Other, Where do i put this extension if i cannot put it in the extension folder, and how do i access it, declare it, and " dl()" it?
User avatar
Chris Corbyn
Breakbeat Nuttzer
Posts: 13098
Joined: Wed Mar 24, 2004 7:57 am
Location: Melbourne, Australia

Re: Linux Server Shared Extensions

Post by Chris Corbyn »

It needs to be the .so for linux servers. However, I'd be surprised if a shared server allow you to load in your own extensions like that (it would open up security holes).
User avatar
php_east
Forum Contributor
Posts: 453
Joined: Sun Feb 22, 2009 1:31 pm
Location: Far Far East.

Re: Linux Server Shared Extensions

Post by php_east »

many hosts allow local implementation of .so ( or it's equivalent .dll if it is windows ), and sometimes there is a need for this. zend optimiser is one good example, where if your host does not have it ( as it is uncommon requirement ), you may have to perform a local install in order to use the feature.

however, hosts usually prefer to install it for you, as they would be able to make it global for the entire shared server. your local implementation of an .so will only be available to your account.
eliteghost
Forum Newbie
Posts: 6
Joined: Sun Mar 22, 2009 7:53 pm

Re: Linux Server Shared Extensions

Post by eliteghost »

My host does have a "zend optimiser". unfortunatly, i do not know how to use it. I have contacted them a while ago, and they said they will not install a extension for one user's request. Im going to try again, it cant hurt. Im also going to look up this Zend manager and see what i can dig up about installing dlls

Are you saying this "zend_extension_manager.optimizer"(my php.ini) allows local implementation of .so AND .dll? If so, where would i place my extension file, how would i declare it, and then use it?

Thanks
User avatar
php_east
Forum Contributor
Posts: 453
Joined: Sun Feb 22, 2009 1:31 pm
Location: Far Far East.

Re: Linux Server Shared Extensions

Post by php_east »

eliteghost wrote:Are you saying this "zend_extension_manager.optimizer"(my php.ini) allows local implementation of .so AND .dll? If so, where would i place my extension file, how would i declare it, and then use it?
Thanks
no, you don't need the dll on a nix. what i am saying is that the .so can be installed on your shared server as a local implenentation to that server, under your account only. host have this attitude ( silly i think ) of ' we are not goint to instal it just for you ', not realising that such a thing is a feature they can actualy advertise as being available and thus more attractive to others who may be looking specifically for such hosts. my client who invested heavily on the site had no hesitation to switch hosts just because of this, so i had to really go find a solution and did find a nice one. since i could provide an alternative solution, both parties, host and client were rather happy with it and life went on in a normal sane manner.

i cannot remember details of the implemetation off the top of my head, i will go see if i can find the link on it again. was perhaps two years ago i did that, for an e-commerce site, so i can confirm it being possible and performs well.
User avatar
php_east
Forum Contributor
Posts: 453
Joined: Sun Feb 22, 2009 1:31 pm
Location: Far Far East.

Re: Linux Server Shared Extensions

Post by php_east »

if my memory serves me well, the host where i installed the local version of zend optimiser is godaddy. when i checked today, they have it now as permanent for all users. :)

anyways, here is something i found googling, it is essentially the same simple technique.
this is the principle of installing your own so extensions.
http://www.apluskb.com/scripts/How_can_ ... r3312.html

ok, ciao.
eliteghost
Forum Newbie
Posts: 6
Joined: Sun Mar 22, 2009 7:53 pm

Re: Linux Server Shared Extensions

Post by eliteghost »

sorry, ok lol time to sound like a complete jackass, the file type i have is a dll.
I have the sources incase i desire to make a .so,
The Zend optimizer for my hosting service is installed permanent by them.
Chris Corbyn wrote:It needs to be the .so for linux servers. However, I'd be surprised if a shared server allow you to load in your own extensions like that (it would open up security holes).
going back go chris, i think this is my problem, i most likely have to build the .so because i cannot use my dll.

Your link shows me how to install my own zend, and how to use the php.ini from that installation. it is exactly the same as what i am allowed to change, except i cannot access my extension folder.

I have tried changing the PHP_EXT_DIR using my php.ini, and directing it to where i uploaded my .dll.
and i declared my extension=repasm.dll under the [zend] extensions section. I have tried all sorts of syntax and directories.

you wouldnt know how to build a .so file using visual studio would ya?
eliteghost
Forum Newbie
Posts: 6
Joined: Sun Mar 22, 2009 7:53 pm

Re: Linux Server Shared Extensions

Post by eliteghost »

okay, i have gotten to the point where i am going to install linux on a virtual PC, download the source files to build the file on linux as a .so

wish me luck, if this does not workout then i fail. i will have to do other things with my website.

reccommend any linux OS?
Post Reply