
03-10-2002, 01:48 AM
|
|
Newbie
|
|
Join Date: Mar 2002
Posts: 5
|
|
Installing PHP 4.0.6 on RaQ4 - help!
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!

|

03-10-2002, 03:14 AM
|
|
Web Hosting Master
|
|
Join Date: May 2001
Posts: 2,161
|
|
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.
__________________
Managed Multi-domain Shared, Reseller, VPS, Dedicated, Shoutcast Hosting
FFMPEG, PHP5, cPanel/WHM, Fantastico, Site Migration, Wordpress, Magento Ready!
Mxhub.com - Since 2001 - USA - UK - Canada - Europe - Singapore
|

03-10-2002, 03:59 AM
|
|
Junior Guru Wannabe
|
|
Join Date: Sep 2000
Posts: 34
|
|
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
|

03-10-2002, 06:29 AM
|
|
Registered User
|
|
Join Date: Jan 2001
Location: Vienna, Austria
Posts: 2,530
|
|
where did you find the 4.0.6 pkg?
|

03-10-2002, 10:03 AM
|
|
Newbie
|
|
Join Date: Mar 2002
Posts: 5
|
|
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.
|

03-10-2002, 03:55 PM
|
|
Newbie
|
|
Join Date: Mar 2002
Posts: 5
|
|
"File download of .phpx files....
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
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

Last edited by microlinx; 03-10-2002 at 05:06 PM.
|

03-10-2002, 04:58 PM
|
|
Web Hosting Master
|
|
Join Date: Dec 2001
Location: NYC
Posts: 1,902
|
|
Re: "File download of .phpx files....
Quote:
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
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
|
file not found for me
|

03-10-2002, 05:14 PM
|
|
Newbie
|
|
Join Date: Mar 2002
Posts: 5
|
|
|

03-10-2002, 05:20 PM
|
|
Registered User
|
|
Join Date: Jan 2001
Location: Vienna, Austria
Posts: 2,530
|
|
hui i get the download thing... it is not working 
|

03-10-2002, 06:02 PM
|
|
Newbie
|
|
Join Date: Mar 2002
Posts: 5
|
|
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

|

03-10-2002, 06:15 PM
|
|
Web Hosting Master
|
|
Join Date: Dec 2001
Location: NYC
Posts: 1,902
|
|
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 
|
| Thread Tools |
Search this Thread |
|
|
|
| Display Modes |
Linear Mode
|
| Postbit Selector |
|
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
|
|
|
| Login: |
|
|
| Advertisement: |
|
|
| Web Hosting News: |
|
|
|