Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

I have a task to duplicate, on my Windows 8.1 computer, an environment of a Qnap NAS which includes:

  • Apache 2.2.14
  • MySQL v14.14 Distrib. 5.1.36
  • phpMyAdmin 4.1.5
  • PHP 5.3.26

I have found and installed the correct versions of the relevant software but I cannot access phpMyAdmin interface on http://localhost/phpmyadmin. Instead, it displays a web page with a list of the files which are in the phpmyadmin folder.

Can anyone please assist me with this issue?


Error logs:

httpd.exe: Could not reliably determine the server's fully qualified domain name, using 192.168.203.1 for ServerName
httpd.exe: Could not reliably determine the server's fully qualified domain name, using 192.168.203.1 for ServerName
PHP Warning: PHP Startup: Unable to load dynamic library './ext\\php_mbstring.dll' - Le module sp\xe9cifi\xe9 est introuvable.\r\n in Unknown on line 0

[Wed Feb 05 08:45:07 2014] [error] [client 192.168.203.1] File does not exist: C:/Program Files (x86)/Apache Software Foundation/Apache2.2/htdocs/favicon.ico
[Wed Feb 05 08:45:09 2014] [error] [client 192.168.203.1] File does not exist: C:/Program Files (x86)/Apache Software Foundation/Apache2.2/htdocs/favicon.ico
[Wed Feb 05 08:45:16 2014] [error] [client 192.168.203.1] File does not exist: C:/Program Files (x86)/Apache Software Foundation/Apache2.2/htdocs/browserconfig.xml 
share|improve this question
    
Is one of the files listed index.php? What happens when you open index.php in your browser? –  Ladadadada Feb 4 at 12:40
    
Yes, one of the file listed is index.php when I click on the link, I got the "error 500" page –  user208036 Feb 4 at 13:03
    
This indicates that something went wrong with your webserver process; are there any hints in the Apache error log? –  ibennetch Feb 5 at 4:57
    
In the error log : –  user208036 Feb 5 at 7:46

2 Answers 2

I can identify two problems and that's probably enough to write an answer, however there are probably more than just these two problems.

The first is that your Apache config is missing:

DirectoryIndex index.php

It may have already:

DirectoryIndex index.html

In which case you can just add index.php to the end of that line so that they both work. If both exist in the same folder, the one that is listed first in the config will be chosen.

DirectoryIndex index.html index.php

That should solve the problem where you just get a list of files instead of the application you want.


The second problem is that PHP is failing to start up because it can't find the extension php_mbstring.dll that is listed in your php.ini. This is what is causing the 500 response.

I'm not sure what you'll have to do to get it loaded but you can try commenting it out for now to see if that extension is the only one that is causing a problem.

You may find that PHP is looking in the 32-bit directory for this dll when you are running the 64-bit version. Make sure your extension_dir directive is correct or provide a full path to the dll file on the line that loads it. By default it looks like this:

; Directory in which the loadable extensions (modules) reside.
; http://php.net/extension-dir
; extension_dir = "./"
; On windows:
; extension_dir = "ext"

But I suspect yours has the first option uncommented and the Windows version commented out.

share|improve this answer

I have done what you said and the phpmyadmin interface is working.

Thanks a lot!

Then I had to change the password for the root user (using this guide https://dev.mysql.com/doc/refman/5.0/en/resetting-permissions.html) and now I can login in the phpmyadmin interface.

I have created a mysql database and installed Prestashop. During the installation process, Prestashop told me that some modules were missing (I can't remember the exact names). So I have uncommented "extension=php_gd2.dll" and "extension=php_pdo_mysql.dll" in the php.ini file and then I could install Prestashop.

When I tried to access Prestashop from localhost, it does not work but display the "It Works!" page of the Apache webserver. So I delete "index.html" from the DirectoryIndex line in httpd.conf and now I can access Prestashop site on localhost.

I have some more questions : -is it normal that phpmyadmin only works if there is a absolute path to php extensions directory in PHP.ini When I change the absolute path C:\PHP\Ext to the relative path .\Ext, phpmyadmin doesn't work. Will there be a problem when I will migrate my website to my Qnap NAS if I don't change that?

-Will there be rights problem when I will migrate my website to my Qnap NAS? Can I solve these problems before the migration?

thank you again for your help

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.