public inbox for gentoo-user@lists.gentoo.org
 help / color / mirror / Atom feed
* Re: [gentoo-user] Can't start apache [solved]
  2007-05-17  9:00         ` Randy Barlow
@ 2007-05-17  9:15           ` Johannes Skov Frandsen
  2007-05-17 10:05             ` Johannes Skov Frandsen
  0 siblings, 1 reply; 6+ messages in thread
From: Johannes Skov Frandsen @ 2007-05-17  9:15 UTC (permalink / raw
  To: gentoo-user

Randy Barlow skrev:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> Johannes Skov Frandsen wrote:
>   
>> The server obviously don't s start, but I get no error messages and I
>> can't locate the server log (httpd.conf suggest they are located in
>> /usr/lib/apache2/
>> but htere is no logs there).
>>     
>
> The default location for Gentoo is /var/log/apache2 so check in there to
> see if there are any errors.
>
>   
I have this error in my log:

[Thu May 17 10:30:22 2007] [alert] (EAI 2) Name or service not known: 
mod_unique$
Configuration Failed

so i search google and found this page:
http://www.linuxforums.org/forum/redhat-fedora-linux-help/16212-apache-webserver.html

and added this line to my hosts file:

127.0.0.1 localhost.localdomain localhost

apache starts and everybody is happy :-)

Thanks for the pointer...

Joe
-- 
gentoo-user@gentoo.org mailing list



^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [gentoo-user] Can't start apache [solved]
  2007-05-17  9:15           ` [gentoo-user] Can't start apache [solved] Johannes Skov Frandsen
@ 2007-05-17 10:05             ` Johannes Skov Frandsen
  2007-05-17 11:21               ` Boyd Stephen Smith Jr.
  0 siblings, 1 reply; 6+ messages in thread
From: Johannes Skov Frandsen @ 2007-05-17 10:05 UTC (permalink / raw
  To: gentoo-user

Johannes Skov Frandsen skrev:
> Randy Barlow skrev:
>> -----BEGIN PGP SIGNED MESSAGE-----
>> Hash: SHA1
>>
>> Johannes Skov Frandsen wrote:
>>  
>>> The server obviously don't s start, but I get no error messages and I
>>> can't locate the server log (httpd.conf suggest they are located in
>>> /usr/lib/apache2/
>>> but htere is no logs there).
>>>     
>>
>> The default location for Gentoo is /var/log/apache2 so check in there to
>> see if there are any errors.
>>
>>   
> I have this error in my log:
>
> [Thu May 17 10:30:22 2007] [alert] (EAI 2) Name or service not known: 
> mod_unique$
> Configuration Failed
>
> so i search google and found this page:
> http://www.linuxforums.org/forum/redhat-fedora-linux-help/16212-apache-webserver.html 
>
>
> and added this line to my hosts file:
>
> 127.0.0.1 localhost.localdomain localhost
>
> apache starts and everybody is happy :-)
>
> Thanks for the pointer...
>
> Joe
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?

I have php 5.2.2 istalled.

can't seem to find the right explenation for this behavior searching 
google...any ideas any one?

Joe



-- 
gentoo-user@gentoo.org mailing list



^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [gentoo-user] Can't start apache [solved]
  2007-05-17 10:05             ` Johannes Skov Frandsen
@ 2007-05-17 11:21               ` Boyd Stephen Smith Jr.
  2007-05-17 11:28                 ` Johannes Skov Frandsen
  0 siblings, 1 reply; 6+ messages in thread
From: Boyd Stephen Smith Jr. @ 2007-05-17 11:21 UTC (permalink / raw
  To: gentoo-user

[-- Attachment #1: Type: text/plain, Size: 1151 bytes --]

On Thursday 17 May 2007, Johannes Skov Frandsen <joe@omesc.com> 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.

-- 
Boyd Stephen Smith Jr.                     ,= ,-_-. =. 
bss03@volumehost.net                      ((_/)o o(\_))
ICQ: 514984 YM/AIM: DaTwinkDaddy           `-'(. .)`-' 
http://iguanasuicide.org/                      \_/     

[-- Attachment #2: This is a digitally signed message part. --]
[-- Type: application/pgp-signature, Size: 189 bytes --]

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [gentoo-user] Can't start apache [solved]
  2007-05-17 11:21               ` Boyd Stephen Smith Jr.
@ 2007-05-17 11:28                 ` Johannes Skov Frandsen
  2007-05-17 12:33                   ` Johannes Skov Frandsen
  0 siblings, 1 reply; 6+ messages in thread
From: Johannes Skov Frandsen @ 2007-05-17 11:28 UTC (permalink / raw
  To: gentoo-user

Boyd Stephen Smith Jr. wrote:
> 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
I installed php first.... so you could be right about the 
recompiling.... I try that and get back to you
 with the result

Joe
-- 
gentoo-user@gentoo.org mailing list



^ permalink raw reply	[flat|nested] 6+ messages in thread

* RE: [gentoo-user] Can't start apache [solved]
@ 2007-05-17 11:36 burlingk
  0 siblings, 0 replies; 6+ messages in thread
From: burlingk @ 2007-05-17 11:36 UTC (permalink / raw
  To: gentoo-user



> -----Original Message-----
> From: Boyd Stephen Smith Jr. [mailto:bss03@volumehost.net] 
> Sent: Thursday, May 17, 2007 8:21 PM
> To: gentoo-user@lists.gentoo.org
> Subject: Re: [gentoo-user] Can't start apache [solved]
> 
> 
> On Thursday 17 May 2007, Johannes Skov Frandsen <joe@omesc.com> 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
 


--
gentoo-user@gentoo.org mailing list



^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [gentoo-user] Can't start apache [solved]
  2007-05-17 11:28                 ` Johannes Skov Frandsen
@ 2007-05-17 12:33                   ` Johannes Skov Frandsen
  0 siblings, 0 replies; 6+ messages in thread
From: Johannes Skov Frandsen @ 2007-05-17 12:33 UTC (permalink / raw
  To: gentoo-user

Johannes Skov Frandsen wrote:
> Boyd Stephen Smith Jr. wrote:
>> 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
> I installed php first.... so you could be right about the 
> recompiling.... I try that and get back to you
> with the result
>
> Joe
Worked :-)

Thanks
-- 
gentoo-user@gentoo.org mailing list



^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2007-05-17 12:41 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-05-17 11:36 [gentoo-user] Can't start apache [solved] burlingk
  -- strict thread matches above, loose matches on Subject: below --
2007-05-04 10:37 [gentoo-user] xorg-7.2 and ati-drivers-8.32.5 Remy Blank
     [not found] ` <f2d5ap$t7j$1@sea.gmane.org>
2007-05-16 20:53   ` [gentoo-user] Re: xorg-7.2 and ati-drivers-8.32.5 - Thank you Gentoo devs Remy Blank
2007-05-16 21:01     ` Francisco Rivas
2007-05-17  8:39       ` [gentoo-user] Can't start apache Johannes Skov Frandsen
2007-05-17  9:00         ` Randy Barlow
2007-05-17  9:15           ` [gentoo-user] Can't start apache [solved] Johannes Skov Frandsen
2007-05-17 10:05             ` Johannes Skov Frandsen
2007-05-17 11:21               ` Boyd Stephen Smith Jr.
2007-05-17 11:28                 ` Johannes Skov Frandsen
2007-05-17 12:33                   ` Johannes Skov Frandsen

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox