News:

Looking for documentation? Take a look on our wiki

Main Menu

Can't install

Started by Cassandra Simons, January 24, 2013, 08:05:57 AM

Previous topic - Next topic

Cassandra Simons

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.


Luke Flyswatter

#1
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?

__________________________________

jjk

Non-English Shops: Are your language files up to date?
http://virtuemart.net/community/translations

Cassandra Simons

Yes. I have the 'com_virtuemart.2.0.18a.tar.gz' and 'com_virtuemart.2.0.18a_ext_aio.tar.gz' packages.

Cassandra Simons

So, should I just abandon Joomla? The only reason I installed it is to install VirtueMart, and it doesn't work!

jenkinhill

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.
Kelvyn
Lowestoft, Suffolk, UK

Retired from forum life November 2023

Please mention your VirtueMart, Joomla and PHP versions when asking a question in this forum

lee777

I also have this problem there is no way to solve

xycnnn

Maybe targz can't be extracted, try to download zip packages.  :)

dev.virtuemart.net/projects/virtuemart/files

dohalloran

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"

jenkinhill

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/
Kelvyn
Lowestoft, Suffolk, UK

Retired from forum life November 2023

Please mention your VirtueMart, Joomla and PHP versions when asking a question in this forum

illing

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]

jenkinhill

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.
Kelvyn
Lowestoft, Suffolk, UK

Retired from forum life November 2023

Please mention your VirtueMart, Joomla and PHP versions when asking a question in this forum

illing

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)

jenkinhill

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
Kelvyn
Lowestoft, Suffolk, UK

Retired from forum life November 2023

Please mention your VirtueMart, Joomla and PHP versions when asking a question in this forum

illing

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.