Maybe I should have put "NEWBIE ALERT" as part of the subject :) 
All the same.....

I thought that the build had already been done in steps 9 and 10 (see manual
exerpt).  And then, right after that is the line about "building" the CGI
executable (section following the steps).  Has that not been done already?
Perhaps I have done something wrong with the compile or the post-compile
Apache configuration.

I am probably going to do the compile again.  I want to use Apache and MySQL
with PHP.  Any tips?  Before I attempt to compile, where should I locate the
Apache, MySQL and PHP source directories (/usr/local?????) in terms of best
practices?  After the build, can I remove the source directories from that
machine?

When I try to open a sample .php, the browser asks me where I would like to
download it.  I have obviously missed something.  I tried to fix this by
adding "AddModule mod_php3.c" to the end of the list of modules in
httpd.conf and get an error stating "Cannot add module via name
'mod_php4.c':not in list of loaded modules" on httpd startup.  I looked at
the other loaded modules and they all end in .so.  There is no mod_php4.so
on my system.  I guess the idiot-proof install wasn't written for
SuperIdiot.  Anyway, any direction regarding how to troubleshoot this is
vigorously encouraged.

Regards,
Rob

x-----------From the Manual------------------------x

Apache Module Quick Reference
PHP can be compiled in a number of different ways, but one of the most
popular is as an Apache module. The following is a quick installation
overview. 

Example 2-1. Quick Installation Instructions for PHP 4 (Apache Module
Version) 

1.  gunzip apache_1.3.x.tar.gz
2.  tar xvf apache_1.3.x.tar
3.  gunzip php-x.x.x.tar.gz
4.  tar xvf php-x.x.x.tar
5.  cd apache_1.3.x
6.  ./configure --prefix=/www
7.  cd ../php-x.x.x
8.  ./configure --with-mysql --with-apache=../apache_1.3.x
--enable-track-vars
9.  make
10. make install
11. cd ../apache_1.3.x
12. ./configure --activate-module=src/modules/php4/libphp4.a
13. make
14. make install
15. cd ../php-x.x.x
16. cp php.ini-dist /usr/local/lib/php.ini
17. Edit your httpd.conf or srm.conf file and add: 
      AddType application/x-httpd-php .php

18. Use your normal procedure for restarting the Apache server. (You must
    stop and restart the server, not just cause the server to reload by
    use a HUP or USR1 signal.)
     
 
 

Building
When PHP is configured, you are ready to build the CGI executable. The
command make should take care of this. If it fails and you can't figure out
why, see the Problems section. 

x-----------End of Manual excerpt------------------------x

> -----Original Message-----
> From: Josh Lokot [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, March 07, 2001 11:57 PM
> To: [EMAIL PROTECTED]
> Subject: RE: [PHP-INST] FW: I'm not sure where to begin...
> 
> 
> Type make from in your php-4.0.4pl1 directory.  then it 
> should compile.
> then you can type "make install" and it should install.
> 
> -----Original Message-----
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, 8 March 2001 10:33 AM
> To: [EMAIL PROTECTED]
> Subject: [PHP-INST] FW: I'm not sure where to begin...
> 
> 
> Hello all,
> 
> I'm using RHL 6.0 with Apache 1.3.6 and downloaded and
> attempted an install of PHP-4.0.4pl1 today.
> 
> As you can probably guess, I was unsuccessful in my first try
> to get things working here, but I remain hopeful.
> 
> I followed the instructions given on pp. 51-52 of the
> http://snaps.php.net/~jah/pdf/manual-en.pdf document.  Well, 
> mostly.  I
> don't know what is meant by "When PHP is configured, you are 
> ready to build
> the CGI executable.  The command make should take care of this.  If it
> fails, and you can't figure out why, see the problems section."
> 
> What directory should I be in when I run make?  I thought I 
> had already
> built everything in the previous 18 step procedure.
> 
> While I'm at it, since another compile/build seems 
> inevitable, I might as
> well ask for configuration suggestions as well.
> 
> The install is on a development server, I just need it to 
> work for now.
> 
> Regards,
> Rob
> 
> 
> --
> 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]
> 
> 

-- 
PHP Database 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]

Reply via email to