[gentoo-user] Re: php + apache
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
[gentoo-user] Re: php + apache
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
[gentoo-user] Re: php + apache
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
Re: [gentoo-user] Re: php + apache
Hi James, On Sat, 2006-04-01 at 19:46 +, 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 [EMAIL PROTECTED] 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 -- signature.asc Description: This is a digitally signed message part
Re: [gentoo-user] Re: php + apache
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:[EMAIL PROTECTED] -- gentoo-user@gentoo.org mailing list
Re: [gentoo-user] Re: php + apache
On Sun, 02 Apr 2006 00:15:59 +0300, Bryan Whitehead [EMAIL PROTECTED] 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