Web Hosting Talk







View Full Version : Installing PHP 4.0.6 on RaQ4 - help!


microlinx
03-10-2002, 01:48 AM
Recently purchased a RaQ4.

I have installed the OS 2 update and had to uninstall the old PHP ( I never verified that it was working).

I am now trying to get PHP 4.0.6 working and have installed it using the RaQ4 GUI (Maintenance > Install Software > upload ).

No errors were reported, but when I try to pull up a .php3 file it opens a "File download" page, obviously not running the php stuff...

Anyone got any troubleshooting tips?

(I've visited every php link out there only to be overwhelmed with the amount of disparate info!)

TIA!


:homer:

Mxhub
03-10-2002, 03:14 AM
1. pico httpd.conf and search for the domain.com that is using php3 extension.

Add the following:

AddType application/x-httpd-php .php3

Restart apache.

Now .php3 can be read.

I advise you to update php to 4.1.2 . The latest version had a security patches.

AP
03-10-2002, 03:59 AM
Just FYI, there are some security flaws for most versions of PHP, you might want to upgrade to PHP 4.1.2. Maybe you already knew this, but I thought I'd mention it anyways.

AP

Angel78
03-10-2002, 06:29 AM
where did you find the 4.0.6 pkg?

microlinx
03-10-2002, 10:03 AM
After taking a quick look at httpd.conf, I found some modules for php that are also commented out...

My assumption was that installing via the GUI would take core of at least some of the configuration with apache, HA!

I guess my real question still is How can I tell if PHP has been installed and working? I created a web page at:
http://www.cobalt-host.com/test.htm which has some simple
php script in it (<?php
echo "Hi, I'm a PHP script!";
?>), but refuses to run the script.
That is telling me the GUI did NOT install php (yes I am now installing 4.1.2)

Finally who has a nice, clear, easy to understand step by step install & troubleshooting procedure for php 4.1.2???

I sure can't find one!


By the way Angel, I got 4.0.6 off the sun/cobalt web packages page, which is probably long gone...if you need it, let me know.

Angel78
03-10-2002, 11:16 AM
I do :) could you mail it or ftp it somewhere?

btw this is php 4.1.2 how to from rackshack

http://forum.rackshack.net/showthread.php?s=&threadid=3985

hope it will help you.

microlinx
03-10-2002, 03:55 PM
Just another bit of info...
Even though PHP 4.1.2 now seems to have installed
(rpm -qa reports 2 php 4.1.2 packages, see below:
php-4.1.2-PM1
php-devel-4.1.2-PM1
)

I still can not run any php scripts...
I created a page at:
www.cobalt-host.com/phptest.php (http://www.cobalt-host.com/phptest.php)
which will not spit out any info on php info or the simple text messag, it just wants to download the file, not run it.

try is your self!

This has got to be a stupid, simple config issue.

Thanks
:dunce:

GideonX
03-10-2002, 04:58 PM
Originally posted by microlinx
Just another bit of info...
Even though PHP 4.1.2 now seems to have installed
(rpm -qa reports 2 php 4.1.2 packages, see below:
php-4.1.2-PM1
php-devel-4.1.2-PM1
)

I still can not run any php scripts...
I created a page at:
www.microlinx.com/phptest.php (http://www.microlinx.com/phptest.php)
which will not spit out any info on php info or the simple text messag, it just wants to download the file, not run it.

try is your self!

This has got to be a stupid, simple config issue.

Thanks
:dunce:

file not found for me

microlinx
03-10-2002, 05:14 PM
sorry, wrong domain..it is
www.cobalt-host.com/phptest.php (http://www.cobalt-host.com/phptest.php)

:crap:

Angel78
03-10-2002, 05:20 PM
hui i get the download thing... it is not working :(

microlinx
03-10-2002, 06:02 PM
Ok...

Here's a few questions:

1. where does the cobalt GUI try to install the PHP 4.1.2 package? (full directory path).
2. what config files are involved?
3. is there a process that can be checked to see if PHP is alive?
4. is there a log file to check for install errors or execution errors.
5. are there any known issues or gotchas (please 10,000 words or less..;) )

This should get me in the right direction and help me develop a "dummies" version of a install & startup guide for PHP...if that is possible!

Regards
Steve
:homer:

GideonX
03-10-2002, 06:15 PM
open up

/etc/httpd/conf/srm.conf

and look for

AddType application/x-httpd-php .php

if it isn't there (or commented out) it'll give you that download prompt.

oh yea...restart httpd after u do that :)