Magento Installation Script Failing

Hello,

We are running into a problem while trying to install Magento v1.9.0.1 via the VirtualMin Interface. It appears to do a partial install but back at the installed scripts > Magento page there is the following error:

Partial installation error Installation script failed :

PHP Warning: Module 'mcrypt' already loaded in Unknown on line 0

We currently have php53-mcrypt-5.3.3-1.el5.x86_64 installed.

Also, we are running PHP53, not just PHP.

Output from yum list installed php*:

Loaded plugins: fastestmirror, security Loading mirror speeds from cached hostfile * addons: mirror.tocici.com * base: centos.mirrors.hoobly.com * extras: mirror.keystealth.org * updates: centos.host-engine.com Excluding Packages in global exclude list Finished Excluding Packages from CentOS-5 - Base Finished Installed Packages php-pear.noarch 1:1.4.9-8.el5 installed php53.x86_64 5.3.3-22.el5_10 installed php53-cli.x86_64 5.3.3-22.el5_10 installed php53-common.x86_64 5.3.3-22.el5_10 installed php53-devel.x86_64 5.3.3-22.el5_10 installed php53-gd.x86_64 5.3.3-22.el5_10 installed php53-imap.x86_64 5.3.3-22.el5_10 installed php53-mbstring.x86_64 5.3.3-22.el5_10 installed php53-mcrypt.x86_64 5.3.3-1.el5 installed php53-mysql.x86_64 5.3.3-22.el5_10 installed php53-odbc.x86_64 5.3.3-22.el5_10 installed php53-pdo.x86_64 5.3.3-22.el5_10 installed php53-pgsql.x86_64 5.3.3-22.el5_10 installed php53-soap.x86_64 5.3.3-22.el5_10 installed php53-xmlrpc.x86_64 5.3.3-22.el5_10 installed

Status: 
Active

Comments

Howdy -- do you happen to have the output you receive from performing a Magento installation?

What you're seeing there shouldn't be preventing Magento from working, that's just a PHP notice that a particular module was already loaded.

That said, you could always edit $HOME/etc/php.ini, and make sure you don't see a place where it's trying to load mcrypt.so... if it is, try commenting out that line, as it sounds like that module is already being loaded elsewhere.

we're seeing some inconsistent results when installing this script. Trying on a couple of test accounts on the same server, using the same install script options, we variously get successful installation and "Failed to install script : Could not find PHP version for /home/*****.com/public_html/stores" (domain name changed to protect the innocent). Is there a more detailed log somewhere on the server we could look at for more info?

i did find some logs at /etc/webmin/virtual-server/scriptlog/ but there's no record of the "could not find PHP" attempts....other attempts and successful installs are recorded here

how is the folder name determined at [root@titan virtualmin-styles-oswd]# ls -latr /etc/webmin/virtual-server/scriptlog/ ?

total 112
drwx------  2 root root  4096 Jan 23  2012 128404663525348
drwx------  2 root root  4096 Feb 10  2012 129228555423914
drwx------  2 root root  4096 Aug 17  2012 134523866115318
drwx------  2 root root  4096 Jul 25  2013 137460314317197
drwx------  2 root root  4096 Nov  5  2013 138360582824450
drwx------  2 root root  4096 Nov 19  2013 138490159124832
drwx------  2 root root  4096 Dec 11  2013 137763089130335
drwx------  2 root root  4096 Apr 10 14:07 137099561223782
drwx------  2 root root  4096 Apr 21 00:15 138254947430646
drwx------  2 root root  4096 Apr 21 00:15 138213125418853
drwx------  2 root root  4096 Apr 21 00:15 138185161419665
drwx------  2 root root  4096 Apr 21 00:15 13814241315243
drwx------  2 root root  4096 Apr 21 00:15 137289472425142
drwx------  2 root root  4096 Apr 21 00:15 136674357318232
drwx------  2 root root  4096 Apr 21 00:15 136278851116785
drwx------  2 root root  4096 Apr 21 00:15 132813199132477
drwx------  2 root root  4096 May 12 00:15 135103367629668
drwx------  2 root root  4096 May 19 00:15 13999123202228
drwx------  2 root root  4096 Jun 23 00:15 140304299827780
drwx------  2 root root  4096 Jul  8 14:31 139906081123975
drwx------ 24 root root  4096 Jul  9 11:27 .
drwx------  2 root root  4096 Jul  9 12:34 13843717175202
drwx------  2 root root  4096 Jul  9 14:18 140423675727295

it doesn't seem to correlate to the virtualmin server ID or templateID

My apologies for the delay. The names in the "scriptlog" are Virtualmin's internal domain ID's. They're defined in /etc/webmin/virtual-server/domains/.

I'm not sure that there would be additional logs, beyond what you're seeing.

However, in the cases where Magento isn't installing properly -- is the DocumentRoot changed from the default in those cases?

That is, in the example you shared above, has Apache been configured to use " /home/*****.com/public_html/stores" as it's DocumentRoot, rather than using public_html?