RE: [users@httpd] PHP works but not PHP pages.

2014-03-16 Thread Michael Peters
I rebuilt PHP with "./configure --with-apxs2=/opt/httpd/bin/apxs --with-mysql --enable-mbstring --with-pdo-mysql --enable-pdo" which seems to have solved the remaining issue. I had come from a fully functional Apache 2.2 environment to the 2.4 and everything seemed to go to pot. I appreciate you

Re: [users@httpd] PHP works but not PHP pages.

2014-03-16 Thread Lester Caine
Michael Peters wrote: Now a new error comes up on the other: “Fatal error: Undefined class constant 'MYSQL_ATTR_USE_BUFFERED_QUERY' in /www/html/auditprotocol/includes/db-core.php on line 13” Which looks like a PDO problem and so far rebuilding PHP with PDO support has not worked. You need PDO_

RE: [users@httpd] PHP works but not PHP pages.

2014-03-16 Thread Michael Peters
Reconfiguring PHP with: "./configure --with-apxs2=/opt/httpd/bin/apxs --with-mysql --enable-mbstring --with-pdo-mysql" Seems to have fixed the error "Fatal error: Call to undefined function mb_detect_encoding() in /www/html/phpMyAdmin-4.1.8-all-languages/libraries/php-gettext/gettext.inc on line

Re: [users@httpd] PHP works but not PHP pages.

2014-03-16 Thread Steven Siebert
And, of course, the second error is complaining that your directory permissions are incorrect. According to you httpd.conf file you're running the httpd server with user/group daemon/daemon! That's probably not a good idea, assuming that's a system-created account (I've seen it created by linux i

Re: [users@httpd] PHP works but not PHP pages.

2014-03-16 Thread Steven Siebert
typo: mbstring extension. On Sun, Mar 16, 2014 at 1:37 PM, Steven Siebert wrote: > Looks like that pointed you to the answeryou need to install the > non-default mstring extension. > > http://www.php.net/manual/en/mbstring.installation.php > > > > On Sun, Mar 16, 2014 at 1:16 PM, Michael P

Re: [users@httpd] PHP works but not PHP pages.

2014-03-16 Thread Steven Siebert
Looks like that pointed you to the answeryou need to install the non-default mstring extension. http://www.php.net/manual/en/mbstring.installation.php On Sun, Mar 16, 2014 at 1:16 PM, Michael Peters < michael.pet...@lazarusalliance.com> wrote: > Call to undefined function mb_detect_encodin

Re: [users@httpd] PHP works but not PHP pages.

2014-03-16 Thread Lester Caine
Michael Peters wrote: I tried this: Try error_reporting(0); to disable errors ... What version of PHP was the code originally written for? It may be something like e_strict which is crashing the other pages. Trick is to add code to a working page until things crash. I normally end up adding

RE: [users@httpd] PHP works but not PHP pages.

2014-03-16 Thread Michael Peters
*I added your suggestion to the top of a phpMyAdmin index.php page which displayed this:* Fatal error: Call to undefined function mb_detect_encoding() in /www/html/phpMyAdmin-4.1.8-all-languages/libraries/php-gettext/gettext.inc on line 177 *And another PHP application:* Warning: session_s

RE: [users@httpd] PHP works but not PHP pages.

2014-03-16 Thread Michael Peters
What do you mean locally? Viewing any PHP page except for my test.php file returns a blank page. Viewing the source of any PHP page that is blank does not show anything. This is the contents of my test.php -Original Message- From: Eric Covener [mailto:cove...@gmail.com] Sent: Sunday, M

RE: [users@httpd] PHP works but not PHP pages.

2014-03-16 Thread Michael Peters
I tried this: And it shows a blank page. When I run this: It shows a functional PHP information page within any directory. No other PHP pages will display anything but blank pages. When I look at the page source, it is blank too. *From:* Steven Siebert [mailto:smsi...@gmail.c

Re: [users@httpd] PHP works but not PHP pages.

2014-03-16 Thread Steven Siebert
On Sun, Mar 16, 2014 at 11:25 AM, Michael Peters < michael.pet...@lazarusalliance.com> wrote: > y all PHP pages except for my test.php will not display? > > > > My fresh install from source of Apache 2.4.7 and PHP 5.5.10 > So you can display your test.php in the browser and not any other page?

Re: [users@httpd] PHP works but not PHP pages.

2014-03-16 Thread Eric Covener
On Sun, Mar 16, 2014 at 12:44 PM, Michael Peters wrote: > LoadModule php5_module modules/libphp5.so Sorry, the AddHandlers/AddTypes seem to be trying to do it. Must have typoed my search. What happens when you access a php file locally? -- Eric Covener cove...@gmail.com -

RE: [users@httpd] PHP works but not PHP pages.

2014-03-16 Thread Michael Peters
Isn't this doing it? LoadModule php5_module modules/libphp5.so -Original Message- From: Eric Covener [mailto:cove...@gmail.com] Sent: Sunday, March 16, 2014 9:12 AM To: users@httpd.apache.org Subject: Re: [users@httpd] PHP works but not PHP pages. On Sun, Mar 16, 2014 at 11:25 AM, Mich

Re: [users@httpd] PHP works but not PHP pages.

2014-03-16 Thread Eric Covener
On Sun, Mar 16, 2014 at 11:25 AM, Michael Peters wrote: > What I cannot figure out is why all PHP pages except for my test.php will > not display? I didn't see anywhere in your config where you configured Apache to do anything special for PHP. Normally this would be configuring fastcgi or mod_ph

[users@httpd] PHP works but not PHP pages.

2014-03-16 Thread Michael Peters
Apache is serving regular index.html and .html anything content fine. Apache is serving up all content that I have redirected to other ports like Nessus:8834 or OpenVAS:9392 just fine which are both PHP applications. I am able to run a test.php in any directory and verify my PHP build is working fi