Forums / Installing on a Linux/Unix Server / What did I do wrong ?

What did I do wrong ?

Started by vipinc on 21 Nov 2010, 12:13 PM · Views: 2,011

Results 1 to 13 of 13
21 Nov 2010, 12:13 PM
#1
vipinc avatar

vipinc

New Zenner

Join Date:
Nov 2010
Posts:
18
Plugin Contributions:
0

What did I do wrong ?

I installed the zen cart folder on my web server.
Installed the installer trhough the browser.
At the end it gave message saying you cannot access your admin panel till

a) remove zc_install folder from your webserver.

I did this by using my web ftp client and deleted the zc_install folder

b) rename the admin folder along with the content in admin/include/configure.php

I change the name of the admin folder to my new name, and then downloaded the configure.php in admin/include to my local PC, changed the word admin in this file to my new name, saved the file and then uploaded it by over writting the earlier file.

Now when I enter http://www.dealsatclick.com/newname

I am getting HTTP 404 error.

Can someone tell me, what I did wrong ?

I double checked and it is confirmed that the configure.php file was uploaded to catalog/admin/include

Still nothing is coming on the screen.

21 Nov 2010, 2:19 PM
#2
website_rob avatar

website_rob

Inactive

Join Date:
Oct 2006
Location:
Alberta, Canada
Posts:
4,572
Plugin Contributions:
0

Re: What did I do wrong ?

You didn't state what version of zen cart you installed but I would guess this file was not changed on your Server.

your_admin_name/includes/configure.php

Reason being is that it is normally set with permissions of 444 which means you cannot upload a new file to overwrite it. Use your Hosting Control Panel to verify permissions and if need be, change them to 644 for the file then re-upload it again.

The learning is in the doing.

Potent Products

21 Nov 2010, 3:31 PM
#3
vipinc avatar

vipinc

New Zenner

Join Date:
Nov 2010
Posts:
18
Plugin Contributions:
0

Re: What did I do wrong ?

I am using version

zen-cart-v1.3.9

I have just now done it again, changed the permisions for the

my_new_admin_name/include/configure.php and ensured it has 644 permission level.

Then I uploaded the file from my local PC again, I got a pop up message, file already exsists, do you want to over write it ?

I clicked on 'yes'

Now again when I try to access

http://mydomain.com/my_new_admin_name

Again I get the same http 404 error.

Any advice ?

21 Nov 2010, 4:33 PM
#4
stevesh avatar

stevesh

Black Belt

Join Date:
Feb 2005
Location:
Lansing, Michigan USA
Posts:
19,793
Plugin Contributions:
2

Re: What did I do wrong ?

You changed 'admin' in the congigure.php file in all three places to your custom name ?

If so, try using your control panel's file manager to edit the file.

21 Nov 2010, 5:12 PM
#5
vipinc avatar

vipinc

New Zenner

Join Date:
Nov 2010
Posts:
18
Plugin Contributions:
0

Re: What did I do wrong ?

No luck

Have ensured that the old folder name 'admin' has been replaced with my new folder name.

define('DIR_WS_ADMIN', '/mysecretadminarea/'); define('DIR_WS_CATALOG', '/'); define('DIR_WS_HTTPS_ADMIN', '/mysecretadminarea/'); define('DIR_WS_HTTPS_CATALOG', '/');

And:

define('DIR_FS_ADMIN', '/home/mystore.com/www/public/mysecretadminarea/');

define('DIR_FS_CATALOG', '/home/mystore.com/www/public/');

Still no luck.

The only weired thing I found was that the configure.php file had
('DIR_FS_ADMIN', '/mysecretadminarea/');

and I had to add the complete path '/home/mystore.com/www/public/

But even then still getting http 404 error

21 Nov 2010, 6:20 PM
#6
vipinc avatar

vipinc

New Zenner

Join Date:
Nov 2010
Posts:
18
Plugin Contributions:
0

Re: What did I do wrong ?

Also when I type my domain only in the browser

https://www.mydomain.com

It shows me a page which says

Index of /
Catalog/

21 Nov 2010, 6:48 PM
#7
vipinc avatar

vipinc

New Zenner

Join Date:
Nov 2010
Posts:
18
Plugin Contributions:
0

Re: What did I do wrong ?

Latest one

Now when I type

www.mydomain/catalog/my_new_admin_name

I am getting zen cart page which says

Hello. Thank you for loading Zen Cart™.
You are seeing this page for one or more reasons:
1.This is your first time using Zen Cart™ and you haven't yet completed the normal Installation procedure.
If this is the case for you, you will need to upload the "zc_install" folder using your FTP program, and then run zc_install/index.php via your browser (or reload this page to see a link to it).

2.Your /includes/configure.php and/or /admin/includes/configure.php file contains invalid path information and/or invalid database-connection information.
If you recently edited your configure.php files for any reason, or maybe moved your site to a different folder or different server, then you'll need to review and update all your settings to the correct values for your server.
See the Online FAQ and Tutorials area on the Zen Cart™ website for assistance.

The first reason is not possible..coz I went through all the installation process and reached to the stage where it said access /login to admin panel at the end. But when I clicked on that it asked me make few changes which I did and since then nothing is happening.

Now, about the 2nd point, I have checked multiple times and the content of of that file is fine...but then why are things not moving forward from here ? and why am I not able to access the admin area ?

21 Nov 2010, 7:50 PM
#8
website_rob avatar

website_rob

Inactive

Join Date:
Oct 2006
Location:
Alberta, Canada
Posts:
4,572
Plugin Contributions:
0

Re: What did I do wrong ?

Sounds to me like the Admin config file with your changes has not been uploaded. Sometimes in these situations it's best just to delete the file you are going to replace, then upload the new one.

The learning is in the doing.

Potent Products

21 Nov 2010, 9:08 PM
#9
vipinc avatar

vipinc

New Zenner

Join Date:
Nov 2010
Posts:
18
Plugin Contributions:
0

Re: What did I do wrong ?

Alright, I re-installed the zencart installer 2 times now, followed all the steps including the one of changing the admin folder name change and make the appropriate changes reflect in the configure.php in catalog/admin/include path.

Now when I enter https://www.mydomain.com/Catalog/my_new_admin_folder_name

I am getting this error.

Hello. Thank you for loading Zen Cart™.
You are seeing this page for one or more reasons:
1.This is your first time using Zen Cart™ and you haven't yet completed the normal Installation procedure.
If this is the case for you, you will need to upload the "zc_install" folder using your FTP program, and then run zc_install/index.php via your browser (or reload this page to see a link to it).

2.Your /includes/configure.php and/or /admin/includes/configure.php file contains invalid path information and/or invalid database-connection information.
If you recently edited your configure.php files for any reason, or maybe moved your site to a different folder or different server, then you'll need to review and update all your settings to the correct values for your server.
See the Online FAQ and Tutorials area on the Zen Cart™ website for assistance.

I have checked the configure.php file and it DOES show the correct database detailes, and all the places where the word admin was there, that has been replaced with the new name which is there for the admin folder now.

Also, now when I am typing only my domain in the browser, it shows me a blank page with an error saying " Index of /
*Catalog

Please please please someone tell me what is wrong or what have I missed out ?

22 Nov 2010, 10:54 AM
#10
stevesh avatar

stevesh

Black Belt

Join Date:
Feb 2005
Location:
Lansing, Michigan USA
Posts:
19,793
Plugin Contributions:
2

Re: What did I do wrong ?

You'll see that 'index of ...' page when there isn't an index file in the root directory. Installing Zencart places a file named 'index.php' in that directory, so you're doing something wrong.

It isn't clear if you're installing Zencart manually or through some sort of auto-installer your host provides.

The message you're seeing when you try to access your new admin folder only offers two possibilities:

  1. You haven't actually installed Zencart to that address.

  2. the path information in admin/includes/configure.php is wrong.

I'm thinking it's #1, and you may have actually installed Zencart to a subdirectory, but just in case, you could post the contents of that configure file here after removing the database login details and we can take a look.

22 Nov 2010, 1:03 PM
#11
vipinc avatar

vipinc

New Zenner

Join Date:
Nov 2010
Posts:
18
Plugin Contributions:
0

Re: What did I do wrong ?

Hi All,

Not sure how and why, but I just now downloaded the zen-cart folder again from their site, and did all the steps all over again, and guess what...BINGO....I got to the login page for the admin panel.

WOW after a long 1 week struggle...finally, thanks to all of you who have been sharing you suggestions and helping me. :-)

I am sure I will need a lot of them as I move forward....

thanks once again !

22 Nov 2010, 2:34 PM
#12
vipinc avatar

vipinc

New Zenner

Join Date:
Nov 2010
Posts:
18
Plugin Contributions:
0

Re: What did I do wrong ?

I still have 2 questions

  1. Now that my admin page has come up and I am able to login into it, what next ? Is there any guide apart from FAQ's section which can guide me how to start working in the admin panel and where to start from ?

  2. Even now, if I am typing in the browser, https://www.mydomain.com

I am getting an error page saying " Index of
* catalog

Why would this happen, few minutes when I was typing https://www.mydomain.com it was taking me to a page https://www.mydomain.com/catalog/index.php and was showing me the basic green color zen page with all the dummy data and text etc. But not I am getting this index of error message.

26 Nov 2010, 3:07 PM
#13
vger avatar

vger

Past Contributor

Join Date:
Nov 2004
Location:
Norfolk, United Kingdom
Posts:
3,189
Plugin Contributions:
0

Re: What did I do wrong ?

The message you are getting means that your hosting company has enabled "Directory Browsing", which is a security risk. Get them to disable it.

Also, if someone inputs yourdomain.com and you actually want them to go straight to yourdomain.com/catalog/ then you need to put a 301 redirect in a .htaccess file in the root of your hosting. Google for "301 redirect by .htaccess" and you'll get plenty of answers.

Vger