Justtechjobs.com Find a programming school near you






Online Campus Both


php3-list | 199901

[PHP3] Re: Apache/PHP3 in a nutshell, was: [PHP3] RedHat 5.2/PHP install trouble? From: Andrew Chen (achen <email protected>)
Date: 01/01/99

Ah. That's kind of a chicken and the egg problem then, isn't it?

Try:
rpm -Uf php3
first. This has a high probability of not working, since I'm not sure that
you can use the "f" flag with the uninstall package option.

That might do it. Or try to install it with
rpm -Uvhf php3

That will force an install, I think. Then again, I might be wrong. I'm
actually using Debian GNU/Linux (which by the way has a much more advanced
packaging system, which might interest you since Redhat seems to have some
shortcomings -- and this is from a former Redhat user).

Anyway, if you want to go the tar.gz path, this is what you do:

www.apache.org
Go and download a apache-1.3.3.tar.gz off their site (just look for a
download button or look for a pointer to an ftp site). Then extract it. If
you're shaky with tar, then just use: tar zxf apache-1.3.3-tar.gz and that
should extract into a child directory. Do this under /usr/local/src for
added convenience.

then go to www.php.net and look for the source. It's under downloads,
"Download the source code and Windows distribution." Then, read all the
docs and compile. Lucky for you, I actually explained this in brief to a
friend of mine. The message is below. This is assuming that the tree looks
like this:

/usr/local/src
               -> php3[whatever]
               -> apache[whatever]

Also, I think you need to something with the ./configure for php3 like:

./configure --with-apache=../apache_1.3.3

or something similar. At least read the README before following my
instructions. Anyway, on with the instructions.

On Thu, 31 Dec 1998, Andrew Chen wrote:

> Date: Thu, 31 Dec 1998 22:19:02 -0800 (PST)
> From: Andrew Chen <achen <email protected>>
> To: Jake Kreutzer <jakek <email protected>>
> Subject: Re: stargod
>
> Cool. You should install PHP3. It's pretty interesting. Just
> decompress it into the /usr/local/src/ directory, then just do the
> standard ./configure; make; make install; stuff and answer all their
> questions, and then just compile Apache using:
>
> ./configure --activate-module src/modules/php3/libphp3.a
>
> and any other things, and then just make; make install; Apache. Then, you
> need to edit srm.conf to make it so that the PHP3 module handles
> everything with .php3, .phtml, and .phps (PHP source). Just add:
>
> AddType application/x-httpd-php3 .php3
> AddType application/x-httpd-php3 .phtml
> AddType application/x-httpd-php3-source .phps
>
> somewhere in there.
>
> That should do it. This is all on their website somewhere (www.php.net)
> where you can also download their shit. PHP is so cool, Redhat uses it to
> generate their dynamic data. Not sure what backend they use-- I'm assuming
> something like Oracle.
>
> By the way, installing mod_perl is a bitch. If you install it, allot the
> evening to wade through the docs.
>
> Andrew

Anyway, that should do it. You should probably read all the documentation
first, (or very soon after) you install this though. It's on their page,
just browse the HTML manual and read the first few chapters-- it's pretty
thorough about what to do.

Good luck, and don't get too mad at Redhat for making kind of a dumb
packaging system.

Andrew

PS. My friends here are telling me to get the hell off the computer so
they can get drunk and scream at the little ball dropping. I'll answer any
questions (or respond to any corrections) in the morning.. that is, if I
can get up :) See you all later, and happy new year!

On Fri, 1 Jan 1999, James wrote:

> >I didn't catch a lot of the thread, so forgive me if I ask dumb questions.
> >You did install Apache by RPM, right?
> - - -
> Well, it was installed with the RedHat install.
>
>
> >Otherwise it should be able to
> >install. To remove it, try rpm -U php. Then try again.
> - - -
> It doesn't thing it's installed, so it can't remove it. Yet, when I try to
> install from the RPM, it says it's already installed. UGH!
>
>
> >Otherwise, I
> >suggest that you download the tar.gz's of Apache and PHP3 and just compile
> >them like normal. It's pretty easy actually (much easier than Apache +
> >mod_perl).
> - - -
> You mean just grab the binary from php.net or from somewhere else? The one
> on the PHP site is an httpd file with both combined, yet the instructions
> show to unzip two different files.
>
>
> thanks for the help!
>
>
> James
>
>
>
>

--
PHP 3 Mailing List   http://www.php.net/
To unsubscribe send an empty message to php3-unsubscribe <email protected>
To subscribe to the digest list:  php3-digest-subscribe <email protected>
For help: php3-help <email protected>  Archive:  http://www.php.net/mailsearch.php3
List administrator:  zeev <email protected>