php-install Digest 30 Sep 2001 13:36:07 -0000 Issue 482
Topics (messages 4451 through 4454):
Last stage of install... One hurdle left...
4451 by: merana
4452 by: merana
Re: Error 404 problems with PHP4 and Apache 1.3 on Win ME
4453 by: Rahul Narain
php 4.01, mySQL 3.23, Redhat 7.1 db connection
4454 by: Gary
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 ---
Ok,
I did the search thing in the Archives but all I found were some close
variations but no sure match...
Here goes the problem description:
I am on a fresh install of RedHat SeaWolf. I D/L'd the latest distro of
Apache (1.3.20) and have in untar'ed in a directory
(/home/apache_1.3.20). I also have the latest distro of PHP from PHP.net
in a directory (/home/php.4.0.6).
I am following the instructions from the Site version of the Manual on
"Deatils on installing PHP with Apache on Unix".
Everything went as described until I make a change in httpd.conf on line
205 where it does the LoadModule. Nope I am not getting the garbled
error. I am getting the:
"Syntax error on line 205 of /usr/local/apache/conf/httpd.conf:
Invalid command 'LoadModule', perhaps mis-spelled or defined by a module
not included in the server configuration"
error...
The line in httpd.conf looks like this:
"LoadModule php4_module libexec/libphp4.so"
I verified that the file is actually in ht elibexec directory.
Timestamps seem right too.
My config flags were:
Stage 1. Initial .Config of apache
./configure --prefix=/www \
--enable-module=so \
--enable-module=rewrite \
--enable-shared=rewrite
Stage 2. Initial Config of PHP
./configure --with-mysql \
--with-apache=../apache_1.3.20 \
--enable-track-varsmake
Stage 3. After the make and make install of PHP
./configure --activate-module=src/modules/php4/libphp4.a
This is then followed by the make and make install of apache.
I checked the httpd.conf file and the AddTypes are there but when I try
to uncomment the LoadModule line I get that error.
Am I having path issues?
Thanks in advance...
Please cc: via e-mail
Michael
[EMAIL PROTECTED]
--- End Message ---
--- Begin Message ---
Hi Everyone...
I think I managed to puzzle though it...
Thanks for tolerating the wasted bandwidth...
Michael
--- End Message ---
--- Begin Message ---
I have the same problem! And I'm just not satisfied with using 3rd-party
software to install php... i want to know where the problem lies so i can
fix it myself. it's almost the exact same config code thats on all
php-install sites on the web, but still it doesnt work, and i know nothing
of apache...
in my httpd.conf is
ScriptAlias /php/ "c:/php/"
AddType application/x-httpd-php .php .phtml
Action application/x-httpd-php "/php/php.exe"
the error apache gives is:
404 Not found - The requested URL /php/php.exe/test.php was not found on
this server.
In the error.log:
(2) No such file or directory: script not found or unable to stat:
c:/perl/php
apache is installed into c:\perl
I've tried copy-pasting code from websites, but it doesn't work. Could
someone please tell me what is going wrong?
Jonathan Hilgeman <[EMAIL PROTECTED]> wrote in article
<[EMAIL PROTECTED]>...
> Try using FoxServ for a simplified setup process.
> http://prdownloads.sourceforge.net/foxserv/foxserv-v1.0.exe
> - Jonathan
>
> "Izy" <[EMAIL PROTECTED]> wrote in message
> [EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> > I recently installed Apache 1.3 (Win32) and PHP 4 on a Win ME system.
I
> > followed the installation instructions included in the readme file that
> was
> > included in the PHP installation. Running php.exe -i returned the html
> codes
> > properly.
> >
> > The apache server is displaying .html and .htm files properly while my
> > test.php file, which resides in the same directory, is coming up as
"HTTP
> > Error 404". I triple checked my installation of PHP and everything
seemed
> to
> > be in order.
> >
> > I'd appreciate any help and suggestions to fix this problem.
> >
> >
>
>
>
--- End Message ---
--- Begin Message ---
I installed mySQL 3.23 (works), php 4.01 from RPM (works) on Redhat 7.1
When I try to access a db from a php script using mysql_connect it says
"Fatal error: Call to undefined function: mysql_connect() in..."
>From reading it looks like the php RPM install didn't specify to use mySQL
(yeah I'm new to this).
The instructions I found at
http://www.php.net/manual/en/faq.installation.php#AEN62909 specify php3.
Are there installation instructions for php4? If I need to, how do I remove
php and start over again?
Thanks,
Gary
--- End Message ---