Welcome to MobyThreads.com!
FAQFAQ      ProfileProfile    Private MessagesPrivate Messages   Log inLog in
All support for the MobyThreads Threaded phpBB MOD can now be found on welsolutions at this forum

Apache and php

 
   Web Hosting and Web Master Forums (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_.RemoveThis@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::ASP - Has anybody used apache::ASP? On what platforms is it implemented? Is it working with COM components?

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 +++

Books on Apache 2.0 - Goodevening people, Can anybody advise me on a good book on Apache 2.0 ? It should be usefull for beginners but also for times to come when I'm more advanced in using Apache. And also it should cover incorporating PHP, MySql, things like that. k.rgd.....

Apache Users - I've set up apache 2 like this <IfModule mod_userdir.c> UserDir public_html </IfModule> <Directory /home/*/public_html> Allow from all Order allow,deny </Directory> when a user goes to www.mydomanin.com/~user/ it sa...

Where does apache put log files? - Im trying to locate my websites log files so i can set up some free website stats software I have ftp access to the server and found a folder called: /httpd-2.0.46 Im guessing this is the folder for the apache2 installation?. My website virtual info..
   Web Hosting and Web Master Forums (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 ]