php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #18001 Errors during install as an Apache Module
Submitted: 2002-06-26 14:50 UTC Modified: 2002-07-27 01:00 UTC
Votes:2
Avg. Score:3.5 ± 0.5
Reproduced:1 of 1 (100.0%)
Same Version:0 (0.0%)
Same OS:1 (100.0%)
From: cindy dot hall at baycare dot org Assigned:
Status: No Feedback Package: *Configuration Issues
PHP Version: 4.2.1 OS: AIX 4.3.3
Private report: No CVE-ID: None
 [2002-06-26 14:50 UTC] cindy dot hall at baycare dot org
I am trying to install PHP as an Apache module.  I am following the instructions from the PHP on-line manual, "Example 2-4.  Quick Installation Instructions for PHP 4 (Apache Module Version)".  I have Bison and Flex installed, along with the gcc compiler, which I've already tested.  The steps for the PHP install are as follows:

1.  gunzip apache_1.3.x.tar.gz
2.  tar xvf apache_1.3.x.tar
3.  gunzip php-x.x.x.tar.gz
4.  tar xvf php-x.x.x.tar
5.  cd apache_1.3.x
6.  ./configure --prefix=/www
7.  cd ../php-x.x.x
8.  ./configure --with-mysql --with-apache=../apache_1.3.x --enable-track-vars
9.  make
10. make install
11. cd ../apache_1.3.x
12. ./configure --activate-module=src/modules/php4/libphp4.a
13. make
14. make install
15. cd ../php-x.x.x
16. cp php.ini-dist /usr/local/lib/php.ini
17. Edit your httpd.conf or srm.conf file and add: 
      AddType application/x-httpd-php .php
18. Use your normal procedure for restarting the Apache server. (You must stop and restart the server, not just cause the server to reload by use a HUP or USR1 signal.)
------
I got as far as step 13.  The "make" command produces these errors:

/usr/include/sys/proc.h:203: parse error before "crid_t"  
/usr/include/sys/proc.h:212: parse error before "p_class" 
/usr/include/sys/proc.h:355: parse error before '}' token 
make: 1254-004 The error code from the last command is 1.
------
Any help would be greatly appreciated.  Thank you.

Cindy Hall 

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2002-06-26 14:55 UTC] sniper@php.net
This is propably the same issue as it's with Solaris..autoconf. Try this snapshot:

http://snaps.php.net/php4-latest.tar.gz


 [2002-06-26 15:15 UTC] cindy dot hall at baycare dot org
Thank you.  I will try this snapshot.
 [2002-07-27 01:00 UTC] php-bugs at lists dot php dot net
No feedback was provided for this bug for over a month, so it is
being suspended automatically. If you are able to provide the
information that was originally requested, please do so and change
the status of the bug back to "Open".
 [2002-08-06 02:41 UTC] tolga at kadikoy-bld dot gov dot tr
/usr/include/sys/proc.h:203: parse error before "crid_t"  
/usr/include/sys/proc.h:212: parse error before "p_class" 
/usr/include/sys/proc.h:355: parse error before '}' token 
---------------
try another gcc version.
 [2002-08-06 02:43 UTC] tolga at kadikoy-bld dot gov dot tr
IBM's current RPM package for gcc still have this problem.Try old version.
 [2004-07-13 14:15 UTC] yann dot kloniecki at sncf dot fr
I've the same problem with gcc > 2.95 (php 4.3.7) on AIX 4.3.3.
The solution is to use gcc 2.95.3.0
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Thu Oct 31 23:01:28 2024 UTC