Zen Cart Logo
Forums / Installing on a Linux/Unix Server / Not Found error in admin area, new install

Not Found error in admin area, new install

Locked

Views: 2,996

Results 1 to 11 of 11
This thread is locked. New replies are disabled.
12 Feb 2007, 10:20 AM
#1
albannach avatar

albannach

New Zenner

Join Date:
Feb 2007
Posts:
8
Plugin Contributions:
0

Not Found error in admin area, new install

Hello,
I spent Saturday installing Zen Cart on my server. All when reasonably well. I had one error reported by the installer, which I fixed. I had to edit my php.ini. I renamed config files, changed permissions etc and have started working through basic setup and security recommendations.

The problem (I am hoping someone can help with):

When I try to access my admin page (I did rename the folder), I get a file not found error. All permisions are correct.

This is all very new to me so I am only guessing but......

I configured Zen to use htmls for admin during setup. When I first got the error I wondered if that wasn't working because I hadn't yet set up an SSL certificate. So I went to my control panel and added a self-signed certificate. Is this enough? Should I have done it before installation? Is it a red herring?
thanks

12 Feb 2007, 10:55 AM
#2
kuroi avatar

kuroi

Totally Zenned

Join Date:
Apr 2006
Location:
London, UK
Posts:
10,475
Plugin Contributions:
11

Re: Not Found error in admin area, new install

When you renamed your admin folder, did you edit admin/includes/configure.php file to reflect its new location? What file is not found? Does it still fail if you set ENABLE_SSL to false?

12 Feb 2007, 11:42 AM
#3
albannach avatar

albannach

New Zenner

Join Date:
Feb 2007
Posts:
8
Plugin Contributions:
0

Re: Not Found error in admin area, new install

Hi Kuroi,
thank for quick reply (late where you are!)

I did change the admin folder name in configure.php.

So tried

define('ENABLE_SSL_CATALOG', 'false');
define('ENABLE_SSL_ADMIN', 'false');

as you suggested and I am able to logon successfully,thank you but how do I do it for SSL?

Dumb question -

My server has a separate HTTPS folder at the same level as the HHTP folder where Zen Cart is installed. The HTTPS folder has nothing new in it. Should Zen Cart have installed something there or does something 'magic' happen when SSL is enabled?

12 Feb 2007, 11:51 AM
#4
albannach avatar

albannach

New Zenner

Join Date:
Feb 2007
Posts:
8
Plugin Contributions:
0

Re: Not Found error in admin area, new install

Edit:
trying to answer my own question here...
// these paths are relative to top of your webspace ... (ie: under the public_html or httpdocs folder)
define('DIR_WS_HTTPS_CATALOG', '/*******/');
in configure.php points to a folder in my HTTP folder not my HTTPS folder, where nothing exists.
Should I have specified this during install?

12 Feb 2007, 11:56 AM
#5
kuroi avatar

kuroi

Totally Zenned

Join Date:
Apr 2006
Location:
London, UK
Posts:
10,475
Plugin Contributions:
11

Re: Not Found error in admin area, new install

This FAQ entry might help. It's very much looking to me as though you are with a host who has configured the security cert in such a way as to require a copy in the HTTPS directory of all pages to be secured. In practice this normally means a complete copy of your Zen Cart unless you're pretty good at separating them out, and then why bother amyway,. a copy is easier?

I've not personally experienced this, but would suggest that you leave the configure files as is. Zen Cart should look for them using the same directory structure, but be redirected by the security certificate to start from the HTTPS root instead of the HTTP directory.

12 Feb 2007, 12:18 PM
#6
albannach avatar

albannach

New Zenner

Join Date:
Feb 2007
Posts:
8
Plugin Contributions:
0

Re: Not Found error in admin area, new install

Thanks for the FAQ pointer.

I have copied the entire installation across and changed configure.php to the correct URL but......

The logon page comes up and lets me enter my username and password and then seems to try to pass me on to a https://........./login.php url but that just gives a blank page.

I have noticed that copy procedure in my control panel has changed directory permissions. Before I go and copy the permission setting from the HTML version I wonder if is this wise?

Most folders on the HTTP installation are set 777 but they are 755 having copied them to HTTPS.

12 Feb 2007, 12:36 PM
#7
albannach avatar

albannach

New Zenner

Join Date:
Feb 2007
Posts:
8
Plugin Contributions:
0

Re: Not Found error in admin area, new install

Tried it anyway, at this stage no real damage can be done.

Changed all folders in installation instructions under HTTPS to 777. Problem persists though. New blank page problem rather than original 'document not found ' problem:(

13 Feb 2007, 10:14 AM
#8
albannach avatar

albannach

New Zenner

Join Date:
Feb 2007
Posts:
8
Plugin Contributions:
0

Re: Not Found error in admin area, new install

Hello all,
I have also tried re-copying the HTTP folder to HTTPS folder using SSH to make sure nothing gets changed but no joy.....:(

and

I have replaced the Plesk generated SSL certificate with a bought one, just incase.

Still suffering from a blank page after logging on. I've read many threads on this site relating to SSL issues and blank pages and separate HTTP and HTTPS folders but none of the possibly relevant suggestions seem to apply. I am flummoxed!

13 Feb 2007, 10:27 AM
#9
kuroi avatar

kuroi

Totally Zenned

Join Date:
Apr 2006
Location:
London, UK
Posts:
10,475
Plugin Contributions:
11

Re: Not Found error in admin area, new install

What happens if you go to a secure page on the catalog side of the site e.g. "login in"?

13 Feb 2007, 12:12 PM
#10
albannach avatar

albannach

New Zenner

Join Date:
Feb 2007
Posts:
8
Plugin Contributions:
0

Re: Not Found error in admin area, new install

Hello again Kuroi,
thanks for your endurance.

IfI go to - https://www.mysite.co.uk/mtshop/myadminfolder/login.php

I just get a blank page,

while going to -

http://www.mysite.co.uk/mtshop/myadminfolder/login.php

allows me to logon, which then switches to the secure url and sits there with a blank page.

Zen Cart seems to know that I want to do admin on SSL and seems to know where to look but I don't understand enough about the mechanics of what is happening to know if there is something else I have to do on my server.

I do have a certificate but don't know how to check if that is working properly, or if it even relevant.

19 Feb 2007, 11:49 AM
#11
albannach avatar

albannach

New Zenner

Join Date:
Feb 2007
Posts:
8
Plugin Contributions:
0

Re: Not Found error in admin area, new install

just a follow up to let anyone who strays here know the outcome

I decided that two things were going wrong on my server. SSL certificates were not being handled properly and the two separate paths from the server root to HTTP and HTTPS folders was not working properly.

I have ignored the first fault for now because I think it is a red herring from a Zen Cart point of view.

I deleted my domain and re-configured it so that HTTP and HTTPS are served from the same root folder. I have a VPS, which makes doing this easy. Having separate folders for the two protocols was the default setting when I set up the domain originally.

I uploaded my site, set up the database and installed Zen Cart. It now works properly. I can access admin on HTTPS but using the root SSL certificate, which I will fix later, hopefully.