Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Westi on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Problems with apache 1.3.33 and php 4.4.0 upgrade

Status
Not open for further replies.

cdlvj

MIS
Nov 18, 2003
678
US
Am trying to upgrade from 1.3.19 apache and php 4.0.4.

One of my home pages just quits half way. I did the telnet to port 80 and the connection closes before the page is done.

Is there some sort of connection time out in the php.ini file that is drastically different.

This page does a Informix connect, but other pages work fine. I do have one that has 100's of rows, and only 4 show up.

Thanks in Advance.
 
Looks like php bug, as the child program has a segment violation.

[Wed Aug 17 21:46:32 2005] [notice] caught SIGTERM, shutting down
[Thu Aug 18 09:32:20 2005] [notice] Apache/1.3.33 (Unix) PHP/4.4.1-dev configured -- resuming normal operations
[Thu Aug 18 09:32:20 2005] [notice] Accept mutex: fcntl (Default: fcntl)
[Thu Aug 18 09:34:30 2005] [notice] child pid 26519 exit signal Segmentation fault (11)
[Thu Aug 18 09:43:04 2005] [notice] caught SIGTERM, shutting down
#

 
Insufficient data for a meaningful answer.

[ul][li]What platform?[/li][li]You've said you're upgrading "from 1.3.19 apache and php 4.0.4". To what? Between Apache 1.3.x, Apache 2.0.x, PHP 4.4.x and PHP 5.0.x, there are four possible destination combinations.[/li][li]How did you originally install Apache and PHP? From source tarball? From binary package or installer?[/li][li]How did you perform the upgrade? From source tarballs? From binary packages or installers?[/li][li]What steps did you perform along your upgrade path? Did you follow instructions from somewhere or wing it?[/li][li]How are you running PHP? As an Apache module? As a stand-alone CGI?[/li][/ul]



Want the best answers? Ask the best questions!

TANSTAAFL!!
 
This is SCO 5.05.
Currently at apache 1.3.19 and php 4.0.4.
Compiled and linked static version apache 1.3.33 and php 4.4.0
Used exact configuation and procedures from the old install.

httpd created from the activate module parm.

Step 1
./configure --prefix=/usr/local/apache133
make
make install

step 2
./configure --with-informix \
--without-mysql \
--with-apache=../apache_1.3.33 \
--enable-shared \
--prefix=/usr/local/php \
--with-config-file-path=/etc \
--enable-track-vars
make
make install

Step 3
./configure --prefix=/usr/local/apache133 --activate-module=src/modules/php4/libphp4.a
make
make install


 
Step 1 configures, compiles and installs Apache.
Step 2 configures, compiles and installs PHP.

I'm unclear on step 3. Is this to install the PHP module into Apache?

And just to ask the dumb question, you've restarted Apache since all this, right?


Want the best answers? Ask the best questions!

TANSTAAFL!!
 
Yep step 3 re-makes a httpd with the mod_php thing and static link.

Now I did have a compile warning, which I am looking at now.

The program exec.c is doing this
Code:
child = (pid_t)rsrc->ptr;

where child is a short integer, and ptr is a pointer. This is bad bad code, as the right assignment should also be a integer. Now why they are storing numbers as pointers is just not logical.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top