View Full Version : Installing PHP
Maxtr0sity
September 17th, 2003, 04:29 PM
Hi, before anyone complains, I searched and found one topic, but wasn't exactly what I was looking for, so I'm going to ask again.
I'm trying to install the newest version of PHP (5) on the RMT server. But for some reason, the server guy/programmer doesn't know how so it's my job to do so and fast. I downloaded the mauel from www.php.net, but it doesn't explain my case. His only instruction is to install it to "/usr/local/", but what files do I upload and how do I install it?
Thanks.
No hijacking.
:sure:
ahmed
September 17th, 2003, 04:30 PM
Don't install PHP 5 yet, install 4.3.3.. 5 is still in beta and very unstable, it's not to be run on production servers (yet)...
λ
September 17th, 2003, 04:31 PM
5 is only a beta build... I would recommend 4.3.3 for a production server. Anywho, do you have shell access?
Also this should really be in Server-Side/Scripting.
Maxtr0sity
September 17th, 2003, 04:32 PM
Ok, I'll download it now. Whats the difference between gz or bz2?
Maxtr0sity
September 17th, 2003, 04:33 PM
I have full access, which includes SSH. But if a mod wishes to move it, go for it.
λ
September 17th, 2003, 04:38 PM
I'm not really very knowledgeable with Linux/Unix servers... perhaps something like http://hotwired.lycos.com/webmonkey/00/44/index4a_page4.html?tw=programming might help?
Maxtr0sity
September 17th, 2003, 05:05 PM
I'll look into it, also, just for information, we're running Apache.
RelandR
September 17th, 2003, 05:37 PM
for everything you want(ed) to know about PHP, but were afraid to ask::
http://phpfreaks.com
Maxtr0sity
September 17th, 2003, 07:18 PM
Ok, I've uploaded everything into /usr/local/php/
Do I need to run anything else such as an installer?
Maxtr0sity
September 17th, 2003, 08:48 PM
I uploaded everything, but after I read the following, I'm lost.
./configure --help
You'll see a list of the 150 or so configuration options for PHP. You can get away with using just one, but here are a few of the more popular options:
--with-apxs=[/path/to/apxs] : This option builds PHP as a DSO. You should specify the path to the apxs script, which is usually in the Apache bin directory (/usr/local/apache[version]/bin/ or wherever you put it).
--enable-ftp : This option enables the built-in FTP functions.
--with-gd=[/path/to/gd] : This option enables the image-creation functions, if you have the GD library installed.
--with-mcrypt=[/path/to/mcrypt] : This option includes mcrypt support, if you have the mcrypt libraries installed.
--with-mhash=[/path/to/mhash] : This option includes mhash support, if you have the mhash libraries installed.
--with-mysql=[/path/to/mysql] : This option enables the MySQL functions, if you have MySQL installed in the directory specified. If you do not specify a directory, the bundled MySQL library will be used.
--with-oci8=[/path/to/ORACLE_HOME] : This option enables the Oracle 8 (oci*) functions, if you have the Oracle client libraries installed.
Once you get the hang of configuring and building PHP, feel free to pick and choose your configuration options. Remember: Because you're creating the DSO version of PHP, you can add or delete options until the end of time and you won't have to do much more than restart Apache later on.
Maxtr0sity
September 21st, 2003, 01:52 PM
Ok, I've gotten far since my last post. Now I have one last problem.
I installed PHP into apache, but that does not affect Tomcat, which is used to host the main site. I wasn't able to find any documentation about how to install PHP into tomcat. Right now, Apache can parse php pages, but if I open the page in tomcat, all I see is the code.
Anyone?
Powered by vBulletin® Version 4.1.10 Copyright © 2012 vBulletin Solutions, Inc. All rights reserved.