php-install Digest 26 Jul 2001 18:23:28 -0000 Issue 382
Topics (messages 3711 through 3715):
debian php problems
3711 by: Lars Lindgren A (ERA)
3712 by: chris
3713 by: Cary Moretti
PHP, apache on solaris
3714 by: Aaron V
./configure problem with 4.0.6
3715 by: Alex Black
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]
----------------------------------------------------------------------
Hello!
I'm using the debian 2.2 potato, and have installed apache, mysql, and php4.
My problem is that i need to be able to run .php3 on this box as well.
When i us the
<?php
phpinfo()
?>
it works just fine, but the i try to use php3, it just shows me the source code.
(i guess this is a mime problem, but im not sure)
i can view the page if i change attribute to .php , but then all the scripts bail out,
since they call blablabla.php3, and now its called blablabla.php
/Lasse
You should add the php3 extension in your httpd.conf:
ScriptAlias /php/ "d:/php/"
AddType application/x-httpd-php .php .phtml .php3
Action application/x-httpd-php "/php/php.exe"
or apache module:
LoadModule php4_module d:/php/sapi/php4apache.dll
AddType application/x-httpd-php .php .phtml .php3
I'm sorry if this is not what you asked for.
Chris
----- Original Message -----
From: "Lars Lindgren A (ERA)" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, July 26, 2001 12:21
Subject: [PHP-INST] debian php problems
> Hello!
>
> I'm using the debian 2.2 potato, and have installed apache, mysql, and
php4.
> My problem is that i need to be able to run .php3 on this box as well.
> When i us the
> <?php
> phpinfo()
> ?>
>
> it works just fine, but the i try to use php3, it just shows me the source
code.
> (i guess this is a mime problem, but im not sure)
> i can view the page if i change attribute to .php , but then all the
scripts bail out, since they call blablabla.php3, and now its called
blablabla.php
>
> /Lasse
>
> --
> PHP Install Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> To contact the list administrators, e-mail: [EMAIL PROTECTED]
>
>
*******************************************************************
This message may contain information which is confidential and subject to legal
privilege. If you are not the intended recipient, you may not peruse, use,
disseminate, distribute or copy this message. If you have received this message in
error, please notify the sender immediately by email, facsimile or telephone and
return and/or destroy the original message.
*******************************************************************
Make sure this line is in your httpd.conf file:
AddType application/x-httpd-php .php .php3
This should allow PHP to parse both *.php and *.php3 scripts.
hth
- Cary
"Sure I'm paranoid but am I paranoid enough?"
Lars Lindgren A wrote:
> Hello!
>
> I'm using the debian 2.2 potato, and have installed apache, mysql, and php4.
> My problem is that i need to be able to run .php3 on this box as well.
> When i us the
> <?php
> phpinfo()
> ?>
>
> it works just fine, but the i try to use php3, it just shows me the source code.
> (i guess this is a mime problem, but im not sure)
> i can view the page if i change attribute to .php , but then all the scripts bail
>out, since they call blablabla.php3, and now its called blablabla.php
>
> /Lasse
Hi all!
Apache is the included version from Solaris 8 Distribution. PHP is the
latest from the website. MySQL is also installed via pkgadd from
sunfreeware.com.
# /usr/apache/bin/apachectl start
Syntax error on line 235 of /etc/apache/httpd.conf:
Cannot load /usr/apache/libexec/libphp4.so into server: ld.so.1:
/usr/apache/bin/httpd: fatal: relocation error: file
/usr/apache/libexec/libphp4.so: symbol php_printf: referenced symbol not
found
/usr/apache/bin/apachectl start: httpd could not be started
# echo $LD_LIBRARY_PATH
/usr/lib:/usr/local/lib:/usr/local/mysql/lib:/usr/local/mysql/lib/mysql
Line 235 of httpd.conf:
LoadModule php4_module /usr/apache/libexec/libphp4.so
with:
AddModule mod_php4.c
and of course:
AddType application/x-httpd-php .php .php3 .php4 .phtml .phps
If I pull these lines (except the application), apache starts, but it tries
to "Save" when I go to a .php file.
If I try to recompile Apache 1.3.20, I receive:
Undefined first referenced
symbol in file
mysql_get_host_info modules/php4/libphp4.a(php_mysql.o)
mysql_get_client_info modules/php4/libphp4.a(php_mysql.o)
...
mysql_init modules/php4/libphp4.a(php_mysql.o)
ld: fatal: Symbol referencing errors. No output written to httpd
collect2: ld returned 1 exit status
*** Error code 1
make: Fatal error: Command failed for target `target_static'
Current working directory /opt/apache_1.3.20/src
*** Error code 1
make: Fatal error: Command failed for target `build-std'
Current working directory /opt/apache_1.3.20
*** Error code 1
make: Fatal error: Command failed for target `build'
I did configure php --with-mysql and --with-apache.
TIA!
-Aaron
hi all,
I'm trying to configure a fresh 4.0.6 cgi, and I'm getting this message
after a clean configure process:
+--------------------------------------------------------------------+
| *** ATTENTION *** |
| |
| Something is likely to be messed up here, because the configure |
| script was not able to detect a simple feature on your platform. |
| This is often caused by incorrect configuration parameters. Please |
| see the file debug.log for error messages. |
| |
| If you are unable to fix this, send the file debug.log to the |
| [EMAIL PROTECTED] mailing list and include appropiate |
| information about your setup. |
+--------------------------------------------------------------------+
So, I looked in debug.log:
Everything looks like an info dump, except this:
----------
/usr/bin/ld: cannot
find -lxmlparse
----------
Note that the "default" in ./configure is:
-lxmltok, I got the exact same behavior with that, and the same error
message (with lxmltoc instead:
----------
/usr/bin/ld: cannot
find -lxmltok
----------
I'm not particularly familiar with ld, so I don't try using it to see if I
could get anything out of it.
-----------------------------
CONFIGURE: './configure' '--prefix=/usr/local/php4'
'--with-config-file-path=/usr/local/apache/conf'
'--enable-force-cgi-redirect' '--enable-discard-path' '--disable-shared'
'--enable-ftp' '--with-zlib'
'--enable-bcmath' '--enable-calendar' '--with-imlib=/usr/local/lib/'
'--with-jpeg-dir=/usr/lib'
'--with-tiff-dir=/usr/lib' '--with-oci8=/u01/oracle/product/8.1.6'
'--with-mhash=/usr/local/mhash'
'--with-mcrypt=/usr/local/mcrypt' '--with-dom=/usr/local/libxml2'
'--with-sablot=/usr/local/Sablot'
'--with-curl' '--enable-wddx' '--enable-memory-limit' '--enable-debug=no'
CC: gcc CFLAGS: -g -O2
CPPFLAGS: -DSUPPORT_UTF8 CXX: CXXFLAGS: INCLUDES: -I$(top_builddir)/Zend
-I/usr/local/libxml2/include -I/usr/local/mcrypt/include
-I/usr/local/mhash/include
-I/u01/src/apache-1320-php-406-bc/php-4.0.6.cgi/ext/mysql/libmysql
-I/u01/oracle/product/8.1.6/rdbms/public
-I/u01/oracle/product/8.1.6/rdbms/demo
-I/u01/oracle/product/8.1.6/network/public -I/usr/local/Sablot/include
LDFLAGS:
-Wl,-rpath,/usr/local/libxml2/lib -L/usr/local/libxml2/lib
-Wl,-rpath,/usr/local/mcrypt/lib
-L/usr/local/mcrypt/lib -Wl,-rpath,/usr/local/mhash/lib
-L/usr/local/mhash/lib
-Wl,-rpath,/u01/oracle/product/8.1.6/lib -L/u01/oracle/product/8.1.6/lib
-Wl,-rpath,/usr/local/Sablot/lib -L/usr/local/Sablot/lib
-Wl,-rpath,/usr/local/lib -L/usr/local/lib
LIBS: -liconv -lxmlparse -lxmlparse -lsablot -lm -ldl -lmhash -lmcrypt
-lltdl -lz -lxml -lcurl -ldl
-lcrypto -lssl -lz -lcrypt -lresolv -lm -ldl -lnsl -lresolv -lclntsh DLIBS:
SAPI: cgi PHP_RPATHS:
/usr/local/libxml2/lib /usr/local/mcrypt/lib /usr/local/mhash/lib
/u01/oracle/product/8.1.6/lib
/usr/local/Sablot/lib /usr/local/lib uname -a: Linux core.turingstudio.com
2.2.16-3smp-hh #2 SMP Wed
Jan 24 10:07:49 PST 2001 i686 unknown
gcc -o conftest -g -O2 -DSUPPORT_UTF8 -Wl,-rpath,/usr/local/libxml2/lib
-L/usr/local/libxml2/lib
-Wl,-rpath,/usr/local/mcrypt/lib -L/usr/local/mcrypt/lib
-Wl,-rpath,/usr/local/mhash/lib
-L/usr/local/mhash/lib -Wl,-rpath,/u01/oracle/product/8.1.6/lib
-L/u01/oracle/product/8.1.6/lib
-Wl,-rpath,/usr/local/Sablot/lib -L/usr/local/Sablot/lib
-Wl,-rpath,/usr/local/lib -L/usr/local/lib
conftest.c -liconv -lxmlparse -lxmlparse -lsablot -lm -ldl -lmhash -lmcrypt
-lltdl -lz -lxml -lcurl
-ldl -lcrypto -lssl -lz -lcrypt -lresolv -lm -ldl -lnsl -lresolv -lclntsh
1>&5 /usr/bin/ld: cannot
find -lxmlparse collect2: ld returned 1 exit status
-----------------------
ideas?
tia all :)
_alex