If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Database Server Software > Informix > Informix, PHP, Apache

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 03-05-05, 20:34
kayess2004 kayess2004 is offline
Registered User
 
Join Date: Mar 2005
Location: Australia
Posts: 3
Informix, PHP, Apache

Hi all,

Could somebody please offer a suggestion how I can get informix to
be available php/apache after my linux system boots up.

Apache starts up at boot time the - INFORMIXDIR, INFORMIXSERVER,LD_LIBRARY_PATH etc.. are all loaded at boot time, however if I do a call to the db straight after a boot it don't work.

If I stop Apache then start Apache it works straight away, if I restart Apache it don't work. It wouldn't worry me if I had the system close by but it's usually on the weekend we have hours long power cuts and I'm miles away.

We don't have telnet or SSH access so I can't do it remote.

In case it matters the system is :
RedHat Linux 7.3 Kernel 2.2.14
IDS 9.4
Apache 1.3.27

Any help greatly appreciated...
Reply With Quote
  #2 (permalink)  
Old 03-09-05, 08:05
gurey gurey is offline
Registered User
 
Join Date: Aug 2003
Location: Argentina
Posts: 780
Hi,

Test you the available memory, when star-up. Test tye recourses of SO ?
I remember that IDS 9.40, need Kernel up that 2.2.14.
I install 9.40 on Fedora 2 and run fine, but Red Hat 8 not work fine. Please test this.

Gustavo.
Reply With Quote
  #3 (permalink)  
Old 03-09-05, 16:22
cpaluch cpaluch is offline
Registered User
 
Join Date: Aug 2004
Posts: 19
I would first verify that the Informix database is actually running. Also verify that the sqlhosts and /etc/services are setup correctly, so you can connect to the database.

How are you stopping/starting/restarting Apache? Is it via the rc script? If so, verify that the INFORMIXSERVER variable is set properly whether you start or restart.

lastly you can write a php script with a phpinfo() call. If you call that script with a browser it will display a whole bunch of info about php, like was it compiled with Informix support and if it sees all your Informix variables.
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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
Trackbacks are On
Pingbacks are On
Refbacks are On