php-install Digest 4 Jul 2001 00:11:48 -0000 Issue 345
Topics (messages 3400 through 3406):
Bounce mail could not return to the sender
3400 by: nilesh Dharaiya
problem installing PHP and UCD SNMP
3401 by: Nilsson U Magnus
3405 by: Jani Taskinen
500 Internal Server Error
3402 by: Joachim Andree
3403 by: Mark Roedel
PHP as external script and Apache : configuring 404 errors
3404 by: Laurent INFOS
.htaccess - solved, well, sort of
3406 by: Chris Herrmann
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 am use Twig 2.6.2 on RedHat 6.2, whenever sender
mistype the address of receipent, return mail could
not appended to sender's mail box. While using
sendmail from command line it sends bounced mail to
the sender's mail box. What may be the problem? Plaese
help.
Regards Nilesh
__________________________________________________
Do You Yahoo!?
Get personalized email addresses from Yahoo! Mail
http://personal.mail.yahoo.com/
Hi,
I have been trying to configure PHP 4.06 with support for UCD SNMP but I did
not get it to work. When I try to run "'./configure' '--with-mysql'
'--with-apxs' '--with-snmp=/usr/local' '--enable-track-vars'
'--enable-ucd-snmp-hack'" I get the following error message. Anyone having a
clue to solve thos problem.
/Mangus Nilsson
CONFIGURE: './configure' '--with-mysql' '--with-apxs'
'--with-snmp=/usr/local' '--enable-track-vars' '--enable-ucd-snmp-hack'
CC: gcc
CFLAGS: -g -O2
CPPFLAGS: -DLINUX=22 -DUSE_HSREGEX -DUSE_EXPAT -DSUPPORT_UTF8
CXX:
CXXFLAGS:
INCLUDES: -I/usr/local/apache/include -I$(top_builddir)/Zend
-I/dl/php-4.0.6/ext/mysql/libmysql -I/usr/local/include/ucd-snmp
LDFLAGS: -Wl,-rpath,/usr/local/lib -L/usr/local/lib
LIBS: -lsnmp -lcrypt -lresolv -lm -ldl -lnsl -lresolv
DLIBS:
SAPI: apache
PHP_RPATHS: /usr/local/lib
uname -a: Linux buffy.edet.hygiene.sca.se 2.4.2-2 #1 Sun Apr 8 20:41:30
EDT 2001 i686 unknown
gcc -o conftest -g -O2 -DLINUX=22 -DUSE_HSREGEX -DUSE_EXPAT -DSUPPORT_UTF8
-Wl,-rpath,/usr/local/lib -L/usr/local/lib conftest.c -lsnmp -lcrypt
-lresolv -lm -ldl -lnsl -lresolv 1>&5
/usr/local/lib/libsnmp.so: undefined reference to `EVP_DigestInit'
/usr/local/lib/libsnmp.so: undefined reference to `EVP_DigestFinal'
/usr/local/lib/libsnmp.so: undefined reference to `EVP_md5'
/usr/local/lib/libsnmp.so: undefined reference to `HMAC'
/usr/local/lib/libsnmp.so: undefined reference to `EVP_sha1'
/usr/local/lib/libsnmp.so: undefined reference to `des_cbc_encrypt'
/usr/local/lib/libsnmp.so: undefined reference to `des_key_sched'
/usr/local/lib/libsnmp.so: undefined reference to `EVP_DigestUpdate'
/usr/local/lib/libsnmp.so: undefined reference to `RAND_bytes'
/usr/local/lib/libsnmp.so: undefined reference to `des_ncbc_encrypt'
collect2: ld returned 1 exit status
--with-openssl
--Jani
On Tue, 3 Jul 2001, Nilsson U Magnus wrote:
>Hi,
>
>I have been trying to configure PHP 4.06 with support for UCD SNMP but I did
>not get it to work. When I try to run "'./configure' '--with-mysql'
>'--with-apxs' '--with-snmp=/usr/local' '--enable-track-vars'
>'--enable-ucd-snmp-hack'" I get the following error message. Anyone having a
>clue to solve thos problem.
>
>/Mangus Nilsson
>
>
>
>CONFIGURE: './configure' '--with-mysql' '--with-apxs'
>'--with-snmp=/usr/local' '--enable-track-vars' '--enable-ucd-snmp-hack'
>CC: gcc
>CFLAGS: -g -O2
>CPPFLAGS: -DLINUX=22 -DUSE_HSREGEX -DUSE_EXPAT -DSUPPORT_UTF8
>CXX:
>CXXFLAGS:
>INCLUDES: -I/usr/local/apache/include -I$(top_builddir)/Zend
>-I/dl/php-4.0.6/ext/mysql/libmysql -I/usr/local/include/ucd-snmp
>LDFLAGS: -Wl,-rpath,/usr/local/lib -L/usr/local/lib
>LIBS: -lsnmp -lcrypt -lresolv -lm -ldl -lnsl -lresolv
>DLIBS:
>SAPI: apache
>PHP_RPATHS: /usr/local/lib
>uname -a: Linux buffy.edet.hygiene.sca.se 2.4.2-2 #1 Sun Apr 8 20:41:30
>EDT 2001 i686 unknown
>
>gcc -o conftest -g -O2 -DLINUX=22 -DUSE_HSREGEX -DUSE_EXPAT -DSUPPORT_UTF8
>-Wl,-rpath,/usr/local/lib -L/usr/local/lib conftest.c -lsnmp -lcrypt
>-lresolv -lm -ldl -lnsl -lresolv 1>&5
>/usr/local/lib/libsnmp.so: undefined reference to `EVP_DigestInit'
>/usr/local/lib/libsnmp.so: undefined reference to `EVP_DigestFinal'
>/usr/local/lib/libsnmp.so: undefined reference to `EVP_md5'
>/usr/local/lib/libsnmp.so: undefined reference to `HMAC'
>/usr/local/lib/libsnmp.so: undefined reference to `EVP_sha1'
>/usr/local/lib/libsnmp.so: undefined reference to `des_cbc_encrypt'
>/usr/local/lib/libsnmp.so: undefined reference to `des_key_sched'
>/usr/local/lib/libsnmp.so: undefined reference to `EVP_DigestUpdate'
>/usr/local/lib/libsnmp.so: undefined reference to `RAND_bytes'
>/usr/local/lib/libsnmp.so: undefined reference to `des_ncbc_encrypt'
>collect2: ld returned 1 exit status
>
>
On an Suse-Linux 6.4
I installed php 4.06
8.
./configure --with-pgsql --with-apache=../apache_1.3.x --enable-track-vars
make, make install
compiled apache 1.3.20
./configure --activate-module=src/modules/php4/libphp4.a
make, make install
Everything looks fine but when I trie <? phpinfo() ?>
the Apache Server Error log reports:
[Error] (8)Exec format error: exec of /usr/local/httpd/cgi-bin/test.php
[Error] Preamture End of script headers: /usr/local/httpd/cgi-bin/test.php
Has anybody an idea? Thanks
> -----Original Message-----
> From: Joachim Andree [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, July 03, 2001 8:14 AM
> To: [EMAIL PROTECTED]
> Subject: [PHP-INST] 500 Internal Server Error
>
>
> On an Suse-Linux 6.4
> I installed php 4.06
>
> ./configure --with-pgsql --with-apache=../apache_1.3.x
> --enable-track-vars
>
> [snip]
>
> Everything looks fine but when I trie <? phpinfo() ?>
> the Apache Server Error log reports:
> [Error] (8)Exec format error: exec of
> /usr/local/httpd/cgi-bin/test.php
> [Error] Preamture End of script headers:
> /usr/local/httpd/cgi-bin/test.php
You've built PHP as an Apache module, but you're attempting to use it as
a CGI.
Try moving test.php from your cgi-bin directory into your main web
document tree and see whether the results are any better.
---
Mark Roedel ([EMAIL PROTECTED]) | "There cannot be a crisis next week.
Systems Programmer / WebMaster | My schedule is already full."
LeTourneau University | -- Henry Kissinger
Hello,
I have :
- Apache 1.3.x
- PHP 4.0.5 (not a module, but a separate script)
- the directive ErrorDocument is configurated :
ErrorDocument 404 /404.html
My problem :
- http://server/filenotpresent
gives a 404 error, and open 404.html. It's OK.
- http://server/filenotpresent.php4
calls php before verifying if "filenotpresent.php4"
exists. So, instead of opening /404.html,
we got an internal error because
"/usr/.../bin/php filenotpresent.php4" returns
no data.
My question :
Is there is a way :
- to tell php to generate an HTML page containing a redirect
to /404.html, if the given file doesn't exists
or
- configure Apache to force it to check if the
file exists before calling php ?
Thanks for your help.
Laurent.
Hi all,
Many thanks to Christopher Ostmo who solved this one. The reason why it
couldn't read .htaccess was because "other" people didn't have read
permission on the directory that contained the file. An ls -la looked like:
[root@gemini squirrelmail]# ls -la
total 128
drwxr-x--- 14 squirrel nobody 4096 Jul 2 09:48 .
-rw-r--r-- 1 squirrel nobody 87 Jun 23 10:53 .htaccess
chmod'ing it to give other people read and execute access on the directory
fixed this, but revealed another, deeper problem... (was that the force I
felt, or a butterfly in china?)
Now attempting to access the page returns a:
[Wed Jul 4 10:00:30 2001] [error] [client 198.142.14.193] script not found
or unable to stat: /usr/local/apache/cgi-bin/php
which is entirely inappropriate, as the php app in question doesn't live in
/usr/local/apache/anywhere
I'm guessing that this has something to do with a line in the apache config
that says:
ScriptAlias /cgi-bin/ "/usr/local/apache/cgi-bin/"
for the general server config. There are no script aliases for the virtual
in question.
The virtual doesn't have anything odd defined in it - just the server name,
location of files, and where to log to.
<VirtualHost 198.142.14.194>
ServerName webmail.faredge.com.au
ServerAdmin [EMAIL PROTECTED]
DocumentRoot /var/qmail/squirrelmail
ErrorLog /var/log/apache/squirrelmail-error_log
CustomLog /var/log/apache/squirrelmail-access_log common
</VirtualHost>
Any ideas?
Cheers,
Chris Herrmann
Far Edge Technology
p. 02 99553640
f. 02 99547994
m. 0403 393309
http://www.faredge.com.au