FAQ Search Today's Posts Mark Forums Read
» Video Reviews

» Linux Archive

Linux-archive is a website aiming to archive linux email lists and to make them easily accessible for linux users/developers.


» Sponsor

» Partners

» Sponsor

Go Back   Linux Archive > Debian > Debian User

 
 
LinkBack Thread Tools
 
Old 08-17-2010, 08:33 PM
Steven
 
Default apache2 php5 error

On Tue, 2010-08-17 at 16:00 -0400, Paul Cartwright wrote:
> I know I've had this error before, but I can't remember what fixed it. I've
> tried purging apache2 & php5, and reinstalling, same error..
> there is only 1 httpd.conf file under /etc and it is /etc/apache2/httpd.conf
> and it only has 1 line with libphp in it..
>
>
> paulandcilla:/etc/apache2# /etc/init.d/apache2 restart
> Restarting web server: apache2[Tue Aug 17 15:55:42 2010] [warn] module
> php5_module is already loaded, skipping
> [Tue Aug 17 15:55:42 2010] [warn] module php5_module is already loaded,
> skipping
> failed!
>
In Debian, Apache will load the modules which are listed in the
directory /etc/apache2/mods-enabled (symlinks to mods-available)
If I recall correctly, it will be enabled by default when you install
the libapache2-mod-php5 package (along with php5 and apache, also is the
case with php4 if you're using Lenny).

It seems like you have both the default symlink and a line in your
httpd.conf file.

regards,
Steven


--
To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
Archive: 1282077190.5805.5.camel@portable-steven.LAN">http://lists.debian.org/1282077190.5805.5.camel@portable-steven.LAN
 
Old 08-17-2010, 09:06 PM
Steve Kemp
 
Default apache2 php5 error

On Tue Aug 17, 2010 at 16:00:44 -0400, Paul Cartwright wrote:

> from httpd.conf:
> LoadModule php5_module /usr/local/apache2/modules/libphp5.so

Remove that line.

The debian way of loading modules is to use the tools:

a2enmod
a2dismod

These will create symlinks in /etc/apache2/mods-enabled appropriately
ensuring you never need to edit httpd.conf.

Steve
--
http://www.steve.org.uk/


--
To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
Archive: 20100817210623.GB6037@steve.org.uk">http://lists.debian.org/20100817210623.GB6037@steve.org.uk
 
Old 08-17-2010, 10:52 PM
Paul Cartwright
 
Default apache2 php5 error

On Tue August 17 2010, Steve Kemp wrote:
> On Tue Aug 17, 2010 at 16:00:44 -0400, Paul Cartwright wrote:
> > from httpd.conf:
> > LoadModule php5_module /usr/local/apache2/modules/libphp5.so
>
> Remove that line.
>
> The debian way of loading modules is to use the tools:
>
> a2enmod
> a2dismod
>
> These will create symlinks in /etc/apache2/mods-enabled appropriately
> ensuring you never need to edit httpd.conf.

a2enmod php5, the restarted apache2 and got this:
/etc/init.d/apache2 restart
Restarting web server: apache2 failed!

# tail /var/log/apac*/error.log

[Tue Aug 17 18:49:40 2010] [error] (2)No such file or directory: could not
open transfer log
file /disk2/pictures/www/${APACHE_LOG_DIR}/other_vhosts_access.log.
Unable to open logs



--
Paul Cartwright
Registered Linux user # 367800
Registered Ubuntu User #12459


--
To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
Archive: 201008171852.32839.debian@pcartwright.com">http://lists.debian.org/201008171852.32839.debian@pcartwright.com
 
Old 08-18-2010, 07:04 AM
"Steven"
 
Default apache2 php5 error

On Wed, August 18, 2010 09:06, Steve Kemp wrote:
> On Tue Aug 17, 2010 at 18:52:32 -0400, Paul Cartwright wrote:
>
>> # tail /var/log/apac*/error.log
>
> (This is good. Looking at error logs is the way you solve
> problems yourself.)
>
>> [Tue Aug 17 18:49:40 2010] [error] (2)No such file or directory: could
>> not
>> open transfer log
>> file /disk2/pictures/www/${APACHE_LOG_DIR}/other_vhosts_access.log.
>> Unable to open logs
>
> Seems like you need to either:
>
> a) Make the directory you've told it to save its logs in.
>
> b) Change it to log to a directory which exists. Perhaps
> /var/log/apache2?
>
Seems like the variable 'APACHE_LOG_DIR' isn't properly set in the config
(/etc/apache2/apache2.conf)
you might want to check that. The path
"/disk2/pictures/www/${APACHE_LOG_DIR}/other_vhosts_access.log" seems a
bit odd to me with that variable name...

Regards,
Steven


--
Rarely do people communicate; they just take turns talking.


--
To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
Archive: 44531.91.183.48.98.1282115057.squirrel@stevenleeuw .kwik.to">http://lists.debian.org/44531.91.183.48.98.1282115057.squirrel@stevenleeuw .kwik.to
 
Old 08-18-2010, 07:06 AM
Steve Kemp
 
Default apache2 php5 error

On Tue Aug 17, 2010 at 18:52:32 -0400, Paul Cartwright wrote:

> # tail /var/log/apac*/error.log

(This is good. Looking at error logs is the way you solve
problems yourself.)

> [Tue Aug 17 18:49:40 2010] [error] (2)No such file or directory: could not
> open transfer log
> file /disk2/pictures/www/${APACHE_LOG_DIR}/other_vhosts_access.log.
> Unable to open logs

Seems like you need to either:

a) Make the directory you've told it to save its logs in.

b) Change it to log to a directory which exists. Perhaps
/var/log/apache2?

Steve
--
http://www.steve.org.uk/


--
To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
Archive: 20100818070613.GA19324@steve.org.uk">http://lists.debian.org/20100818070613.GA19324@steve.org.uk
 
Old 08-18-2010, 11:07 AM
Paul Cartwright
 
Default apache2 php5 error

On Wed August 18 2010, Steven wrote:
> > * Seems like you need to either:
> >
> > * *a) Make the directory you've told it to save its logs in.
> >
> > * *b) Change it to log to a directory which exists. *Perhaps
> > * * /var/log/apache2?
>
> Seems like the variable 'APACHE_LOG_DIR' isn't properly set in the config
> (/etc/apache2/apache2.conf)
> you might want to check that. The path
> "/disk2/pictures/www/${APACHE_LOG_DIR}/other_vhosts_access.log" seems a
> bit odd to me with that variable name...

had to add a line in /etc/apache2/envvars:
export APACHE_LOG_DIR=/var/log/apache2

now it works. Never had to do that before, and I've ALWAYS been running
apache2 !! I've been serving my own personal website since I started using
Debian, and never had that problem before.

I just use that website to show friends & family pictures of our grand
daughter, and some SNOW pictures, TWO YEARS IN A ROW!!!!
http://paulandcilla.homelinux.org/

(dyndns hosted domain)
you have to understand, here in Georgia, we DON'T get SNOW on a regular
basis... or, we didn't USED to , before all that global warming started

thanks for your help & direction!
--
Paul Cartwright
Registered Linux user # 367800
Registered Ubuntu User #12459


--
To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
Archive: 201008180707.07684.debian@pcartwright.com">http://lists.debian.org/201008180707.07684.debian@pcartwright.com


Wed Aug 18 13:30:01 2010
Return-path: <redhat-list-bounces@redhat.com>
Envelope-to: tom@linux-archive.org
Delivery-date: Wed, 18 Aug 2010 13:20:34 +0300
Received: from mx3-phx2.redhat.com ([209.132.183.24]:49112 helo=mx01.colomx.prod.int.phx2.redhat.com)
by s2.java-tips.org with esmtp (Exim 4.69)
(envelope-from <redhat-list-bounces@redhat.com>)
id 1Olfl4-00023X-2G
for tom@linux-archive.org; Wed, 18 Aug 2010 13:20:34 +0300
Received: from lists01.pubmisc.prod.ext.phx2.redhat.com (lists01.pubmisc.prod.ext.phx2.redhat.com [10.5.19.33])
by mx01.colomx.prod.int.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id o7IB1FN3012128;
Wed, 18 Aug 2010 07:01:45 -0400
Received: from int-mx03.intmail.prod.int.phx2.redhat.com
(int-mx03.intmail.prod.int.phx2.redhat.com [10.5.11.16])
by lists01.pubmisc.prod.ext.phx2.redhat.com (8.13.8/8.13.8) with ESMTP
id o7IB1Dht014620 for <redhat-list@listman.util.phx.redhat.com>;
Wed, 18 Aug 2010 07:01:13 -0400
Received: from mx1.redhat.com (ext-mx10.extmail.prod.ext.phx2.redhat.com
[10.5.110.14])
by int-mx03.intmail.prod.int.phx2.redhat.com (8.13.8/8.13.8) with ESMTP
id o7IB18nj025744
for <redhat-list@redhat.com>; Wed, 18 Aug 2010 07:01:08 -0400
Received: from mailhost.chg ([212.170.226.193])
by mx1.redhat.com (8.13.8/8.13.8) with ESMTP id o7IB0wCu031585
for <redhat-list@redhat.com>; Wed, 18 Aug 2010 07:00:58 -0400
Received: from Unknown ([10.31.34.73] helo=chguadalquivir.es)
by mailhost.chg with SMTP id oCxpgKKX03616;
Wed, 18 Aug 2010 12:59:51 +0200
Received: (qmail 30574 invoked by uid 509); 18 Aug 2010 10:51:18 -0000
Received: from unknown (HELO ?127.0.0.1?) (10.31.32.85)
by minilla.chg with SMTP; 18 Aug 2010 10:51:18 -0000
Message-ID: <4C6BBB26.2050908@chguadalquivir.es>
Date: Wed, 18 Aug 2010 12:51:18 +0200
From: =?ISO-8859-1?Q?"Francisco_J._Márquez_Gómez"? <fjmarquez@chguadalquivir.es>
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; es-ES;
rv:1.9.2.8) Gecko/20100802 Lightning/1.0b2 Thunderbird/3.1.2
MIME-Version: 1.0
To: General Red Hat Linux discussion list <redhat-list@redhat.com>
Subject: Re: Compile new kernel with same configuration
References: <4C6BA16E.10702@chguadalquivir.es>
<AANLkTinNqpCJJvMtKZR131Su3UEi8-oPVnoK1MS82xnb@mail.gmail.com>
In-Reply-To: <AANLkTinNqpCJJvMtKZR131Su3UEi8-oPVnoK1MS82xnb@mail.gmail.com>
X-SpamTest-Version: SMTP-Filter Version 3.0.0 [0284], KAS30/Release
X-SpamTest-Envelope-From: fjmarquez@chguadalquivir.es
X-SpamTest-Info: Profiles 15240 [Aug 18 2010]
X-SpamTest-Info: {HEADERS: 7-bit header Content-Type found with 8-bit header
Content-Transfer-Encoding}
X-SpamTest-Method: none
X-SpamTest-Rate: 10
X-SpamTest-Status: Not detected
X-SpamTest-Status-Extended: not_detected
X-SpamTest-Version: SMTP-Filter Version 3.0.0 [0285], KAS30/SDK/Release
X-Anti-Virus: Kaspersky Mail Gateway, version: 5.6.28/RELEASE,
bases: 20100818T005429 #4138097, check: 20100818 clean
X-RedHat-NoPTR: 212.170.226.193 has sent a message and has no valid PTR record
X-RedHat-Spam-Score: 1.273 * (RDNS_NONE,SPF_PASS)
X-Scanned-By: MIMEDefang 2.67 on 10.5.11.16
X-Scanned-By: MIMEDefang 2.67 on 10.5.110.14
X-loop: redhat-list@redhat.com
X-BeenThere: redhat-list@redhat.com
X-Mailman-Version: 2.1.12
Precedence: junk
Reply-To: General Red Hat Linux discussion list <redhat-list@redhat.com>
List-Id: General Red Hat Linux discussion list <redhat-list.redhat.com>
List-Unsubscribe: <https://www.redhat.com/mailman/options/redhat-list>,
<mailto:redhat-list-request@redhat.com?subject=unsubscribe>
List-Archive: <https://www.redhat.com/archives/redhat-list>
List-Post: <mailto:redhat-list@redhat.com>
List-Help: <mailto:redhat-list-request@redhat.com?subject=help>
List-Subscribe: <https://www.redhat.com/mailman/listinfo/redhat-list>,
<mailto:redhat-list-request@redhat.com?subject=subscribe>
Content-Transfer-Encoding: quoted-printable
Content-Type: text/plain; charset="iso-8859-1"; Format="flowed"
Sender: redhat-list-bounces@redhat.com
Errors-To: redhat-list-bounces@redhat.com

Thank you very much.

I downloaded the latest stable kernel from kernel.org and I can't apply
same config file, due to some parameters are differents or not recognizes.

Where I can download official RHEL5 Kernel sourcecode? I don't find the
kernel-source package via "yum search".

I have found this ftp:
ftp://ftp.redhat.com/pub/redhat/linux/enterprise/5Server/en/os/SRPMS/

but when I install the .src.rpm package I found many .patch files, not
the source code "as it".

Regards,
F.J

El 18/08/2010 11:36, Romeo Theriault escribió:
> 2010/8/18 "Francisco J. Márquez Gómez"<fjmarquez@chguadalquivir.es>
>
>> Hi,
>>
>> I've modified the value of a constant inside of kernel and now I need
>> compile the kernel for use this modification.
>>
>> But I need that all configuration and kernel setting keep as in current
>> kernel.
>>
>> How can I compile new kernel, apply same setting and select this kernel for
>> run system with it?
>>
>> I'm using RHEL 5.5 with linux 2.6.18-194.8.1.el5 #1 SMP x86_64 GNU/Linux
>>
> You can find your current kernels config file that holds all the kernel
> settings used for it when compiled in your /boot dir. Yours should be named
> 'config-2.6.18-194.8.1.el5' . Just compile your kernel with this config
> file. This link should help you with the details:
> http://wiki.centos.org/HowTos/Custom_Kernel

--

Francisco J. Márquez Gómez
Servicio de Informática (Área de sistemas)
Confederación Hidrográfica del Guadalquivir
Tel.: 954.348.778
fjmarquez@chguadalquivir.es
www.chguadalquivir.es

--
redhat-list mailing list
unsubscribe mailto:redhat-list-request@redhat.com?subject=unsubscribe
https://www.redhat.com/mailman/listinfo/redhat-list
 

Thread Tools




All times are GMT. The time now is 06:58 AM.

VBulletin, Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright ©2007 - 2008, www.linux-archive.org