VirtueMart Forum

VirtueMart 2 + 3 + 4 => Installation, Migration & Upgrade => Topic started by: Cassandra Simons on January 24, 2013, 08:05:57 AM

Title: Can't install
Post by: Cassandra Simons on January 24, 2013, 08:05:57 AM
I am new to Joomla. I have installed Joomla and then I try and install the virtuemart package 'com_virtuemart 2.0.18a.tar.gz' and it doesn't work and goes to a blank page on Firefox. It has this message when I try it on Chrome:

The website encountered an error while retrieving http://www.peregrineweb.co.nz/joomla/administrator/index.php?option=com_installer&view=install. It may be down for maintenance or configured incorrectly.
Here are some suggestions:
Reload this webpage later.
HTTP Error 500 (Internal Server Error): An unexpected condition was encountered while the server was attempting to fulfill the request.

I have uninstalled Joomla and reinstalled it and then tried to install Virtuemart in the extension manager again and it still does the same thing.

Title: Re: Can't install
Post by: Luke Flyswatter on January 26, 2013, 19:24:10 PM
Having the same problem with a new site.  Just goes to a blank page. I don't have another browser to try it on.  Is this a common issue?

__________________________________
Title: Re: Can't install
Post by: jjk on January 27, 2013, 20:52:26 PM
Did you unzip (untar) the package once? See here: http://dev.virtuemart.net/projects/virtuemart/wiki/Installation_of_VirtueMart_2_with_provided_packages (http://dev.virtuemart.net/projects/virtuemart/wiki/Installation_of_VirtueMart_2_with_provided_packages)
Title: Re: Can't install
Post by: Cassandra Simons on January 28, 2013, 07:18:56 AM
Yes. I have the 'com_virtuemart.2.0.18a.tar.gz' and 'com_virtuemart.2.0.18a_ext_aio.tar.gz' packages.
Title: Re: Can't install
Post by: Cassandra Simons on January 31, 2013, 03:29:19 AM
So, should I just abandon Joomla? The only reason I installed it is to install VirtueMart, and it doesn't work!
Title: Re: Can't install
Post by: jenkinhill on January 31, 2013, 10:15:55 AM
You may not have sufficient PHP resources on the server. See http://forum.virtuemart.net/index.php?topic=102045.msg339125#msg339125

Alternatively you could have a .htaccess file causing problems.
Title: Re: Can't install
Post by: lee777 on February 06, 2013, 09:29:22 AM
I also have this problem there is no way to solve
Title: Re: Can't install
Post by: xycnnn on February 07, 2013, 15:46:48 PM
Maybe targz can't be extracted, try to download zip packages.  :)

dev.virtuemart.net/projects/virtuemart/files (http://dev.virtuemart.net/projects/virtuemart/files)
Title: Re: Can't install
Post by: dohalloran on February 07, 2013, 19:17:03 PM
I am also having problems the virtuemart installation. I am trying toinstall an old version which I have installed lots of time but I am now getting the following error msg;

"You do not have permission to access the requested module"
Title: Re: Can't install
Post by: jenkinhill on February 07, 2013, 23:28:47 PM
dohalloran that was an old Joomla 1.5 error with Virtuemart 1.1 - these versions are no longer supported. But if you are interested in using vintage software then the fix was posted on http://rochcass.wordpress.com/2011/04/16/joomla-virtuemart-error-you-do-not-have-permission-to-access-the-requested-module-solution/
Title: Re: Can't install
Post by: illing on February 11, 2013, 23:52:36 PM
I cannot install.  My environment:  Centos 6.3
I created a new virtual server, then installed Joomla 2.5 no problem.  I then renamed htaccess.txt to htaccess

I then followed the easy instructions for VM 2.  But they are not easy.  From the mac I unzipped the first, and got two .tar.gz files.  Neither of them installs.
I then downloaded the "windows" file , extracted the first, and got 2 .zip files.  None of them works.

Please view my screen capture.

What am I doing wrong?

[attachment cleanup by admin]
Title: Re: Can't install
Post by: jenkinhill on February 12, 2013, 00:12:04 AM
1. do not use .htaccess on localhost, especially if you have not also turned on SEF in Joomla. Only use SEF/.htaccess once a site is fully set up and tested.

2. You probably do not have high enough resources set for PHP.  eg these are the settings I use on a real server: http://forum.virtuemart.net/index.php?topic=102045.msg339125#msg339125

For localhost the timeout needs to be set higher as it will run slower.
Title: Re: Can't install
Post by: illing on February 12, 2013, 00:45:32 AM
I have increased the 4 values you suggested in php.ini as follows:
; Resource Limits ;
max_execution_time = 120
memory_limit = 128M
; File Uploads ;
upload_max_filesize = 32M
post_max_size = 32M

The MySQL Version is  5.1.67 and PHP is 5.3.3.

The issue is still there, however I thought I could place here a few lines of the web site error log where it complains of an error in line 322:

[Mon Feb 11 15:11:09 2013] [error] [client 206.248.139.170] File does not exist: /var/www/vhosts/generac/favicon.ico
[Mon Feb 11 15:12:35 2013] [error] [client 206.248.139.170] File does not exist: /var/www/vhosts/generac/favicon.ico
[Mon Feb 11 15:13:49 2013] [error] [client 206.248.139.170] File does not exist: /var/www/vhosts/generac/favicon.ico
[Mon Feb 11 17:09:45 2013] [error] [client 206.248.139.170] PHP Warning:  fopen(/var/www/vhosts/generac/tmp/com_virtuemart.2.0.18a.tar.gz): failed to open stream: No such file or directory in /var/www/vhosts/generac/libraries/joomla/filesystem/file.php on line 322, referer: http://generac.ca/administrator/index.php?option=com_installer
[Mon Feb 11 17:21:23 2013] [error] [client 206.248.139.170] PHP Warning:  fopen(/var/www/vhosts/generac/tmp/com_virtuemart.2.0.18a.tar.gz): failed to open stream: No such file or directory in /var/www/vhosts/generac/libraries/joomla/filesystem/file.php on line 322, referer: http://generac.ca/administrator/index.php?option=com_installer&view=install
[Mon Feb 11 17:44:07 2013] [error] [client 178.216.50.22] script '/var/www/vhosts/generac/sprawdza.php' not found or unable to stat
[Mon Feb 11 17:44:08 2013] [error] [client 178.216.50.22] script '/var/www/vhosts/generac/sprawdza.php' not found or unable to stat
[Mon Feb 11 17:56:09 2013] [error] [client 206.248.139.170] PHP Warning:  fopen(/var/www/vhosts/generac/tmp/com_virtuemart.2.0.16c.tar.gz): failed to open stream: No such file or directory in /var/www/vhosts/generac/libraries/joomla/filesystem/file.php on line 322, referer: http://generac.ca/administrator/index.php?option=com_installer
[Mon Feb 11 17:59:18 2013] [error] [client 206.248.139.170] File does not exist: /var/www/vhosts/generac/favicon.ico
[Mon Feb 11 18:00:53 2013] [error] [client 206.248.139.170] File does not exist: /var/www/vhosts/generac/favicon.ico
[Mon Feb 11 18:04:05 2013] [error] [client 206.248.139.170] File does not exist: /var/www/vhosts/generac/favicon.ico
[Mon Feb 11 18:33:27 2013] [error] [client 206.248.139.170] PHP Warning:  fopen(/var/www/vhosts/generac/tmp/com_virtuemart.2.0.16c.tar.gz): failed to open stream: No such file or directory in /var/www/vhosts/generac/libraries/joomla/filesystem/file.php on line 322, referer: http://generac.ca/administrator/index.php?option=com_installer&view=install
[Mon Feb 11 18:37:57 2013] [error] [client 206.248.139.170] PHP Warning:  fopen(/var/www/vhosts/generac/tmp/com_virtuemart.2.0.16c.tar.gz): failed to open stream: No such file or directory in /var/www/vhosts/generac/libraries/joomla/filesystem/file.php on line 322, referer: http://generac.ca/administrator/index.php?option=com_installer
generac.ca-error_log (END)
Title: Re: Can't install
Post by: jenkinhill on February 12, 2013, 12:18:59 PM
So your Joomla installation file does not have a favicon.ico and you have a couple of PHP warnings that Joomla is unable to open the file package. I guess that your server software is not compiles to unpack .tar.gz archives.  Try using the .zip version or unpack and install from a directory.
http://www.phoca.cz/phocagallery/478-how-to-install-large-components-with-help-of-ftp-in-joomla
Title: Re: Can't install
Post by: illing on February 12, 2013, 19:06:47 PM
Thank you for your hints.
I should say that my centos installation DOES unpack the .tar.gz files, and that I already tried to upload various versions of VM from 2.09 to 2.16 and 2.18 both in .tar.gz and .zip formats and they all failed with just a cryptic error.
I then tried to install the .zip deom the /tmp directory as per your phoca hint (thanks) and I got this:
   •   JFTP: :mkdir: Bad response
   •   JFTP: :chmod: Bad response
   •   Component Install: Failed to create site directory: /var/www/vhosts/generac/components/com_virtuemart
   •   
This prompted me to think of linux permissions. So I logged in with a console ftp and tried to create a directory, a file, etc. and it all worked.  Here is a list -al of my installation:

[root@db generac]# ls -al
total 148
drwxrwxr-x. 18 generac apache  4096 Feb 11 18:03 .
drwxr-xr-x.  6 root    root    4096 Feb 11 14:12 ..
drwxr-xr-x  10 generac apache  4096 Feb 11 15:04 administrator
-rwxrwxrwx.  1 generac apache    18 Feb  4 22:34 .bash_logout
-rwxrwxrwx.  1 generac apache   176 Feb  4 22:34 .bash_profile
-rwxrwxrwx.  1 generac apache   124 Feb  4 22:34 .bashrc
drwxr-xr-x   2 generac apache  4096 Feb 11 15:01 cache
drwxr-xr-x   2 generac apache  4096 Feb 11 15:01 cli
drwxr-xr-x  13 generac apache  4096 Feb 11 15:03 components
-rw-r--r--   1 apache  apache  1844 Feb 11 16:58 configuration.php
drwxrwxrwx.  2 generac apache  4096 Nov 11  2010 .gnome2
-rw-r--r--   1 root    root    3165 Feb 11 18:03 htaccess
-rw-r--r--   1 generac apache  3118 Feb 11 14:34 htaccess.txt
drwxr-xr-x   4 generac apache  4096 Feb 11 15:01 images
drwxr-xr-x   2 generac apache  4096 Feb 11 15:01 includes
-rw-r--r--   1 generac apache  1319 Feb 11 14:34 index.php
-rw-r--r--   1 generac apache  1757 Feb 11 14:35 joomla.xml
drwxr-xr-x   4 generac apache  4096 Feb 11 14:58 language
drwxr-xr-x   7 generac apache  4096 Feb 11 15:01 libraries
-rw-r--r--   1 generac apache 17816 Feb 11 14:36 LICENSE.txt
drwxr-xr-x   2 generac apache  4096 Feb 11 14:47 logs
drwxr-xr-x  15 generac apache  4096 Feb 11 14:51 media
drwxr-xr-x  26 generac apache  4096 Feb 11 14:52 modules
drwxrwxrwx.  4 generac apache  4096 Nov 26  2011 .mozilla
drwxr-xr-x  13 generac apache  4096 Feb 11 14:47 plugins
-rw-r--r--   1 generac apache  4244 Feb 11 14:36 README.txt
-rw-r--r--   1 generac apache   865 Feb 11 14:37 robots.txt
drwxr-xr-x   6 generac apache  4096 Feb 11 14:47 templates
-rw-r--r--   1 generac apache   106 Feb 11 14:27 test.php
-rw-r--r--   1 generac apache    21 Feb 11 14:27 testphpinfo.php
drwxr-xr-x   6 generac apache  4096 Feb 12 12:35 tmp
-rw-r--r--   1 generac apache  1715 Feb 11 14:38 web.config.txt
[root@db generac]#

I then started to think of doing a chmod 777, but then I decided that it did not make sense, because if FTP works, then JFTP should too.

I decided that what was missing is some permission for APACHE to write, and I found that , rightfully so, configuration.php has a permission of 644
So I decided to  try the following command to make the configuration file available to apache

chmod 664 configuration.php

I then tried to do the install from the /tmp directory and....  IT WORKED PERFECTLY.

To conclude this long explanation, I have discovered that:
1) the installation of VM must have write access to configuration.php    (NOT EXPLAINED ANYWHERE IN THE INSTALL INSTRUCTIONS)
2) Installing from the /tmp folder of your server WORKS !!!!
3) Attempting to do the "Easy Installation" by browsing your laptop folder, selecting a .zip or a .tar.gz  and clicking the UPLOAD AND INSTALL button  DOES NOT WORK even if the configuration.php is accessible   ( I would like to leave this to the VM developers )

Thank you for all the help.  Please flag this issue as SOLVED or at least PARTIALLY SOLVED.

Title: Re: Can't install
Post by: noussibeau on February 12, 2013, 22:49:41 PM
incroyable d'être obligé de perdre plusieurs heures pour simplement installer virtuemart sous joomla 2.5 .. à vous dégoutter des deux et des forum ou on traîne la savate sans progresser (pas la faute à ceux qui essaient d'aider que je remercie) ..
Mais ras le bol!!
J'ai essayé tout de ce que j'ai trouvé mais .. rien toujours le même problème. Peut être une connerie de ma part mais laquelle ..?!!
Le tout en loal donc pas de pb lié à un fournisseur d'espace.
Par ailleurs j'ai wamp server 2.2,php 5.4.3, apache 2.2.22, mysql 5.4.24 ..
Joomla 2.5 dernière version (prise ,ce jour, sur le serveur joomla), j'ai essayé trois différents virtuemart (com_virtuemart.2.0.18_extract_first.zip, et com_virtuemart.2.0.18a_extract_first.zip et un tar dont j'ai oublié le nom) en installation normale ou à partir de tmp ...
rien en marche .. re ras le bol ..
Merci de toute aide ...
Title: Re: Can't install
Post by: noussibeau on February 13, 2013, 09:32:08 AM
Translatation (approximative) of the previous message ...
"it's incredible to be obliged to loose plenty of time to simply install VirtueMart (last version) under Joomla 2.5 (last version) under WAMP 2.2 with php 5.4.3, apache 2.2.22, mysql 5.4.24 .. I tried at last three different virtuemart (com_virtuemart.2.0.18_extract_first.zip, et com_virtuemart.2.0.18a_extract_first.zip and one tar (I forget the exact name) either with a normal installation or from tmp ...
Nothing works .. either white page or plenty of anuseful messages ...
I used plenty of other things with Joomla without problems .. why is VM so difficult to install .. I wonder what's it when using it! If I did not heard it was great .. I'd stop trying to install it.
Perhaps,it's my fault , perhaps I've somthing wrong.. but where to look ? and, so far I can understand I'm not alone with that kind of problems ...
Please help ... with a true solution ...
Title: Re: Can't install
Post by: jjk on February 13, 2013, 10:26:55 AM
Difficult to say from your description what might be wrong. Did you follow these steps?
http://dev.virtuemart.net/projects/virtuemart/wiki/Installation_of_VirtueMart_2_with_provided_packages

When VirtueMart doesn't install, often the 'max_execution_time' and/or 'upload_max_filesize' set in the server configuration file 'php.ini' is too low.
Title: Re: Can't install
Post by: illing on February 13, 2013, 20:05:16 PM
Yes I did, many times.  I also increased all the parameters in php.ini as I said before.
The method of installing "easy install" by "browse and install" button failed on me multiple times.

However the method of unpacking the files (either .zip or .tar.gz) into the /tmp and then installing from the /tmp  worked.

This is why I suggested you flag this topic as PARTIALLY SOLVED.   Perhaps it would be a good idea to edit this long conversation and creating a permanent installation help topic for the benefit of all the readers that viewed this conversation, including our french speaking frustrated user.
Title: Seem solved for me : Can't install
Post by: noussibeau on February 13, 2013, 20:24:24 PM
Thanks, it seems to work much better after changing these parameters ..

Two messages saying installation is completed and correct ... except some red windows saying that some strict standards are not respected difficult to understand.
Thanks, I hope it'll work like that.

Perhaps suggest to Virtuemart people (thanks to them ..) to say that somewhere in their explanation how to install virtuemart ???


Title: Re: Can't install
Post by: jjk on February 13, 2013, 21:43:06 PM
Quote from: noussibeau on February 13, 2013, 20:24:24 PM
... except some red windows saying that some strict standards are not respected difficult to understand.

That's probably your setting of 'Error reporting', also in the php.ini file.
On my local xampp installation I've set that to error_reporting = E_ALL
You probably have error_reporting = E_ALL | E_STRICT