[nycphp-talk] PHP installation problems
Joseph E. Maxwell
webmaster at jaymax.com
Sat Aug 7 15:37:19 EDT 2004
Hello,
I've installed php4, "I think" on a FreeBSD - i386 platform w/ FreeBSD
4.9 O/S installed and running apache_1.3.31, however I think I have an
Apache problem but need to check on php4 setup & syntax
uname -a ===>
4.9-STABLE FreeBSD 4.9-STABLE #0: Wed Nov 12 17:41:01 PST 2003
.........:/usr/obj/usr/src/sys/STANDARD i386
php -v ===>
PHP 4.3.6 (cgi-fcgi) (built: Jun 21 2004 00:43:24)
Copyright (c) 1997-2004 The PHP Group
Zend Engine v1.3.0, Copyright (c) 1998-2004 Zend Technologies
Doesn't this imply that php is built & installed correctly
____________________________
Created a file phpinfo.php
cat phpinfo.php ===>
<?php
phpinfo();
?>
http://www.mydomain.com/phpinfo.php ===> nothing except the options to
download the file
Now,
php -i ===> the html coded file with the expected details of the
phpinfo.php, but nothing on Apache and I thought there was or should be
The problems seems to reside in the Apache httpd.conf file.
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_speling.c
mod_userdir.c
mod_alias.c
mod_rewrite.c
mod_access.c
mod_auth.c
mod_auth_dbm.c
mod_so.c
mod_setenvif.c
mod_ssl.c
suexec: disabled; invalid wrapper /usr/local/apache/bin/suexec
don't see mod_php4.c or 3 for that matter
In the httpd.conf file
sed -n 395,414p httpd.conf ===>
<IfModule mod_dir.c>
<IfModule mod_php3.c>
<IfModule mod_php4.c>
DirectoryIndex index.html index.php index.php3
</IfModule>
<IfModule !mod_php4.c>
DirectoryIndex index.html index.php3
</IfModule>
</IfModule>
<IfModule !mod_php3.c>
<IfModule mod_php4.c>
DirectoryIndex index.html index.php index.php3
</IfModule>
<IfModule !mod_php4.c>
DirectoryIndex index.html
</IfModule>
</IfModule>
</IfModule>
grep php4 httpd.conf ===>
LoadModule php4_module /usr/local/libexec/apache/libphp4.so
AddType application/x-httpd-php .php .php4
AddType application/x-httpd-php4 .php .php4
AddType application/x-httpd-php-source .phps .php4s
now if I include a
Addmodule mod_php4.c
apachectll configtest ===> warning that mod_php is already installed ??
___________________________________________________
redoing the installation after removing the configure-cache
make
with ./configure --with-mysql --with-apxs=/usr/local/apache/bin/apxs
--enable-versioning ===>
........
Configuring SAPI modules
checking for AOLserver support... no
checking for Apache 1.x module support via DSO through APXS...
Sorry, I was not able to successfully run APXS. Possible reasons:
1. Perl is not installed;
2. Apache was not compiled with DSO support (--enable-module=so);
3. 'apxs' is not in your path. Try to use --with-apxs=/path/to/apxs
The output of /usr/local/apache/bin/apxs follows
apxs:Error: @sbindir@/httpd not found or not executable
configure: error: Aborting
........
Perl is installed
perl -v
This is perl, v5.8.2
httpd -l
Compiled-in modules:
http_core.c
........
........
mod_so.c
mod_setenvif.c
mod_ssl.cmodule
apxs is installed version ( not from source tarball)
ls -l /usr/local/apache/bin/apxs
-rwxr-xr-x 1 root wheel 24624 Jun 21 01:23
/usr/local/apache/bin/apxs*
and is executible
could not interpret the error message : @sbindir@/httpd not found or not
executable
Hope someone can provide some guidance
Thanks
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.nyphp.org/pipermail/talk/attachments/20040807/99fbcddc/attachment.html>
More information about the talk
mailing list