Dragoa Posted August 12, 2008 Share Posted August 12, 2008 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. Quote Link to comment Share on other sites More sharing options...
trq Posted August 12, 2008 Share Posted August 12, 2008 Can I ask why your attempting to start apache by a user other than root? Apache switches to its own user once its up anyway. Quote Link to comment Share on other sites More sharing options...
Dragoa Posted August 12, 2008 Author Share Posted August 12, 2008 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 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.