gkw1975 Posted August 6, 2014 Share Posted August 6, 2014 Hi there, I'm new to all this so I've been following instructions from various sites and books. So far I have installed Apache, PHP and mysql, however when I browse to localhost/test.php (created to view phpinfo() through the browser) i can't see mysql or mysqli only the mysqlnd. Here is an overview of software I've installed, OS and things I've added so far; OS ver Windows7 Professional 32-bit VM Apache ver 2.2.25-win32 PHP ver - 5.4.31 Win32 VC9 Mysql - 5.6.19 Ammended httpd.conf to include; LoadModule php5_module "c:/php/php5apache2_2.dll" AddType application/x-httpd-php .php PHPIniDir "C:/php" Ammended php.ini file to include; extension=php_mysql.dll extension=php_mysqli.dll extension=php_pdo_mysql.dll added following to system variable PATH; c:\php C:\Program Files\MySQL\MySQL Server 5.6\lib (- this was for libmysql.lib) Renamed my-default.ini to my.ini within C:\Program Files\MySQL\MySQL Server 5.6\ phpinfo() shows Configuration File (php.ini) Path as C:\Windows & Loaded configuration file as C:\php\php.ini Changed the "/" in LoadModule php5_module "c:/php/php5apache2_2.dll" & PHPIniDir "C:/php" to "\" but this did not make any difference. After every change I either stop/start both Apache2.2 & Mysql5.6 services or reboot the VM, but phpinf0() still only shows mysqlnd but not mysql or mysqli. I'm at a loss now as researching it only seems to bring up links repeating everything I have already tried. Any help would be greatly appreciated. Many thanks Quote Link to comment https://forums.phpfreaks.com/topic/290304-unable-to-view-mysqlmysqli-under-phpinfo/ Share on other sites More sharing options...
mac_gyver Posted August 6, 2014 Share Posted August 6, 2014 check your web server error log to see if there is more information. i suspect a permission problem for the folder(s), i.e. the user the web server is running under doesn't have permission to access the needed folders. Quote Link to comment https://forums.phpfreaks.com/topic/290304-unable-to-view-mysqlmysqli-under-phpinfo/#findComment-1487017 Share on other sites More sharing options...
Ch0cu3r Posted August 6, 2014 Share Posted August 6, 2014 I'm at a loss now as researching it only seems to bring up links repeating everything I have already tried. The only thing I can suggest is for you to set the extension_dir directive to the full path to your PHP extension folder, eg extension_dir = "C:/php/ext" Also enable these directives display_errors = On display_startup_errors = On If PHP is having issues loading extensions it should pop up an error dialog when Apache is (re)started. Quote Link to comment https://forums.phpfreaks.com/topic/290304-unable-to-view-mysqlmysqli-under-phpinfo/#findComment-1487024 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.