Kaizard Posted July 16, 2009 Share Posted July 16, 2009 Before I get down to my queries I must notify that I have already installed Apache Server 2.2, PHP 5.3.0, and MySQL 5.1. I've also configured the 'httpd.conf' and 'php.ini' files. I have some questions regarding the 'php.ini' file. At first, I put the PHP.INI file in the WINDOWS directory. The server was running fine, but, I couldn't connect to MySQL, I kept receiving errors like 'undefined function, etc'. According to the instruction that I read, If I'm using Apache Server v2 or later I don't need to put the PHP.INI file in the WINDOWS directory. When I transferred the PHP.INI file from the WINDOWS dir to my PHP5 folder (C:\PHP5) I was able to connect and view queries. I think everything was running fine except that ERROR DIALOGS started to keep popping out. The dialogs were all 'httpd.exe - Unable To Locate Component: This application has failed to start because <DLL> was not found. Re-installing...so on'. The dll's were, LIBEAY32.dll; php_mbstring.dll; icuuc36.dll; SSLEAY32.dll; OCI.dll; LIBPQ.dll; libcs.dll, which all of them are located inside my PHP5 directory together with the PHP.INI. Everything is working well except these dialogs keep popping out every time the Apache server starts. How do I fix this? Thank You. Quote Link to comment https://forums.phpfreaks.com/topic/166170-pop-ups-on-server-run-please-help/ Share on other sites More sharing options...
corbin Posted July 18, 2009 Share Posted July 18, 2009 You need to correctly set the extension_dir variable in your php.ini file. Quote Link to comment https://forums.phpfreaks.com/topic/166170-pop-ups-on-server-run-please-help/#findComment-877533 Share on other sites More sharing options...
wildteen88 Posted July 18, 2009 Share Posted July 18, 2009 You should keep all files that come with PHP in C:/PHP5. Now add PHP to PATH Environment Variable. Moveing files outside of PHP installation folder can cause more issues. For extensions to load correctly you need to configure the extension_dir directive to point to the ext folder, eg extension_dir = "C:/PHP5/ext" Save php.ini and restart Apache for changes to take affect. Quote Link to comment https://forums.phpfreaks.com/topic/166170-pop-ups-on-server-run-please-help/#findComment-877542 Share on other sites More sharing options...
Kaizard Posted July 21, 2009 Author Share Posted July 21, 2009 You should keep all files that come with PHP in C:/PHP5. Now add PHP to PATH Environment Variable. Moveing files outside of PHP installation folder can cause more issues. For extensions to load correctly you need to configure the extension_dir directive to point to the ext folder, eg extension_dir = "C:/PHP5/ext" Save php.ini and restart Apache for changes to take affect. Thank you, I'll take note of that and see if it's the cause. Although, the dll's that's been mentioned were not extensions. In the "httpd.conf" file, I put the line: PhpIniDir "C:/PHP5". This is correct right? I can't think of any reason why those pop ups show. I mean, the dll's that were mentioned are all inside "C:/PHP5". And the fact that the server runs ok, I can communicate with MySQL with PHP is what confuses me more. Quote Link to comment https://forums.phpfreaks.com/topic/166170-pop-ups-on-server-run-please-help/#findComment-879296 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.