kiwiheretic Posted October 4, 2012 Share Posted October 4, 2012 I'm using Apache 2.2 on windows 7. As far as I can tell both Apache, PHP 5.2.17 have installed successfully. I am running an older version of MySQL 5.1 which I have had installed for a long time. When I run C:\> php -m I get the following output: C:\Users\Glenn>php -m bcmathcalendarcom_dotnetctypedatedomfilterftphashiconvjsonlibxmlmysqlmysqliodbcpcreReflectionsessionSimpleXMLsocketsSPLstandardtokenizerwddxxmlxmlreaderxmlwriterzlib [Zend Modules] So I am presuming this means that mysql is enabled in my php install. However when I try to create a fresh installation of phpbb3 it will show the installation screens but it says that mysql is not an available option. I get the same problem when looking at the output for phpinfo(); It seems as though mysql is not listed by phpinfo() when invoked from apache. Is it possible that the precompiled binaries for windows have somehow disabled mysql support??? This is part of the output from phpinfo when run from the command line: Directive => Local Value => Master Valuemysql.allow_persistent => On => Onmysql.connect_timeout => 60 => 60mysql.default_host => no value => no valuemysql.default_password => no value => no valuemysql.default_port => no value => no valuemysql.default_socket => no value => no valuemysql.default_user => no value => no valuemysql.max_links => Unlimited => Unlimitedmysql.max_persistent => Unlimited => Unlimitedmysql.trace_mode => Off => Off mysqli MysqlI Support => enabledClient API library version => 5.0.51aClient API header version => 5.0.51aMYSQLI_SOCKET => /tmp/mysql.sock Directive => Local Value => Master Valuemysqli.default_host => no value => no valuemysqli.default_port => 3306 => 3306mysqli.default_pw => no value => no valuemysqli.default_socket => no value => no valuemysqli.default_user => no value => no valuemysqli.max_links => Unlimited => Unlimitedmysqli.reconnect => Off => Off The whole output can be seen here: [color=#181818][font=Consolas, Menlo, Monaco, 'Lucida Console', 'Liberation Mono', 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', monospace, serif][size=3][background=rgb(255, 255, 239)]http://pastebin.com/embed_iframe.php?i=sBADc4CV[/background][/size][/font][/color] [color=#181818][font=Consolas, Menlo, Monaco, 'Lucida Console', 'Liberation Mono', 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', monospace, serif][size=3][background=rgb(255, 255, 239)]Any ideas why this should work from the command line but not from inside Apache?[/background][/size][/font][/color] [color=#181818][font=Consolas, Menlo, Monaco, 'Lucida Console', 'Liberation Mono', 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', monospace, serif][size=3][background=rgb(255, 255, 239)]Thanks in advance[/background][/size][/font][/color][color=#181818][font=Consolas, Menlo, Monaco, 'Lucida Console', 'Liberation Mono', 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', monospace, serif][size=3][background=rgb(255, 255, 239)]KiwiHeretic[/background][/size][/font][/color] Quote Link to comment Share on other sites More sharing options...
kiwiheretic Posted October 4, 2012 Author Share Posted October 4, 2012 Ok, I think I figured it out myself. It seems as long as you put this line in httpd.conf PHPIniDir "C:/PHP" LoadFile "C:/PHP/libmysql.dll" LoadModule php5_module "C:/PHP/php5apache2_2.dll" The line that was preventing it from recognising and loading MySQL from Apache was LoadFile "C:/PHP/libmysql.dll" which I added in. This after hours of frustration. I found it because there was a similar example with postgresql and I adapted it for MySQL. This should really go in the phpbb3 FAQ for windows installs if I can ever find out where they keep it. Quote Link to comment 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.