public inbox for gentoo-user@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-user]  php + apache
@ 2006-04-01 16:32 James
  2006-04-01 16:40 ` Michael Sullivan
  0 siblings, 1 reply; 8+ messages in thread
From: James @ 2006-04-01 16:32 UTC (permalink / raw
  To: gentoo-user

Hello,

Ive installed php-4.4.2 and apache2. It's mostly working except for
when I pull up the url of a php file, like
setup.php, I see the actual php code instead of the gui form that the
setup.php is suppose to render.

I know the file works as the software is also built on a debian system
and the indentical setup.php file work fine on debian + apache....

Any ideas what's wrong?


James

-- 
gentoo-user@gentoo.org mailing list



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

* Re: [gentoo-user]  php + apache
  2006-04-01 16:32 [gentoo-user] php + apache James
@ 2006-04-01 16:40 ` Michael Sullivan
  2006-04-01 19:46   ` [gentoo-user] " James
  0 siblings, 1 reply; 8+ messages in thread
From: Michael Sullivan @ 2006-04-01 16:40 UTC (permalink / raw
  To: gentoo-user

On Sat, 2006-04-01 at 16:32 +0000, James wrote:
> Hello,
> 
> Ive installed php-4.4.2 and apache2. It's mostly working except for
> when I pull up the url of a php file, like
> setup.php, I see the actual php code instead of the gui form that the
> setup.php is suppose to render.
> 
> I know the file works as the software is also built on a debian system
> and the indentical setup.php file work fine on debian + apache....
> 
> Any ideas what's wrong?
> 
> 
> James

Do you have "-D PHP4" on the APACHE2_OPTS line in /etc/conf.d/apache2?

-- 
gentoo-user@gentoo.org mailing list



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

* [gentoo-user]  Re: php + apache
  2006-04-01 16:40 ` Michael Sullivan
@ 2006-04-01 19:46   ` James
  2006-04-01 21:04     ` Stuart Herbert
  2006-04-01 21:15     ` Bryan Whitehead
  0 siblings, 2 replies; 8+ messages in thread
From: James @ 2006-04-01 19:46 UTC (permalink / raw
  To: gentoo-user

Michael Sullivan <michael <at> espersunited.com> writes:


> > Ive installed php-4.4.2 and apache2. It's mostly working except for
> > when I pull up the url of a php file, like
> > setup.php, I see the actual php code instead of the gui form that the
> > setup.php is suppose to render.

> > I know the file works as the software is also built on a debian system
> > and the indentical setup.php file work fine on debian + apache....
> > 
> > Any ideas what's wrong?

> Do you have "-D PHP4" on the APACHE2_OPTS line in /etc/conf.d/apache2?

Yes,

I've unmerged everthing the package used, and delete any remaining files.
Complete fresh installation in underway. If that does not fix it, I'll post
again....

thx,
James



-- 
gentoo-user@gentoo.org mailing list



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

* Re: [gentoo-user]  Re: php + apache
  2006-04-01 19:46   ` [gentoo-user] " James
@ 2006-04-01 21:04     ` Stuart Herbert
  2006-04-01 21:15     ` Bryan Whitehead
  1 sibling, 0 replies; 8+ messages in thread
From: Stuart Herbert @ 2006-04-01 21:04 UTC (permalink / raw
  To: gentoo-user

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

Hi James,

On Sat, 2006-04-01 at 19:46 +0000, James wrote:
> I've unmerged everthing the package used, and delete any remaining files.
> Complete fresh installation in underway. If that does not fix it, I'll post
> again....

A re-installation is unlikely to make any difference.  This isn't
Windows :)

When you get this problem, first of all make sure that you've restarted
Apache since adding the -D PHP4 line in /etc/conf.d/apache2.  Then make
absolutely sure that you've emptied your browser's cache.

That fixes this problem for most people.  If you still have a problem,
please come by and drop in #gentoo-php or #gentoo-apache on IRC.

Best regards,
Stu
-- 
Stuart Herbert                                         stuart@gentoo.org
Gentoo Developer                                  http://www.gentoo.org/
                                          http://blog.stuartherbert.com/

GnuGP key id# F9AFC57C available from http://pgp.mit.edu
Key fingerprint = 31FB 50D4 1F88 E227 F319  C549 0C2F 80BA F9AF C57C
--


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

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

* Re: [gentoo-user]  Re: php + apache
  2006-04-01 19:46   ` [gentoo-user] " James
  2006-04-01 21:04     ` Stuart Herbert
@ 2006-04-01 21:15     ` Bryan Whitehead
  2006-04-01 21:37       ` Martins
  2006-04-03 17:38       ` James
  1 sibling, 2 replies; 8+ messages in thread
From: Bryan Whitehead @ 2006-04-01 21:15 UTC (permalink / raw
  To: gentoo-user

Sounds like an apache.conf problem...

Of course it could be a stray php.so isn't linked correctly, try running revdep-rebuild?

On Sat, 1 Apr 2006, James wrote:

> Michael Sullivan <michael <at> espersunited.com> writes:
>
>
>>> Ive installed php-4.4.2 and apache2. It's mostly working except for
>>> when I pull up the url of a php file, like
>>> setup.php, I see the actual php code instead of the gui form that the
>>> setup.php is suppose to render.
>
>>> I know the file works as the software is also built on a debian system
>>> and the indentical setup.php file work fine on debian + apache....
>>>
>>> Any ideas what's wrong?
>
>> Do you have "-D PHP4" on the APACHE2_OPTS line in /etc/conf.d/apache2?
>
> Yes,
>
> I've unmerged everthing the package used, and delete any remaining files.
> Complete fresh installation in underway. If that does not fix it, I'll post
> again....
>
> thx,
> James
>
>
>
>

-- 
Bryan Whitehead
Email:driver@megahappy.net
-- 
gentoo-user@gentoo.org mailing list



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

* Re: [gentoo-user]  Re: php + apache
  2006-04-01 21:15     ` Bryan Whitehead
@ 2006-04-01 21:37       ` Martins
  2006-04-03 18:42         ` James
  2006-04-03 17:38       ` James
  1 sibling, 1 reply; 8+ messages in thread
From: Martins @ 2006-04-01 21:37 UTC (permalink / raw
  To: gentoo-user

On Sun, 02 Apr 2006 00:15:59 +0300, Bryan Whitehead <driver@megahappy.net>  
wrote:

> Sounds like an apache.conf problem...
>
> Of course it could be a stray php.so isn't linked correctly, try running  
> revdep-rebuild?

if so then /var/log/apache2/error_log should contain valuable info

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



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

* [gentoo-user]  Re: php + apache
  2006-04-01 21:15     ` Bryan Whitehead
  2006-04-01 21:37       ` Martins
@ 2006-04-03 17:38       ` James
  1 sibling, 0 replies; 8+ messages in thread
From: James @ 2006-04-03 17:38 UTC (permalink / raw
  To: gentoo-user

Bryan Whitehead <driver <at> megahappy.net> writes:


> Sounds like an apache.conf problem...

Well, I've got a virgin installation, and followed proven
steps. Nothing complex here yet, so I do not think that's
a problem but still, I'll diff it against some previous 
files, as maybe there is a typo....


> Of course it could be a stray php.so isn't linked correctly, try running
revdep-rebuild?

As many times as I've used this, I did not think to do so now.
checking...........

broken /bin/efibootmgr (requires  libpci.so.2)
  broken /lib/libnss_db-2.2.so (requires  libdb3.so.3)


there fixed now, but that does not fix the problem...


thx,

James

-- 
gentoo-user@gentoo.org mailing list



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

* [gentoo-user]  Re: php + apache
  2006-04-01 21:37       ` Martins
@ 2006-04-03 18:42         ` James
  0 siblings, 0 replies; 8+ messages in thread
From: James @ 2006-04-03 18:42 UTC (permalink / raw
  To: gentoo-user

Martins <mar <at> ml.lv> writes:


> > Sounds like an apache.conf problem...

apache and php problem...

> > Of course it could be a stray php.so isn't linked correctly, try running  
> > revdep-rebuild?

> if so then /var/log/apache2/error_log should contain valuable info

'tail -f' on this file does reveal some information.
[Mon Apr 03 10:07:23 2006] [error] [client 192.168.2.9] File does not exist:
/var/www/localhost/htdocs/jffnms
[Mon Apr 03 10:07:23 2006] [error] [client 192.168.2.9] File does not exist:
/var/www/localhost/htdocs/jffnms
[Mon Apr 03 10:07:24 2006] [notice] child pid 17488 exit signal Segmentation
fault (11)
[Mon Apr 03 10:07:24 2006] [notice] child pid 17517 exit signal Segmentation
fault (11)


note the files do exist....



Backgound: I have 2 sytems, both have had all apache, php etc removed
and a fresh install (obviously not correctly or completely purged) using:

emerge unmerge apache; emerge unmerge dev-lang/php-4*;
emerge unmerge dev-lang/php-5*; emerge unmerge postgresql;
emerge unmerge jffnms; emerge unmerge rrdtool;
emerge unmerge graphviz; emerge unmerge nmap; emerge unmerge fping;
emerge unmerge mysql


One system installs just fine, crystal and jffnms is working to the
point of getting the http://192.168.2.22/htdocs/admin/setup.php
to show up with no errors...

On the second system I can get to the 
http://192.168.2.9 page and the 
http://192.168.2.22/htdocs/admin page but non of the *.php files work.

The basic probem on the Sheet system is multiple config files:
Sheet:/etc/apache2# eix dev-lang/php
* dev-lang/php
     Available versions:  4.3.11-r5 4.4.2 5.0.5-r5 5.1.2
     Installed:           4.4.2
     Homepage:            http://www.php.net/
     Description:         The PHP language runtime engine.


(on sheet)
Sheet:/etc/php4/apache/php.ini
versus
Sheet:/etc/php/apache2-php4/php.ini
versus
Sheet:/etc/php4/apache2-php5/php.ini

Also
/etc/apache
/etc/init.d/apache
versus
/etc/apache2
/etc/init.d/apache2

versus (on crystal)
crystal:/etc/php/apache2-php4
/etc/php/apache2-php4/php.ini
and
/etc/apache2
/etc/init.d/apache

...................................
That's right I have 3 different php.ini files on Sheet
despite only having php-4.4.2 installed. Also on crystal there
is not apache dir, just apache2.

So can I'm going to remove the all /etc/apache* dir and 
all php dirs that are left after unmerging these packages
again. 

emerge -pv jffnms should then correctly call for just the
packages that are needed.   /etc/portage/package.use
are identical on these systems.

I've already tried this, only without manually eliminating
any and all extra dirs, and it did not fix the problem
on Sheet but did fix the problem on Crystal.

I've also managed to discover the correct use flag settings
that jffnms needs fom php, and I'll post to bugs.gentoo.org
when I can get a clean installation working on sheet.

Anything I've missed? I guess I relied on the unmerge process too
much.... to properly clean up apache or php installations?

James






-- 
gentoo-user@gentoo.org mailing list



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

end of thread, other threads:[~2006-04-03 18:49 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-04-01 16:32 [gentoo-user] php + apache James
2006-04-01 16:40 ` Michael Sullivan
2006-04-01 19:46   ` [gentoo-user] " James
2006-04-01 21:04     ` Stuart Herbert
2006-04-01 21:15     ` Bryan Whitehead
2006-04-01 21:37       ` Martins
2006-04-03 18:42         ` James
2006-04-03 17:38       ` James

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