php-install Digest 13 Nov 2002 10:52:00 -0000 Issue 1117
Topics (messages 9119 through 9123):
Re: Command line not installing
9119 by: Ken Colwell
crypt/MD5 problem
9120 by: Todd Hight
Redhat 8.0 PHP/SNMP Issue?
9121 by: Jeff
Re: Problems installing PHP 4.2.3 with Apache HTTPD 2.0.43 in Windows 2000
9122 by: Marcelo Juchem
PHP Error
9123 by: Dan Cooper
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]
----------------------------------------------------------------------
--- Begin Message ---
Dave wrote:
> been having weird problem. i compile php with --enable-cli
> command line interface, install seems to go fine, but the php
> executable never gets installed. what's weirder is that it installs
> fine on some systems, but won't on others, with no difference
> in php libs or config options (for all libs, apache, and php).
> anyone else seen this?
> dave
Hello Dave,
I'm experiencing the exact same problem when installing to a slackware web
server.
--- End Message ---
--- Begin Message ---
Hello list,
I currently having some trouble get PHP to compile with the correct
crypt() support. It seem that when compiled as a DSO under Apache
crypt() will not do MD5 encryption. However if I compile PHP standalone
then all works correctly. I have tried with and without mod_ssl. I
have tried building with Apachetoolbox and manualy.
I have searched this list and many others and see only people with
issues with Apache 2.x.x with mod_ssl. That's doesn't apply here since
I'm using Apache 1.3.27. The OS (RedHat 7.3) supports MD5 via crypt. I
have verified this with a sample C program and a Perl script, not to
mention as I stated above PHP standalone works fine.
Im not sure what's happening to prevent the porper crypt support from
getting in. Any suggestions would be appriciated. System specs below.
TIA!!!
- Todd
--------------------------------------------------------------------------
Server: AMD 1.5G/256M Ram
OS: RedHat 7.3
glibc: 2.2.5-34
apache: 1.3.27
php: 4.2.3
openssl: 0.9.6g
mod_ssl: 2.8.11-1.3.27
mm: 1.1.3
gd: 2.0.1
Excerpt from the config.log re: MD5
--------------------------------------------------------------------------
configure:58742: checking for MD5 crypt
configure:58777: gcc -o conftest -g -O2 -DLINUX=22 -DUSE_HSREGEX
-Wl,-rpath,/usr/local/mysql//lib/mysql -L/usr/local/mysql//lib/mysql
-Wl,-rpath,/usr/local/pgsql//lib -L/usr/local/pgsql//lib conftest.c
-lpq -lmysqlclient -lcrypt -lresolv -lm -ldl -lnsl -lresolv -lcrypt
1>&5
configure: failed program was:
#line 58753 "configure"
#include "confdefs.h"
#if HAVE_CRYPT_H
#include <crypt.h>
#endif
main() {
#if HAVE_CRYPT
char salt[15], answer[40];
salt[0]='$'; salt[1]='1'; salt[2]='$';
salt[3]='r'; salt[4]='a'; salt[5]='s';
salt[6]='m'; salt[7]='u'; salt[8]='s';
salt[9]='l'; salt[10]='e'; salt[11]='$';
salt[12]='\0';
strcpy(answer,salt);
strcat(answer,"rISCgZzpwk3UhDidwXvin0");
exit (strcmp((char *)crypt("rasmuslerdorf",salt),answer));
#else
exit(0);
#endif
}
--- End Message ---
--- Begin Message ---
This is a clean install of RH 8.0
I have the net-snmp (previously ucd-snmp) setup and working great. I tried
to use the snmpget command through PHP, but it didn't work. Checked the
phpinfo for the --with-snmp stuff, and it wasn't there. Found the RPM for
this (php-snmp, that comes on Disk 3), installed it (and rebooted), and now
there some entries in the ./configure portion of phpinfo.
The problem is that the php code pretty much stops after any snmpxxx
command. My theory is that it can find the appropriate command.
The wierd thing is that not it says '--with-snmp=shared,/usr'
'--with-snmp=shared' '--enable-ucd-snmp-hack' after the RPM install.
I think that first option is wrong and should state: '--with-snmp=/usr/bin'
How in the heck do I fix this? I'm fairly new to this whole Linux thing, I
don't have a great understanding of how I would compile all the apps to make
system back to the way it is, etc. Somehow this RPM edited the config
(incorrectly) and I would like to fix.
PHP 4.2.2, Apache 2
My "Configuration"
UCD-SNMP Support enabled
UCD-SNMP Version 5.0.1
'./configure' '--host=i686-pc-linux-gnu' '--build=i686-pc-linux-gnu'
'--target=i386-redhat-linux-gnu' '--program-prefix=' '--prefix=/usr'
'--exec-prefix=/usr' '--bindir=/usr/bin' '--sbindir=/usr/sbin'
'--sysconfdir=/etc' '--datadir=/usr/share' '--includedir=/usr/include'
'--libdir=/usr/lib' '--libexecdir=/usr/libexec' '--localstatedir=/var'
'--sharedstatedir=/usr/com' '--mandir=/usr/share/man'
'--infodir=/usr/share/info' '--prefix=/usr' '--with-config-file-path=/etc'
'--enable-force-cgi-redirect' '--disable-debug' '--enable-pic'
'--disable-rpath' '--enable-inline-optimization' '--with-bz2' '--with-db3'
'--with-curl' '--with-dom=/usr' '--with-exec-dir=/usr/bin'
'--with-freetype-dir=/usr' '--with-png-dir=/usr' '--with-gd'
'--enable-gd-native-ttf' '--with-ttf' '--with-gdbm' '--with-gettext'
'--with-ncurses' '--with-gmp' '--with-iconv' '--with-jpeg-dir=/usr'
'--with-openssl' '--with-png' '--with-pspell' '--with-regex=system'
'--with-xml' '--with-expat-dir=/usr' '--with-zlib' '--with-layout=GNU'
'--enable-bcmath' '--enable-exif' '--enable-ftp' '--enable-magic-quotes'
'--enable-safe-mode' '--enable-sockets' '--enable-sysvsem'
'--enable-sysvshm' '--enable-discard-path' '--enable-track-vars'
'--enable-trans-sid' '--enable-yp' '--enable-wddx' '--without-oci8'
'--with-pear=/usr/share/pear' '--with-imap=shared' '--with-imap-ssl'
'--with-kerberos=/usr/kerberos' '--with-ldap=shared'
'--with-mysql=shared,/usr' '--with-pgsql=shared' '--with-snmp=shared,/usr'
'--with-snmp=shared' '--enable-ucd-snmp-hack' '--with-unixODBC=shared'
'--enable-memory-limit' '--enable-bcmath' '--enable-shmop'
'--enable-versioning' '--enable-calendar' '--enable-dbx' '--enable-dio'
'--enable-mcal' '--with-apxs2=/usr/sbin/apxs'
--- End Message ---
--- Begin Message ---
The Apache HTTDP server is running smoothly (standalone) without PHP and
with PHP as a CGI script and I'm the local Administrator.
The problem only appears when I try to run PHP as a module adding those
3 lines to the httpd.conf file right after the "LoadModule" session:
------------------------------------------------------------------------------
LoadModule php4_module "C:/Program
Files/php-4.2.3-Win32/sapi/php4apache2.dll"
AddModule mod_php4.c
AddType application/x-httpd-php .php
------------------------------------------------------------------------------
Skully wrote:
okay there are 2 things to keep in mind with Windows:
- You must be local admin to run apache
- Cant use server=inetd! only standalone
You first must run the configtest to make sure your httpd.conf file is
correct
----- Original Message -----
From: "Marcelo Juchem" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, November 12, 2002 2:22 AM
Subject: [PHP-INST] Problems installing PHP 4.2.3 with Apache HTTPD 2.0.43
in Windows 2000
Hi all,
First of all, I know C:\> sucks and # rules, but it's not me who
decides which one to use.
I installed PHP 4.2.3 (binary from www.php.net) right after
installing Apache HTTPD 2.0.43 (binary from httpd.apache.org) in Windows
2000. I have followed the instructions from <PHP_HOME>\install.txt and
haven't enabled any extension.
The problem is, when I started the apache service (NET START
APACHE2), it failed with the following message:
--------------------------------------------------
The Apache2 service is starting.
The Apache2 service could not be started.
A service specific error occurred: 1.
More help is available by typing NET HELPMSG 3547.
--------------------------------------------------
Then I tried to run it from the command line with both
(<APACHE2_HOME>\bin\Apache.exe) and (<APACHE2_HOME>\bin\Apache.exe -k
start) and it failed with the following message:
--------------------------------------------------------------------------
-------------------------------------------------------------------------
apache: module "c:\php4build\snap\sapi\apache2filter\sapi_apache2.c"
is not compatible with this version of Apache (found 20020628, need
20020903).
Please contact the vendor for the correct version.
--------------------------------------------------------------------------
-------------------------------------------------------------------------
Does anyone knows what the problem is? Maybe the Apache build
version used to build the PHP binaries is older than the release build
found at httpd.apache.org?
Thanks anyway,
Marcelo Juchem, [EMAIL PROTECTED]
--
PHP Install Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
--- End Message ---
--- Begin Message ---
I have recently installed PHP 4.2.3, and am randomly getting the
following error intermittantly on PHP pages. If i do get it, a simple
refresh in the browser brings up the desired page.
Warning: open_basedir restriction in effect. File is in wrong directory
in Unknown on line 0
Warning: Failed opening '[CUT]' for inclusion (include_path='') in
Unknown on line 0
Any ideas?
--
Regards,
Dan Cooper
--- End Message ---