Page 1 of 2 12 LastLast
Results 1 to 10 of 14
  1. #1
    Join Date
    Sep 2012
    Posts
    8
    Plugin Contributions
    0

    Default Access to Admin area in a local network from another machine:- Password problem

    I have searched for this same issue on existing posts, found few, but none of showed a solution. so I am posting it here again.

    I am seriously noob to zencart, dont know much about it. I have website which is built by Concrete 5 as CMS. My website has a menu item as <STORE>. This menu item should lead to the e-commerce feature. Since Concrete 5 has no such in built feature, I installed zencart in a sub folder inside concrete 5 website folder. I configured it and every thing working fine in LOCAL HOST

    now, my boss want to check my work, he accessed my machine from another machine [we are in local network]. Suddenly, the css style sheets are missing. I checked the header file for css link tag. It seems like defined for local host.

    So I edit config file as server name from local host to my local ip. So the css came alive. Now when I tried to access admin panel from another machine, it simply gave me password error. I switched it back my server address as localhost, then I can login..


    what can I do for this?? please help

  2. #2
    Join Date
    Jan 2004
    Posts
    66,378
    Blog Entries
    7
    Plugin Contributions
    274

    Default Re: Access to Admin area in a local network from another machine:- Password problem

    The solution is simple: give your store a real domain name, and you'll be able to access it from other computers.
    .

    Zen Cart - putting the dream of business ownership within reach of anyone!
    Donate to: DrByte directly or to the Zen Cart team as a whole

    Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
    Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

  3. #3
    Join Date
    Sep 2012
    Posts
    8
    Plugin Contributions
    0

    Default Re: Access to Admin area in a local network from another machine:- Password problem

    Quote Originally Posted by DrByte View Post
    The solution is simple: give your store a real domain name, and you'll be able to access it from other computers.
    thank you for the tip but could you be more detail?

    my situation is

    the zencart lies inside a c5 website directory

    so the url is like http://localhost/mywebsite/store

    the <store> folder contains all files of zencart. Now if I want to access from other machines in network, how can I rename the host name?? pls help me

    same as that, the time I migrate this from localhost to live server, [that time, website name would be different], what kind of edits I will have to do?

    thank you

  4. #4
    Join Date
    Sep 2012
    Location
    Nagpur, India
    Posts
    6
    Plugin Contributions
    1

    Default Re: Access to Admin area in a local network from another machine:- Password problem

    if u have internet connection......best way is to get your system IP (for localhost).......and call it from anywhere......so ur system now works like a server

  5. #5
    Join Date
    Oct 2007
    Posts
    143
    Plugin Contributions
    0

    Default Re: Access to Admin area in a local network from another machine:- Password problem

    So I edit config file as server name from local host to my local ip. So the css came alive. Now when I tried to access admin panel from another machine, it simply gave me password error. I switched it back my server address as localhost, then I can login..
    Not sure if maybe you were just typing the password incorrectly for the admin, but i'm able to access our local test site from another computer on our network - using the same scenario you described:

    changed configure.php files to reflect local ip (10.10.10.xx or 192.168.x.x or whatever). Then, from remote computer, navigate to http://xx.xx.xx.xx/sitefolder or xx.xx.xx.xx/sitefolder/admin - both work fine for me. In you case, I suppose it would be http://xx.xx.xx.xx/yourwebsite/store/admin.

    I've experienced the css issue you describe when using localhost instead of ip, but never had issues accessing admin (on 1.39 and 1.50). Did you change both the /includes and the /admin/includes configure.php files?

    ps - once you get this working, if your network uses dhcp instead of static ips, you'll lose access to the site if your ip changes, and need to update the configure files again. if this is a long term thing might want to give your computer a static ip to avoid that.

  6. #6
    Join Date
    Sep 2012
    Posts
    8
    Plugin Contributions
    0

    Default Re: Access to Admin area in a local network from another machine:- Password problem

    Quote Originally Posted by jc8125 View Post
    Not sure if maybe you were just typing the password incorrectly for the admin, but i'm able to access our local test site from another computer on our network - using the same scenario you described:

    changed configure.php files to reflect local ip (10.10.10.xx or 192.168.x.x or whatever). Then, from remote computer, navigate to http://xx.xx.xx.xx/sitefolder or xx.xx.xx.xx/sitefolder/admin - both work fine for me. In you case, I suppose it would be http://xx.xx.xx.xx/yourwebsite/store/admin.

    I've experienced the css issue you describe when using localhost instead of ip, but never had issues accessing admin (on 1.39 and 1.50). Did you change both the /includes and the /admin/includes configure.php files?

    ps - once you get this working, if your network uses dhcp instead of static ips, you'll lose access to the site if your ip changes, and need to update the configure files again. if this is a long term thing might want to give your computer a static ip to avoid that.

    thank you for the words. I tried it again, now its working!!!.. I can access admin from a remote machine in the local network as http://192.168.0.xx/websitename/store/zenadmin. All css files are also working. I guess this thread can be closed and marked as SOLVED.

  7. #7
    Join Date
    Sep 2012
    Posts
    8
    Plugin Contributions
    0

    Default Re: Access to Admin area in a local network from another machine:- Password problem

    OHHH WAIT>>>. dont close it...

    one more problem..

    I checked whether I can access zencart admin from remote machine after I put server name as my Ip Address. Yes I could access from remote machine. but I CANNOT access admin from my local machine.

    I typed http://localhost/sitename/store/mesadmin

    now, I cannot login to admin area. The username and password are correct. I changed servername back to localhost then yes I could login to admin from local machine.


    Now the situation is :-


    1. servername in configure.php (both admin folder, parent folder) :- localhost

    .CAN login admin panel from local machine
    CANNOT login admin panel from remote machine
    2. servername in configure.php (both admin folder, parent folder) ;- my local IP i.e 192.168.0.xx

    CAN login admin panel from remote machine,
    CANNOT login admin panel from Local machine


    How to resolve this?? pls pls help...

  8. #8
    Join Date
    Sep 2012
    Posts
    8
    Plugin Contributions
    0

    Default Re: Access to Admin area in a local network from another machine:- Password problem

    ok UPDATE:-

    I tried some hack with configure.php. I added a variable like this

    Code:
    $serverip= $_SERVER['SERVER_ADDR'];
    and in tweaked this line into

    Code:
    define('HTTP_SERVER', 'http://'.$serverip);
    and filled same in all other necessary areas.

    Now I CAN
    1. login admin from local host
    2. can login admin from remote host

    one thing I notice is

    the URL is now

    http://127.0.0.1/sitename/store/adminfolder/

    no localhost, no ip address.

    but at least system is running and css is also working

    thankx

  9. #9
    Join Date
    Oct 2007
    Posts
    143
    Plugin Contributions
    0

    Default Re: Access to Admin area in a local network from another machine:- Password problem

    if it's working for you, great - but I certainly wouldn't recommend mucking around in the configure.php too much, seems like that's just asking for trouble..

    I simply access the site from the local computer using the same ip address. use http://192.168.0.xx from both the remote and the local computer. Should work fine..

  10. #10
    Join Date
    Jan 2004
    Posts
    66,378
    Blog Entries
    7
    Plugin Contributions
    274

    Default Re: Access to Admin area in a local network from another machine:- Password problem

    All those problems will go away when you give the site a proper domain name.
    .

    Zen Cart - putting the dream of business ownership within reach of anyone!
    Donate to: DrByte directly or to the Zen Cart team as a whole

    Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
    Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

 

 
Page 1 of 2 12 LastLast

Similar Threads

  1. v154 Cannot access install on local serveraccross local network.
    By RMPowell01 in forum Installing on a Windows Server
    Replies: 5
    Last Post: 15 Jan 2015, 06:08 PM
  2. Cannot access admin on WAMP on local machine
    By frank18 in forum Basic Configuration
    Replies: 12
    Last Post: 7 Apr 2011, 08:14 PM
  3. Replies: 1
    Last Post: 4 May 2010, 04:05 PM
  4. Cannot access zencart over local network
    By bikerlee in forum Installing on a Mac Server
    Replies: 4
    Last Post: 16 Nov 2007, 12:11 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg
Zen-Cart, Internet Selling Services, Klamath Falls, OR