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 177”
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.
From: Steven Siebert [mailto:smsiebe@xxxxxxxxx]
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 in a fair number of /etc/password files). You should create a new local service account and use that only for httpd...then set the owner of the files to that account/group...as well as the appropriate permission.
On Sun, Mar 16, 2014 at 1:16 PM, Michael Peters <michael.peters@xxxxxxxxxxxxxxxxxxx> wrote: 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_start(): open(/var/lib/php/session/sess_5mnupuicb5tki5fg6cj9p5bdv6, O_RDWR) failed: Permission denied (13) in /www/html/auditprotocol/includes/init.php on line 10 Fatal error: Undefined class constant 'MYSQL_ATTR_USE_BUFFERED_QUERY' in /www/html/auditprotocol/includes/db-core.php on line 13 Warning: Unknown: open(/var/lib/php/session/sess_5mnupuicb5tki5fg6cj9p5bdv6, O_RDWR) failed: Permission denied (13) in Unknown on line 0 Warning: Unknown: Failed to write session data (files). Please verify that the current setting of session.save_path is correct (/var/lib/php/session) in Unknown on line 0
From: Steven Siebert [mailto:smsiebe@xxxxxxxxx]
On Sun, Mar 16, 2014 at 11:25 AM, Michael Peters <michael.peters@xxxxxxxxxxxxxxxxxxx> 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? <?php //at the top of your .php file error_reporting(E_ALL); //...your stuff
|