brainfreeze Posted July 29, 2009 Share Posted July 29, 2009 I am using Windows XP. I have no prior experience in PHP, MYsql, Apache and phpMyadmin. Installed : 1.Apache2. It is running okay.(C:\Program Files\Apache Group) 2.MySql. I guess it is okay as my dreamweaver connects. (C:\Program Files\MySQL) 3.PHP version 5.2.10 (C:\Program Files\PHP) 4.phpMyAdmin-3.2.0.1(C:\Program Files\Apache Group\Apache2\htdocs) cut and pasted files here. --I was hoping to work with phpMyAdmin-- This is my problem- When I type in the browser directory http://localhost/phpmyadmin, a Opening dialog box appears indicating: You have chosen to open which is a: application/x-http-php from:http//localhost what should Firefox do with this file? When I select the Browse with Fireffox, it downloads a FLV file. The page will then display: File Not Found Firefox can't find the file at /C:/DOCUME~1/dominic/LOCALS~1/Temp/navigation.php<?php echo $url_query; ?>. When my mouse rollover the browser tab it reads: phpmyadmin<php echo PMA_VERSION; ?><?php echo htmlspecialchars($HTTP_HOST); ?> The browser directory will then read: file:///C:/DOCUME~1/dominic/LOCALS~1/Temp/tiT1tIgG-1.part Note: 1. I made the neccessary ammdments to httpd.conf file. LoadModule php5_module "C:/Program Files/PHP/php5apache2.dll" AddType application/x-http-php .php 2. Copied and pasted the C:\Program Files\PHP\libmySQL.dll file to C:\WINDOWS\system32. Where am I wrong here? I need to check if PHP is parsing. So I had a php file placed in the phpmyadmin folder named echo.php. Here are the scripts: <?php echo "Test"; ?> It still downloads. The browser displayed a blank page...with the browser's directory displaying: file:///C:/DOCUME~1/dominic/LOCALS~1/Temp/echo-6.php Any initiatives to take? I am lost here. Quote Link to comment https://forums.phpfreaks.com/topic/167890-need-help-phpmyadmin-php/ Share on other sites More sharing options...
brainfreeze Posted July 29, 2009 Author Share Posted July 29, 2009 hi, please help me analyse this problem. in the C:\Program Files\Apache Group\Apache2\logs\error.log file it reads: PHP Warning: PHP Startup: Unable to load dynamic library 'C:\\Program Files\\PHP\\ext\\msql.dll' - The specified module could not be found.\r\n in Unknown on line 0 [Wed Jul 29 16:30:58 2009] [notice] Apache/2.0.63 (Win32) PHP/5.2.10 configured -- resuming normal operations [Wed Jul 29 16:30:58 2009] [notice] Server built: Jan 17 2008 22:58:29 [Wed Jul 29 16:30:58 2009] [notice] Parent: Created child process 2576 [Wed Jul 29 16:30:59 2009] [warn] module php5_module is already loaded, skipping [Wed Jul 29 16:31:00 2009] [warn] module php5_module is already loaded, skipping PHP Warning: PHP Startup: Unable to load dynamic library 'C:\\Program Files\\PHP\\ext\\msql.dll' - The specified module could not be found.\r\n in Unknown on line 0 [Wed Jul 29 16:31:00 2009] [notice] Child 2576: Child process is running [Wed Jul 29 16:31:00 2009] [notice] Child 2576: Acquired the start mutex. [Wed Jul 29 16:31:00 2009] [notice] Child 2576: Starting 250 worker threads. thanks. Quote Link to comment https://forums.phpfreaks.com/topic/167890-need-help-phpmyadmin-php/#findComment-885723 Share on other sites More sharing options...
wildteen88 Posted July 29, 2009 Share Posted July 29, 2009 To run your php scripts you you need to be going to http://localhost You should not get a download dialog box appearing. If this happens Apache is not configured correctly. Note: 1. I made the neccessary ammdments to httpd.conf file. LoadModule php5_module "C:/Program Files/PHP/php5apache2.dll" AddType application/x-http-php .php The line highlighted above should be (note the d after http) AddType application/x-httpd-php .php You should be restarting Apache every time you edit the httpd.conf file (or php.ini) 2. Copied and pasted the C:\Program Files\PHP\libmySQL.dll file to C:\WINDOWS\system32. I do not recommend doing that. If you havn't done so already add PHP to the PATH Environment Variable. Doing this eliminates the need to move files to the Windows or System folders. This also helps to prevent problems when enabling extensions. Before enabling extensions in the php.ini you should make sure Apache and PHP are working fine. Before enabling extensions you need to tell PHP where they are. Find the line that starts with extension_dir = in the php.ini This line should be set as extension_dir = "C:/Program Files/PHP/ext" Save the php.ini and restart Apache. Uncomment any extensions you have enabled already. Now create a new file called test.php in Apaches htdocs folder and add the following code <?php phpinfo(); ?> Open your browser and go to http://localhost/test.php You should get page rendered showing PHP's configuration and environment. The first check to make is to see if PHP is reading the php.ini. The line labelled Loaded Configuration File should read C:/Program Files/PHP/php.ini. If that is correct everything appears to be running fine. You can now go ahead and configure PHP as you wish (remember to restart Apache after any changes to the php.ini). Quote Link to comment https://forums.phpfreaks.com/topic/167890-need-help-phpmyadmin-php/#findComment-886134 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.