php-install Digest 21 Aug 2001 16:20:51 -0000 Issue 424

Topics (messages 4041 through 4046):

Does anyone know why?
        4041 by: Gilbert Colon

After I add below settings in the /etc/system my PHP scripts have stoped to execute 
with Apache server.
        4042 by: Atif_Jakupovic.hc-sc.gc.ca

Asked to save PHP file on Apache instead of running file
        4043 by: Fabian Mellegard

Apache 1.3.20 PHP 4.0.6
        4044 by: Giancarlo
        4046 by: Mike Eheler

Errors compiling/linking  PHP4.0.6 on SGI --- HELP!
        4045 by: Craig De Groot

Administrivia:

To subscribe to the digest, e-mail:
        [EMAIL PROTECTED]

To unsubscribe from the digest, e-mail:
        [EMAIL PROTECTED]

To post to the list, e-mail:
        [EMAIL PROTECTED]


----------------------------------------------------------------------


I looking for some help and being that I am new to this listing, I hope
someone
can see where I may be going wrong with my installation.  I can't exec
any PHP scripts via my browser.  My Apache server knows that I have PHP
installed, as per the output of my error_log, when I start my Apache
server.

[Mon Aug 20 23:44:16 2001] [notice] Apache/1.3.20 (Unix) PHP/4.0.6
mod_perl/1.26 mod_ssl/2.8.4 OpenSSL/0.9.6b configured -- resuming normal
operations
[Mon Aug 20 23:44:16 2001] [notice] suEXEC mechanism enabled (wrapper:
/usr/local/apache/bin/suexec)

When I run my test.php script from cgi-bin directory, via my browser I
get:

[Mon Aug 20 23:44:40 2001] [error] (13)Permission denied: exec of
/usr/local/apache/cgi-bin/test.php failed

So, I fix the permissions and set to 755 on my test.php script.  Re-run
it via my browser and:

[Mon Aug 20 23:44:40 2001] [error] [client 192.168.0.1] Premature end of
script headers: /usr/local/apache/cgi-bin/test.php
[Mon Aug 20 23:45:46 2001] [error] (8)Exec format error: exec of
/usr/local/apache/cgi-bin/test.php failed
[Mon Aug 20 23:45:46 2001] [error] [client 192.168.0.1] Premature end of
script headers: /usr/local/apache/cgi-bin/test.php

In my browser I get a 505 error:

Internal Server Error
The server encountered an internal error or misconfiguration and was
unable to complete your request.
Please contact the server administrator, [EMAIL PROTECTED] and
inform them of the time the error occurred, and anything you might have
done that may have caused the error.
More information about this error may be available in the server error
log.

Apache/1.3.20 Server at joeboo.fr-tech.net Port 80

My test.php script looks like so:   <?php phpinfo() ?>  It does not
matter if I do <?php phpinfo(); ?>, both results in the same.

Here is the output of my httpd -l:

[root@joeboo bin]# ./httpd -l
Compiled-in modules:
  http_core.c
  mod_env.c
  mod_log_config.c
  mod_mime.c
  mod_negotiation.c
  mod_status.c
  mod_include.c
  mod_autoindex.c
  mod_dir.c
  mod_cgi.c
  mod_asis.c
  mod_imap.c
  mod_actions.c
  mod_userdir.c
  mod_alias.c
  mod_access.c
  mod_auth.c
  mod_setenvif.c
  mod_ssl.c
  mod_perl.c
  mod_php4.c
suexec: enabled; valid wrapper /usr/local/apache/bin/suexec

Here are the step-by-step installation procedures:

1) Build perl 5.6.1 - Installation dir = /usr/local/bin

cd /latest/perl-5.6.1
rm config.sh Policy.sh
./Configure -de
make
make test
make install

2) Install Open SSL version 0.9.6b

cd /latest/openssl-0.9.6b
./config no-threads -fPIC --prefix=/usr/local/openssl
make
make test
make install

3) Install MM memory management tool version 1.1.3

cd /latest/mm-1.1.3
./configure --disable-shared --prefix=/usr/local/mm
make
make test
make install

4) Install Postgres version 7.1.2

cd /latest/postgresql-7.1.2
./configure --prefix=/usr/local/postgres --with-perl \
--with-openssl=/usr/local/openssl \
--with-apache=/latest/apache_1.3.20
gmake
gmake install
mkdir /usr/local/postgres/datachown postgres:postgres
/usr/local/postgres/data
/usr/local/postgres/bin/initdb --pgdata /usr/local/postgres/data
/usr/local/postgres/bin/postmaster -D /usr/local/postgres/data -l >
logfile 2>&1 &

5) Install Mod SSL version 2.8.4-1.3.20

cd /latest/mod_ssl-2.8.4-1.3.20
./configure --with-apache=/latest/apache_1.3.20 \
--with-mm=/latest/mm-1.1.3

cd /latest/apache_1.3.20
SSL_BASE=/usr/local/openssl; export SSL_BASE
./configure --prefix=/usr/local/apache \
--enable-module=ssl

make
make certificate
make install

6) Build Mod Perl

cd /latest/mod_perl-1.26
/usr/bin/perl Makefile.PL APACHE_SRC=/latest/apache_1.3.20 \
EVERYTHING=1 USE_APACI=1 PREP_HTTPD=1 DO_HTTPD=1
make
make install

7) Build MySql - This is a binary installation, no make, no compile, a
tar
    ball extracteuseradd -g mysql mysql
cd /usr/local/mysql
gunzip < /path/to/mysql-VERSION-OS.tar.gz | tar xvf -

groupadd mysql
useradd -g mysql mysql
scripts/mysql_install_db
chown -R root  /usr/local/mysql
chown -R mysql /usr/local/mysql/data
chgrp -R mysql /usr/local/mysql
chown -R root /usr/local/mysql/bin
bin/safe_mysqld --user=mysql &
./bin/mysqladmin -u root password 'MY-PASSWORD'

8) Build PHP 4

cd /latest/php-4.0.6
./configure --prefix=/usr/local/php4 \
--with-xml \
--with-apache=/latest/apache_1.3.20 \
--with-config-file-path=/usr/local/lib \
--enable-shared-pdflib \
--enable-track-vars \
--with-mysql=/usr/local/mysql \
--with-openssl=/usr/local/openssl \
--with-pgsql=/usr/local/postgres
make
make install
9) Build Apache with two static complied modules and DSO support, with
SUEXEC

cd /latest/apache-1.3.20
SSL_BASE=/usr/local/openssl; export SSL_BASE
./configure --prefix=/usr/local/apache \
--libexecdir=/usr/local/apache/libexec \
--enable-suexec \
--suexec-caller=www \
--suexec-userdir=.www \
--suexec-docroot=/usr/local/apache/htdocs \
--suexec-logfile=/usr/local/apache/logs/suexec_log \
--suexec-uidmin=1000 \
--suexec-gidmin=1000 \
--suexec-safepath="/bin:/usr/bin:/usr/local/bin" \
--enable-module=ssl \
--activate-module=src/modules/perl/libperl.a \
--activate-module=src/modules/php4/libphp4.a
make
make certificate
make install










Hi,

I installed Apache v1.3.12 & PHP-4.0.5. Everything was working fine until I
added below entries to the /etc/system file.
I running Solaris 2.6.

Even my Hello World PHP script is blank now.

Please, does somebody  knows how below entries may stop execution of PHP
scripts:
How I can fix the problem.

I need below entries for the Veritas NetBackup software.

# ###################
******************************************************************************************

* This document provides starting information for sizing Interprocess
                *
* Comunication (IPC) Resources when using NetBackup on large systems    *
* with servers and high performance tape drives (DLT 7000, etc.)
                        *
******************************************************************************************
set maxusers=32
set shmsys:shminfo_shmmin=1
set shmsys:shminfo_shmmni=220
set shmsys:shminfo_shmseg=100
set shmsys:shminfo_shmmax=167772160
set semsys:seminfo_semume=64
set semsys:seminfo_semmap=64
set semsys:seminfo_semopm=32
set semsys:seminfo_semmni=1024
set semsys:seminfo_semmns=1024
set semsys:seminfo_semmnu=1024
set semsys:seminfo_semmsl=64
set msgsys:msginfo_msgmap=512
set msgsys:msginfo_msgmax=8192
set msgsys:msginfo_msgmnb=65536
set msgsys:msginfo_msgmni=256
set msgsys:msginfo_msgssz=8
set msgsys:msginfo_msgtql=512
set msgsys:msginfo_msgseg=8192

#########################################

Thanks,

Atif






Hi,
I'm trying to install PHP 4.0.6 as a DSO on apache 1.3.17
But when trying to omen a php-file the browser asks me to save the file.

It seems like the Apache server does not know that it is configured with
PHP
Has anyone seen this problem?
Best regards,
/Fabian Mellegard


I have compiled apashe with the -enable-module=so
And installed the server.

I have configured PHP with the following arguments:
./configure -prefix=/opt/apache/ -with-mysql=/opt/mysql/
--with-apxs=/opt/apache/bin/apxs

Compiled and installed the module with no errors.

Then I have added the PHP4 support in the httpd.conf file by removing
the comment on the following two lines:

AddType application/x-httpd-php .php .phtml
AddType application/x-httpd-php-source .phps

And started and stopped the Apache server.

----
I have also tried to configure PHP with:
./configure -prefix=/opt/apache/ -with-mysql=/opt/mysql/
--with-apxs=/opt/apache/bin/apxs -with-gnu-ld -enable-gcclib

And tried
./configure -prefix=/opt/apache/ -with-mysql=/opt/mysql/
--with-apxs=/opt/apache/bin/apxs
-with-config-file-path=/opt/apache/conf/

with the same result

---
when a do ./httpd -l I get:

  http_core.c
  mod_env.c
  mod_log_config.c
  mod_mime.c
  mod_negotiation.c
  mod_status.c
  mod_include.c
  mod_autoindex.c
  mod_dir.c
  mod_cgi.c
  mod_asis.c
  mod_imap.c
  mod_actions.c
  mod_userdir.c
  mod_alias.c
  mod_access.c
  mod_auth.c
  mod_so.c
  mod_setenvif.c







I have problems trying to start APACHE and PHP. I built APACHE in DSO mode
and when I configure httpd.cont to addmodule php4 Apache creates a core
dump. It occurs that if I run httpd -t I find the core dump too.

Before I had problem as libphp.so sould find SSL_CTX_set_tmp_rsa_callback so
I have been obliged to install and configure openssl and modssl.
APACHE COnfiguration:
./configure  --with-apxs=/usr/sbin/apxs \
--with-openssl  \
--with-mysql --with-gd --enable-track-vars --enable-force-cgi-redirect \
--enable-discard-path --enable-safe-mode --enable-calendar --with-gdbm \
--enable-ftp --with-regex=php --with-gnu-ld --with-oci8 \
--with-imap --with-kerberos

PHP
./configure --enable-rule=SHARED_CORE --enable-module=most --enable-shared=m
ax \
--sbindir=/usr/sbin  --libexecdir=/usr/lib/apache  --mandir=/home/httpd/html
/manual \
 --sysconfdir=/etc/httpd/conf  --iconsdir=/home/httpd/icons  --htdocsdir=/ho
me/httpd/html \
 --cgidir=/home/httpd/cgi-bin  --logfiledir=/var/log/httpd --with-openssl

If I esclude AddModule libphp4 Apache starts regularly






Uhm maybe I think you have those backwards, as the first appears to be 
an apache config line, and the 2nd appears to be an apache config line, 
not vice versa.

Perhaps a problem could be with compiling a module with force cgi redirect?

Mike

Giancarlo wrote:

>I have problems trying to start APACHE and PHP. I built APACHE in DSO mode
>and when I configure httpd.cont to addmodule php4 Apache creates a core
>dump. It occurs that if I run httpd -t I find the core dump too.
>
>Before I had problem as libphp.so sould find SSL_CTX_set_tmp_rsa_callback so
>I have been obliged to install and configure openssl and modssl.
>APACHE COnfiguration:
>./configure  --with-apxs=/usr/sbin/apxs \
>--with-openssl  \
>--with-mysql --with-gd --enable-track-vars --enable-force-cgi-redirect \
>--enable-discard-path --enable-safe-mode --enable-calendar --with-gdbm \
>--enable-ftp --with-regex=php --with-gnu-ld --with-oci8 \
>--with-imap --with-kerberos
>
>PHP
>./configure --enable-rule=SHARED_CORE --enable-module=most --enable-shared=m
>ax \
>--sbindir=/usr/sbin  --libexecdir=/usr/lib/apache  --mandir=/home/httpd/html
>/manual \
> --sysconfdir=/etc/httpd/conf  --iconsdir=/home/httpd/icons  --htdocsdir=/ho
>me/httpd/html \
> --cgidir=/home/httpd/cgi-bin  --logfiledir=/var/log/httpd --with-openssl
>
>If I esclude AddModule libphp4 Apache starts regularly
>
>
>






I finally go through all of the OCI8 setup problems with PHP and now 
this.  Here is what I have:

- SGI Origin 2000
- IRIX (newest version, I think)
- SGI Prodev compiler (newest version, I think)
- Oracle 8.1.7 (64bit)


I am compiling PHP as all 64bit, since oracle only supports 64bit libraries.

I am using this as a configure line:
configure --disable-xml --disable-short-tags --without-mysql --with-oci8

Here is a snippet of the linking error(sorry about the cut and paste 
errors with extra word wrap).
---------------------------------------
Making all in regex
Making all in .
         /bin/sh /usr/people/lamdev/PHP/php-4.0.6/libtool --silent 
--mode=link cc
   -I. -I/usr/people/lamdev/PHP/php-4.0.6/ 
-I/usr/people/lamdev/PHP/php-4.0.6/mai
n -I/usr/people/lamdev/PHP/php-4.0.6 
-I/usr/people/lamdev/PHP/php-4.0.6/Zend -I/
usr/people/oracle/product/8.1.7.client64/rdbms/public 
-I/usr/people/oracle/produ
ct/8.1.7.client64/rdbms/demo -I/usr/people/lamdev/PHP/php-4.0.6/TSRM 
-DSUPPORT_
UTF8 -g   -o php -export-dynamic         stub.lo libphp4.la
ld64: WARNING 84 : /usr/lib64/mips4/libexc.so is not used for resolving 
any symb
ol.
ld64: WARNING 84 : /usr/lib64/libgen.so is not used for resolving any 
symbol.
ld64: WARNING 84 : /usr/lib64/libsocket.so is not used for resolving any 
symbol.
ld64: ERROR   33 : Unresolved text symbol "_array_init" -- 1st 
referenced by .li
bs/libphp4.a(main.o).
         Use linker option -v to see when and which objects, archives 
and dsos ar
e loaded.
ld64: ERROR   33 : Unresolved text symbol "zend_ptr_stack_push" -- 1st 
reference
d by .libs/libphp4.a(zend_execute_API.o).
         Use linker option -v to see when and which objects, archives 
and dsos ar
e loaded.
ld64: ERROR   33 : Unresolved text symbol "var_reset" -- 1st referenced 
by .libs
/libphp4.a(zend_operators.o).
         Use linker option -v to see when and which objects, archives 
and dsos ar
e loaded.
ld64: ERROR   33 : Unresolved text symbol "add_get_index_string" -- 1st 
referenc
ed by .libs/libphp4.a(zend_builtin_functions.o).
         Use linker option -v to see when and which objects, archives 
and dsos ar
e loaded.
ld64: ERROR   33 : Unresolved text symbol "add_get_index_long" -- 1st 
referenced
  by .libs/libphp4.a(zend_builtin_functions.o).
         Use linker option -v to see when and which objects, archives 
and dsos ar
e loaded.
ld64: ERROR   33 : Unresolved text symbol "add_next_index_string" -- 1st 
referen
ced by .libs/libphp4.a(zend_builtin_functions.o).
         Use linker option -v to see when and which objects, archives 
and dsos ar
e loaded.
ld64: ERROR   33 : Unresolved text symbol "zend_ptr_stack_pop" -- 1st 
referenced
  by .libs/libphp4.a(zend_builtin_functions.o).
         Use linker option -v to see when and which objects, archives 
and dsos ar
e loaded.
ld64: ERROR   33 : Unresolved text symbol "add_next_index_stringl" -- 
1st refere
nced by .libs/libphp4.a(zend_builtin_functions.o).
         Use linker option -v to see when and which objects, archives 
and dsos ar
e loaded.
ld64: ERROR   33 : Unresolved text symbol "add_index_stringl" -- 1st 
referenced
by .libs/libphp4.a(string.o).
         Use linker option -v to see when and which objects, archives 
and dsos ar
e loaded.
ld64: ERROR   33 : Unresolved text symbol "add_assoc_string_ex" -- 1st 
reference
d by .libs/libphp4.a(string.o).
         Use linker option -v to see when and which objects, archives 
and dsos ar
e loaded.
ld64: ERROR   33 : Unresolved text symbol "add_assoc_stringl_ex" -- 1st 
referenc
ed by .libs/libphp4.a(string.o).
         Use linker option -v to see when and which objects, archives 
and dsos ar
e loaded.
ld64: ERROR   33 : Unresolved text symbol "add_assoc_zval_ex" -- 1st 
referenced
by .libs/libphp4.a(string.o).
         Use linker option -v to see when and which objects, archives 
and dsos ar
e loaded.
ld64: ERROR   33 : Unresolved text symbol "add_index_zval" -- 1st 
referenced by
.libs/libphp4.a(string.o).
         Use linker option -v to see when and which objects, archives 
and dsos ar
e loaded.
ld64: ERROR   33 : Unresolved text symbol "add_index_long" -- 1st 
referenced by
.libs/libphp4.a(string.o).
         Use linker option -v to see when and which objects, archives 
and dsos ar
e loaded.
ld64: ERROR   33 : Unresolved text symbol "add_assoc_long_ex" -- 1st 
referenced
by .libs/libphp4.a(string.o).
         Use linker option -v to see when and which objects, archives 
and dsos ar
e loaded.
ld64: ERROR   33 : Unresolved text symbol "_object_init_ex" -- 1st 
referenced by
  .libs/libphp4.a(dir.o).
         Use linker option -v to see when and which objects, archives 
and dsos ar
e loaded.
ld64: ERROR   33 : Unresolved text symbol "add_property_stringl_ex" -- 
1st refer
enced by .libs/libphp4.a(dir.o).
         Use linker option -v to see when and which objects, archives 
and dsos ar
e loaded.
ld64: ERROR   33 : Unresolved text symbol "add_property_resource_ex" -- 
1st refe
renced by .libs/libphp4.a(dir.o).
         Use linker option -v to see when and which objects, archives 
and dsos ar
e loaded.
ld64: ERROR   33 : Unresolved text symbol "add_next_index_long" -- 1st 
reference
d by .libs/libphp4.a(array.o).
         Use linker option -v to see when and which objects, archives 
and dsos ar
e loaded.
ld64: ERROR   33 : Unresolved text symbol "add_next_index_zval" -- 1st 
reference
d by .libs/libphp4.a(array.o).
         Use linker option -v to see when and which objects, archives 
and dsos ar
e loaded.
ld64: ERROR   33 : Unresolved text symbol "add_assoc_bool_ex" -- 1st 
referenced
by .libs/libphp4.a(file.o).
         Use linker option -v to see when and which objects, archives 
and dsos ar
e loaded.
ld64: ERROR   33 : Unresolved text symbol "add_assoc_double_ex" -- 1st 
reference
d by .libs/libphp4.a(pack.o).
         Use linker option -v to see when and which objects, archives 
and dsos ar
e loaded.
ld64: ERROR   33 : Unresolved text symbol "_object_init" -- 1st 
referenced by .l
ibs/libphp4.a(browscap.o).
         Use linker option -v to see when and which objects, archives 
and dsos ar
e loaded.
ld64: ERROR   33 : Unresolved text symbol "add_index_bool" -- 1st 
referenced by
.libs/libphp4.a(reg.o).
         Use linker option -v to see when and which objects, archives 
and dsos ar
e loaded.
ld64: ERROR   33 : Unresolved text symbol "add_index_string" -- 1st 
referenced b
y .libs/libphp4.a(image.o).
         Use linker option -v to see when and which objects, archives 
and dsos ar
e loaded.
ld64: ERROR   33 : Unresolved text symbol "add_next_index_null" -- 1st 
reference
d by .libs/libphp4.a(scanf.o).
         Use linker option -v to see when and which objects, archives 
and dsos ar
e loaded.
ld64: ERROR   33 : Unresolved text symbol "add_index_double" -- 1st 
referenced b
y .libs/libphp4.a(scanf.o).
         Use linker option -v to see when and which objects, archives 
and dsos ar
e loaded.
ld64: INFO    152: Output file removed because of error.
*** Error code 2 (bu21)
*** Error code 1 (bu21)



Reply via email to