[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [cobalt-users] PHP Installation - newbie
- Subject: Re: [cobalt-users] PHP Installation - newbie
- From: "Simon Weller" <simon@xxxxxxxxxxxxx>
- Date: Wed Sep 13 18:41:46 2000
edit your srm.conf file in /etc/httpd/conf and add these lines
depending on whether you are running php3 or php4:
php3:
AddType application/x-httpd-php3 .php3
AddType application/x-httpd-php3 .phtml
AddType application/x-httpd-php3 .php
AddType application/x-httpd-php3-source .phps
php4:
AddType application/x-httpd-php .php3
AddType application/x-httpd-php .phtml
AddType application/x-httpd-php .php
AddType application/x-httpd-php-source .phps
Once you have done this, create a new file called phptest.php and
put this inside it:
<?
phpinfo();
?>
Save it and run it in your web browser, hopefully you will see the
php banner and the php system config info.
Hope this helps.
regards,
Simon
On 5 Sep 2000, at 8:55, Andi McBurnie wrote:
> Hi,
>
> I have installed the mysql and php rpms as per the instructions provided on
> this list archive and the mysql is working fine but I cannot seem to get the
> php working. When I request a phtml file from my web browser, the file is
> returned without being executed.
>
> What do I have to do with php and apache to get them to work together?
>
> Regards and thanks in a advance
> Andi
>
>
>
> _______________________________________________
> cobalt-users mailing list
> cobalt-users@xxxxxxxxxxxxxxx
> To Subscribe or Unsubscribe, please go to:
> http://list.cobalt.com/mailman/listinfo/cobalt-users
>
-----
Simon Weller
NZServers
Professional Hosting Services into the new millennium
Specialising in Web and Database Development
http://www.nzservers.com
Unit 7/5 Washington Way, Christchurch
PO Box 4159
Ph (03) 366 6099
Fax (03) 338 6783
A Division of Manalo Holdings LTD