Alegro 1.2.7 Installation Issue
-
- Posts: 9
- Joined: Sat Mar 17, 2012 9:50 pm
Alegro 1.2.7 Installation Issue
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
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
Re: Alegro 1.2.7 Installation Issue
What is the content of your .htaccess file?
I also need the following lines from the config.php:
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',
-
- Posts: 9
- Joined: Sat Mar 17, 2012 9:50 pm
Re: Alegro 1.2.7 Installation Issue
Hi Leo,
Following is my .htaccess
and following is my db setting
Look forward for your help,
Thanks
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]
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
Re: Alegro 1.2.7 Installation Issue
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.
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.
-
- Posts: 9
- Joined: Sat Mar 17, 2012 9:50 pm
Re: Alegro 1.2.7 Installation Issue
Hi Leo,
I type "test" into the .htaccess and following is the error message
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.
Re: Alegro 1.2.7 Installation Issue
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):
Try to open in your browser http://localhost/AlegroCart_1.2.7/Alegr ... tpage.html
Let me know if you are redirected to google.
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]
Let me know if you are redirected to google.
-
- Posts: 9
- Joined: Sat Mar 17, 2012 9:50 pm
Re: Alegro 1.2.7 Installation Issue
Hi Leo,
Yes it is redirected to google.
Let me know if you need more information
Thanks
Yes it is redirected to google.
Let me know if you need more information
Thanks
Re: Alegro 1.2.7 Installation Issue
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\
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\
-
- Posts: 9
- Joined: Sat Mar 17, 2012 9:50 pm
Re: Alegro 1.2.7 Installation Issue
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
It is the same result, does not work and i tried to verify the steps you mentioned above and produce the same result.
Thanks
Re: Alegro 1.2.7 Installation Issue
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