[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [cobalt-users] php and /etc/httpd vs /etc/admserv



----- Original Message -----
From: "Todd Cary" <todd@xxxxxxxxxxxxxxxxxx>
To: <cobalt-users@xxxxxxxxxxxxxxx>
Cc: "Markus Lervik" <markus.lervik@xxxxxxxx>
Sent: Monday, May 27, 2002 3:51 PM
Subject: [cobalt-users] php and /etc/httpd vs /etc/admserv


> I uploaded the php package for php 4.1.2-3 using the upload feature of the
Web
> GUI and I have php enabled (the PHP logo is showing).  However, the RaQ 4
server
> is not processing php files (I use a test file - testphp.php - that
contains
> phpinfo() ).  Instead I am getting a directory listing.
>
> In doing a "find" for httpd.conf and php.ini, there are two locations for
each:
> /etc/httpd and /etc/admserv.  I am definitely *not* a Linux guru, so any
help
> would be appreciated in figuring out what is missing and how to get
everything
> working again.
>
> Todd
>

I am not sure what the pkg file you downloaded does ... but you may want to
try the following:
pico -w /etc/httpd/conf/srm.conf

Find the following line in srm.conf
#AddType application/x-httpd-php .phtml
After it, add this line
AddType application/x-httpd-php .php .php4 .phtml
This associates the .php file extension with PHP4

If you want index.php to be served by default you need also to add/alter
this as well in the section UserDir web of the same file

 # DirectoryIndex: Name of the file or files to use as a pre-written HTML
# directory index.  Separate multiple entries with spaces.
DirectoryIndex index.php index.php3 index.html index.htm index.shtml
home.html home.htm

 Stop and restart the HTTP server
 /etc/rc.d/init.d/httpd stop
 /etc/rc.d/init.d/httpd start

If that does not fix the problem,  I personally would uninstall the pkg and
put PHP in manually.
Mail me off list and I can let you have my instructions for doing it.
You may find this a better option anyway as it is the latest version of PHP.


Bassi