Jump to content

Recommended Posts

I'm trying to get a simple script set-up so that I can start, and eventually stop, an apache server from running on the HP-Itanium box it's running on. To do this, I've set-up a near trivial script which contains the basic command:

 

"start_apache":

/opt/hpws/apache/apachectl start

 

And given it an owner as root, and a sticky bit. I can execute the script just fine and the server comes up as any user I choose, but this is where I run into a problem. For some reason whenever I run the script as someone non-root it doesn't include the oci8 module, and some investigation into the error log file gives me this:

 

PHP Warning: PHP Startup: Unable to load dynamic libarary '/opt/hpws/apache/php/lib/extensions/oci8.sl' - Unable to find library 'libclntsh.so.9.0'. in Unknown on line 0.

 

I get this even if I'm running the start_apache script as the owner of the file. I've checked the pathway permissions to both of the files(the oci8.sl file, and the libclntsh.so.9.0 link, which points to the correct libclntsh file.) and everything should be in order. Anyone have any ideas?

 

Thanks.

Link to comment
https://forums.phpfreaks.com/topic/119341-sticky-bit-issues/
Share on other sites

I've got it set-up to run as a different user, but I honestly have no idea why they want this.

 

My boss is worried if the server goes down he'll lose the application for a while, and he just wants to set-up a simple little job that makes sure everything is working so he doesn't run into problems of trying to use something that isn't there. Or if we don't have root access on a box, and it goes down, our Unix Admin leaves about 3 hours before everyone so we'd be kind of in trouble if that happened since the only other person who might know is a major stickler for convention and it'd take us about a week and a few meetings to get root access on the box for a 2 second fix.

 

All I know is I'm a lowly co-op who was given a task, and by gods am I trying to finish it :)

 

Link to comment
https://forums.phpfreaks.com/topic/119341-sticky-bit-issues/#findComment-614944
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.