> -----Original Message-----
> From: Boyd Stephen Smith Jr. [mailto:[EMAIL PROTECTED] 
> Sent: Thursday, May 17, 2007 8:21 PM
> To: [email protected]
> Subject: Re: [gentoo-user] Can't start apache [solved]
> 
> 
> On Thursday 17 May 2007, Johannes Skov Frandsen <[EMAIL PROTECTED]> wrote 
> about 'Re: [gentoo-user] Can't start apache [solved]':
> > Well not entirley happy it turns out as I can't get apache 
> to handle 
> > php.
> >
> > I added '-D PHP5' to APACHE2_OPTS in /etc/conf.d/apache2
> >
> > but when I restart apache i get this error:
> >
> > # /etc/init.d/apache2 restart
> >  * Apache2 has detected a syntax error in your configuration files:
> > apache2: Syntax error on line 495 of 
> /etc/apache2/httpd.conf: Syntax 
> > error on li ne 4 of /etc/apache2/modules.d/70_mod_php5.conf: API 
> > module structure `php5_modu
> > le' in file /usr/lib/apache2/modules/libphp5.so is garbled - perhaps
> > this is not
> >  an Apache module DSO?
> 
> Did you install php before or after apache?  It probably needs to be 
> recompiled against your current version.  I'm stuck with a 
> mod_ruby that 
> gives the same error and won't recompile right now.

Apache uses a configuration file.  Within that configuration file you
can assign application types and script handlers.  That is the place to
handle the problem.  You do not have to install an Apache specific
module.  The Apache modules make things run much more quickly, by
partially implementing the language within the server, however it is
still possible to use without the specific modules.  Simply make sure
the CGI module is loaded.  If you have perl scripts that run properly,
then odds are you have everything you need installed to make PHP run
properly as long as you set the right options in the config file.  This
is of course assuming you have PHP installed.

Check out the FAQ on the PHP web site, or the Apache web site.  Both
sites have information on getting PHP running.  :)  Package managers are
great, but some things can be handled in a text editor. ^_^

----
Kenneth M. Burling Jr
 


--
[EMAIL PROTECTED] mailing list

Reply via email to