AlegroCart open source E-commerce
Web hosting by Host1Plus

Alegro 1.2.7 Installation Issue

Issues when installing or upgrading AlegroCart

Alegro 1.2.7 Installation Issue

Postby Sell2MeCheap » Sat Mar 17, 2012 9:57 pm

Hi All,

I manage to install the AlegroCart following the installation steps however when i access the online shop page, it will be able to show me the index.php or main page but when i click on other link, it will redirect me to my directory listing, the same thing happen to admin site as well.

my homepage URL will be like this
http://localhost/AlegroCart_1.2.7/Alegr ... /index.php

When i mouse over to other link, it show something like this
http://localhost/AlegroCart_1.2.7/Alegr ... er=account


Following are my environment/software
Apache 2.2 with mod_rewrite enabled
mysql 5.5
php 5

I was suspecting the mod_rewrite is not working but i verify using php_info and simple test, both show it is working.

I unable to find out the solution :(

Need help here

Thanks
Sell2MeCheap
 
Posts: 9
Joined: Sat Mar 17, 2012 9:50 pm

Re: Alegro 1.2.7 Installation Issue

Postby leo » Sun Mar 18, 2012 2:27 am

What is the content of your .htaccess file?
I also need the following lines from the config.php:
Code: Select all
define('DB_HOST',
define('DB_NAME',
define('DIR_BASE',
define('HTTP_BASE',
User avatar
leo
admin
 
Posts: 4219
Joined: Sun Dec 13, 2009 8:27 am
Location: Hungary

Re: Alegro 1.2.7 Installation Issue

Postby Sell2MeCheap » Mon Mar 19, 2012 2:52 am

Hi Leo,

Following is my .htaccess
Code: Select all
# Uncomment this to ensure that register_globals is Off
php_flag register_globals Off

# URL Alias - see install.txt
# Prevent access to .tpl
<Files ~ "\.tpl$">
Order allow,deny
Deny from all
</Files>

Options +FollowSymlinks

<IfModule mod_rewrite.c>
RewriteEngine On

RewriteBase /AlegroCart_1.2.7/AlegroCart_1.2.7/upload/

# AlegroCart REWRITES START
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*) index.php/$1 [L,QSA]
# AlegroCart REWRITES END

</IfModule>
# Try if you have problems with url alias
# RewriteRule ^(.*) index.php [L,QSA]

# Focus on one domain - Uncomment to use
# RewriteCond %{HTTP_HOST} !^www\.example\.com$ [NC]
# RewriteRule ^(.*)$ http://www.example.com/$1 [R=301,L]


and following is my db setting
Code: Select all
<?php
if(!defined('VALID_ACCESS')){ header('Location: index.php');exit('Forbidden Path');}
define('CONFIG_VERSION', '1.2.7');
define('DB_HOST', 'localhost');
define('DB_USER', 'alergauser');
define('DB_PASSWORD', '123');
define('DB_NAME', 'alergro');
define('DIR_BASE', 'C:\\Program Files\\Apache Software Foundation\\Apache2.2\\htdocs\\AlegroCart_1.2.7\\AlegroCart_1.2.7\\upload\\');
define('HTTP_BASE', 'http://localhost/AlegroCart_1.2.7/AlegroCart_1.2.7/upload/');
define('HTTPS_BASE', '');

?>



Look forward for your help,

Thanks
Sell2MeCheap
 
Posts: 9
Joined: Sat Mar 17, 2012 9:50 pm

Re: Alegro 1.2.7 Installation Issue

Postby leo » Mon Mar 19, 2012 3:37 am

Open the main page in your browser. It should load correctly as you have mentioned.
Open your .htaccess file and write into the last line the word test.
Save it, then refresh the page in your browser. Let me know what you see.
User avatar
leo
admin
 
Posts: 4219
Joined: Sun Dec 13, 2009 8:27 am
Location: Hungary

Re: Alegro 1.2.7 Installation Issue

Postby Sell2MeCheap » Tue Mar 20, 2012 3:37 am

Hi Leo,

I type "test" into the .htaccess and following is the error message

Code: Select all
Internal Server Error

The server encountered an internal error or misconfiguration and was unable to complete your request.

Please contact the server administrator, admin@programm-c2ab9d.localdomain and inform them of the time the error occurred, and anything you might have done that may have caused the error.

More information about this error may be available in the server error log.
Sell2MeCheap
 
Posts: 9
Joined: Sat Mar 17, 2012 9:50 pm

Re: Alegro 1.2.7 Installation Issue

Postby leo » Tue Mar 20, 2012 5:25 am

That's good. It means that .htaccess was read by the server.
Now open it again and add to the end (delete the 'test' added in the previous step):
Code: Select all
RewriteRule testpage\.html http://www.google.com [R]

Try to open in your browser http://localhost/AlegroCart_1.2.7/Alegr ... tpage.html
Let me know if you are redirected to google.
User avatar
leo
admin
 
Posts: 4219
Joined: Sun Dec 13, 2009 8:27 am
Location: Hungary

Re: Alegro 1.2.7 Installation Issue

Postby Sell2MeCheap » Wed Mar 21, 2012 5:27 am

Hi Leo,

Yes it is redirected to google.

Let me know if you need more information

Thanks
Sell2MeCheap
 
Posts: 9
Joined: Sat Mar 17, 2012 9:50 pm

Re: Alegro 1.2.7 Installation Issue

Postby leo » Wed Mar 21, 2012 8:18 am

OK, your server is set up correctly.
The reason could be the dots in directory names.
Try to install AC to
C:\Program Files\Apache Software Foundation\Apache2.2\htdocs\upload\
instead of
C:\Program Files\Apache Software Foundation\Apache2.2\htdocs\AlegroCart_1.2.7\AlegroCart_1.2.7\upload\
User avatar
leo
admin
 
Posts: 4219
Joined: Sun Dec 13, 2009 8:27 am
Location: Hungary

Re: Alegro 1.2.7 Installation Issue

Postby Sell2MeCheap » Thu Mar 22, 2012 3:42 am

Hi Leo,

It is the same result, does not work and i tried to verify the steps you mentioned above and produce the same result.

Thanks
Sell2MeCheap
 
Posts: 9
Joined: Sat Mar 17, 2012 9:50 pm

Re: Alegro 1.2.7 Installation Issue

Postby leo » Thu Mar 22, 2012 4:22 am

If you have a little time please install xampp and test it with AC.
Code: Select all
http://www.apachefriends.org/en/xampp-windows.html#1168
User avatar
leo
admin
 
Posts: 4219
Joined: Sun Dec 13, 2009 8:27 am
Location: Hungary

Next

Return to Installation & Upgrade Support

Who is online

Users browsing this forum: No registered users and 1 guest

cron