Welcome to HostingForumz.com!
FAQFAQ      ProfileProfile    Private MessagesPrivate Messages   Log inLog in

Apache and php

 
   Web Hosting Problem Solving Community! (Home) -> Apache RSS
Next:  Configure upload directory  
Author Message
janvidar_remth

External


Since: Aug 24, 2003
Posts: 3



(Msg. 1) Posted: Sun Aug 24, 2003 3:18 am
Post subject: Apache and php
Archived from groups: alt>apache>configuration (more info?)

I have just innstalled Mandrake 9.1, Apache2 and php 4.3.0. I have added a
line in httpd.conf - "AddType application/x-hhtpd-php .php3". The line is
in the end of the config-file.

Would this be enough to get php to work? I can't read php-files, and I am
not sure where to put the files either. The Apache root dir is
var/www/html. Is that the right place to put the php3-files?

--
mvh Jan Vidar
www.janvidar.com

 >> Stay informed about: Apache and php 
Back to top
Login to vote
thisisfake

External


Since: Aug 21, 2003
Posts: 3



(Msg. 2) Posted: Sun Aug 24, 2003 3:18 am
Post subject: Re: Apache and php [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

Try:


A quick edit of a couple of Apache config files is all that' s needed to
alert Apache to PHP. First, open up /etc/httpd/conf/httpd.conf and add the
following lines

LoadModule php3_module libexex/libphp3.so

AddModule mod_php3.c

Make sure to check the LoadModule and AddModule sections of the conf file to
make sure these lines aren' t already there -- doubles are bad. Next, edit
the /etc/httpd/conf/srm.conf and add the following lines

AddType application/x-httpd-php3 .php3

AddType application/x-httpd-php3-source .phps

to tell Apache to use PHP on any file with a .php3 extension.

Last up -- restart Apache and you should be good to go

/etc/rc.d/init.d/httpd restart





ScriptAlias /php/ "h:/php/"
AddType application/x-httpd-php .php3
Action application/x-httpd-php "/php/php.exe"


"Jan V.Pedersen" <janvidar_remThis_.TakeThisOut@start.no> wrote in message
news:ZKR1b.16494$os2.230792@news2.e.nsc.no...
 > I have just innstalled Mandrake 9.1, Apache2 and php 4.3.0. I have added a
 > line in httpd.conf - "AddType application/x-hhtpd-php .php3". The line is
 > in the end of the config-file.
 >
 > Would this be enough to get php to work? I can't read php-files, and I am
 > not sure where to put the files either. The Apache root dir is
 > var/www/html. Is that the right place to put the php3-files?
 >
 > --
 > mvh Jan Vidar
<font color=purple> > <a style='text-decoration: underline;' href="http://www.janvidar.com</font" target="_blank">www.janvidar.com</font</a>><!-- ~MESSAGE_AFTER~ -->

 >> Stay informed about: Apache and php 
Back to top
Login to vote
janvidar_remth

External


Since: Aug 24, 2003
Posts: 3



(Msg. 3) Posted: Sun Aug 24, 2003 12:45 pm
Post subject: Re: Apache and php [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

PaZ wrote:

 > Try:
 >
 >
 > A quick edit of a couple of Apache config files is all that' s needed to
 > alert Apache to PHP. First, open up /etc/httpd/conf/httpd.conf and add the
 > following lines
 >
 > LoadModule php3_module libexex/libphp3.so
 >
 > AddModule mod_php3.c
 >
 > Make sure to check the LoadModule and AddModule sections of the conf file
 > to make sure these lines aren' t already there -- doubles are bad. Next,
 > edit the /etc/httpd/conf/srm.conf and add the following lines
 >
 > AddType application/x-httpd-php3 .php3
 >
 > AddType application/x-httpd-php3-source .phps
 >
 > to tell Apache to use PHP on any file with a .php3 extension.
 >
 > Last up -- restart Apache and you should be good to go
 >
 > /etc/rc.d/init.d/httpd restart


Thanks! Smile

I have 2 problems now: There are 2 conf.files: http2.conf and httpd.conf. In
the file httpd.conf these lines are already there, but not in the
http2.conf.

The other problem: I can't seem to find srm.conf file anywhere. SHould I
make one? How?

Thx in advance Smile

- Jan Vidar<!-- ~MESSAGE_AFTER~ -->
 >> Stay informed about: Apache and php 
Back to top
Login to vote
fuckoffspammer

External


Since: Aug 25, 2003
Posts: 1



(Msg. 4) Posted: Mon Aug 25, 2003 9:34 pm
Post subject: Re: Apache and php [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

This page will tell you all you need to know
<a style='text-decoration: underline;' href="http://www.php.net/manual/en/install.apache2.php" target="_blank">http://www.php.net/manual/en/install.apache2.php</a>


On Sun, 24 Aug 2003 00:18:38 +0200, "Jan V.Pedersen"
<janvidar_remThis_ DeleteThis @start.no> wrote:

 >I have just innstalled Mandrake 9.1, Apache2 and php 4.3.0. I have added a
 >line in httpd.conf - "AddType application/x-hhtpd-php .php3". The line is
 >in the end of the config-file.
 >
 >Would this be enough to get php to work? I can't read php-files, and I am
 >not sure where to put the files either. The Apache root dir is
 >var/www/html. Is that the right place to put the php3-files?<!-- ~MESSAGE_AFTER~ -->
 >> Stay informed about: Apache and php 
Back to top
Login to vote
Display posts from previous:   
Related Topics:
Apache 2 + PHP - Hello, are there still any issues about using Apache 2 with PHP? Is there a compatibility list somewhere around? Thanks, Florian -- Abkürzung unbekannt? ++ http://www.xgm.de +++

Apache::ASP - Has anybody used apache::ASP? On what platforms is it implemented? Is it working with COM components?

Apache doesn't start - When I try to start Apache, I got the following error: <32548> only one usage of each socket address <> is normally permitted. make_sock: could not bind to address 0.0.0.0:80. I've looked for answers all over the FAQ, bug report, manuals and...

Odd apache header (~~~~~~~~~~~~~~:) - Anyone know what this header is? My copy of apache returns it, and I've seen others do it too. Richard.

Apache error - I am using Solaris8, Weblogic 7sp2 and IBM HTTPD server. Getting the following error [error] READ_TIMEOUT [os error=0, line 199 of ../nsapi/Reader.cpp]: Any help is appreciated. Thanks
   Web Hosting Problem Solving Community! (Home) -> Apache All times are: Pacific Time (US & Canada) (change)
Page 1 of 1

 
You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum



[ Contact us | Terms of Service/Privacy Policy ]