Date: Fri, 01 Nov 2002 16:33:01 +0200 From: Lefteris Tsintjelis <lefty@asda.gr> To: Rotaru Razvan <roti_343@yahoo.com> Cc: freebsd-questions@FreeBSD.ORG Subject: Re: regarding php installation Message-ID: <3DC2909D.FDE4C095@asda.gr> References: <20021101105444.31858.qmail@web11201.mail.yahoo.com>
next in thread | previous in thread | raw e-mail | index | archive | help
Hi, the httpd.conf should look like this: ... LoadModule php4_module libexec/apache/libphp4.so ^ Add "2" if u use apache v2 ... AddModule mod_php4.c ... <IfModule mod_php4.c> AddType application/x-httpd-php .php .php4 .php3 .phtml AddType application/x-httpd-php-source .phps </IfModule> ... That should work just fine. U probably forget the "AddModule...". Actually, looks like u have apache v2. Adding php4 to apache v1 took care automatically for me the first two statements but not the "AddType...", I had to manually add those. However, I am not sure how apache v2 behaves. U should check your docs just to make sure. Run an "apachectl configtest" just to make sure. Rotaru Razvan wrote: > > Hi, > > Thanks for all these good advices. I have one more question: > I added to httpd.conf the '<IfModule ...>' stuff as you said and it did > not work. > When I remove the if clause it works. In httpd conf i have the > following line: > > LoadModule php4_module libexec/apache2/libphp4.so > > What is the correct name in <IfModule ...> ? > > Thanks again > Razvan > > --- Lefteris Tsintjelis <lefty@asda.gr> wrote: > > DaleCo Help Desk wrote: > > > > > > From: "John Bleichert" <syborg@stny.rr.com> > > > To: "Rotaru Razvan" <roti_343@yahoo.com> > > > Cc: <freebsd-questions@FreeBSD.ORG> > > > Sent: Thursday, October 31, 2002 8:45 AM > > > Subject: Re: regarding php installation > > > > > > > On Thu, 31 Oct 2002, Rotaru Razvan wrote: > > > > > > > > > Date: Thu, 31 Oct 2002 06:41:45 -0800 (PST) > > > > > From: Rotaru Razvan <roti_343@yahoo.com> > > > > > To: freebsd-questions@FreeBSD.ORG > > > > > Subject: regarding php installation > > > > > > > > > > Hello, > > > > > > > > > > Well I have apache2+mod_php4 installed. Still my apache server > > > does not > > > > > execute php scripts (it just sends them as plain text). After > > > > > installing mod_php4 i didn't modify anything in httpd.conf. > > > > > Should I? As i can tell the module is loaded. Why is the server > > > not > > > > > running the scripts? > > > > > > > > > > Regards, > > > > > Razvan > > > > > > > > > > > > > Assuming it's the same setup as 1.2.x you need to tell the server > > > what > > > > type of files to interpret as php. See the comments in the file, > > > search it > > > > for 'php'. > > > > > > > > JB > > > > > > > > # John Bleichert > > > > > > That's pretty much it. Load_Module, Add_Module, > > > and AddType application should get it. Do your scripts have the > > > .php extension? > > > > Try adding the following in your httpd.conf: > > > > <IfModule mod_php4.c> > > AddType application/x-httpd-php .php .php4 .php3 .phtml > > AddType application/x-httpd-php-source .phps > > </IfModule> To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?3DC2909D.FDE4C095>