Page 1 of 4 123 ... LastLast
Results 1 to 10 of 36

Admin Problem

This is a discussion on Admin Problem within the osCmax v2 Installation issues forums, part of the osCmax v2.0 Forums category; hi I installed oscmax and now i can't login to admin when i type user and password admin panel: /shop/admin/login.php?osCAdminID=bd0f536c261b93ae6de65c2ae9930 ...

      
  1. #1
    Lurker
    Join Date
    Dec 2010
    Posts
    1
    Rep Power
    0


    Unhappy Admin Problem

    hi
    I installed oscmax and now i can't login to admin
    when i type user and password admin panel:

    /shop/admin/login.php?osCAdminID=bd0f536c261b93ae6de65c2ae9930 b7b

    is open:
    /shop/admin/index.php?osCAdminID=bd0f536c261b93ae6de65c2ae9930 b7b

    but whet click in item, for example:
    /shop/admin/admin_members.php?selected_box=administrator

    back to admin login:

    /shop/admin/login.php?osCAdminID=0c5a8544766544ab61596528be23e 3c0

    and i can not change items information...

    Please Help ME
    Thanks

  2. #2
    osCMax Developer

    michael_s's Avatar
    Join Date
    Jul 2002
    Location
    Phoenix, AZ
    Posts
    20,755
    Rep Power
    573


    Default Re: Admin Problem

    This is a sessions problem. osCmax looks like it is unable to keep the session. Usually incorrect session save path or cookie domain settings in configure.php. You can overcome both by editing your configure.php to store sessions in mysql and set the cookie domain to .yourdomain.com (make sure you change it to your actual domain name and the '.' needs to be there too).
    Michael Sasek
    osCMax Developer


    osCmax Installation Service
    - Have our professionals install osCmax on your server - same day service!
    osCmax 2.5 User Manual - the must have beginners guide to osCmax v2.5

    Stay Up To Date with everything osCMax:
    Free osCmax Newsletters - Security notices, New Releases, osCMax News
    osCmax on Twitter - Up to the minute info as it happens. Know it first.

    osCmax Documentation

  3. #3
    New Member
    Join Date
    May 2010
    Posts
    29
    Rep Power
    0


    Default Re: Admin Problem

    I just tried the Beta 3 and could not get into admin. I checked the session and it is set to mysql already.
    I just added mydomain.com to:
    includes/configure.php lines 17 and 18
    Code:
    define('HTTP_COOKIE_DOMAIN', 'http://www.mydomain.com/store/');
    define('HTTPS_COOKIE_DOMAIN', 'https://www.mydomain.com/store/');
    Not sure about lines 19 and 20:
    Code:
    define('HTTP_COOKIE_PATH', '/dev_oscmax/catalog/');
      define('HTTPS_COOKIE_PATH', '/dev_oscmax/catalog/');
    Trial and error

  4. #4
    New Member
    Join Date
    May 2010
    Posts
    29
    Rep Power
    0


    Default Re: Admin Problem

    I seem to be stuck, I changed the domain settings to my domain the the configure.php file.
    I get stuck after installation, I get:
    Congratulations! Your admin folder has been renamed to .

    When I click on Admin tool I get:
    http://www.mydomain.com/store//index.php

    When I enter my actual admin directory name it says cannot connect to database.
    Can someone please advise where I am going wrong. I am going to change some more things in the configure.php file and see how I go.

    Thanks

  5. #5
    osCMax Development Team met00's Avatar
    Join Date
    Oct 2005
    Location
    wherever I happen to be at the moment
    Posts
    859
    Blog Entries
    2
    Rep Power
    27


    1 out of 1 members found this post helpful.

    Default Re: Admin Problem

    Congratulations! Your admin folder has been renamed to .
    I consider this an installation defect (and have reported it as such). This is my procedure for an install (and I've done a lot of them lately). It is on a linux box (your mileage on whatever type of box other than that that you use may vary). This install method uses the directory root, not /catalog.

    1 ) upload files with FTP (putting the files in the directory root, not /catalog)
    2 ) make the database in phpmyadmin
    3 ) on the server go to the directory root and
    4 ) chmod 777 admin
    5 ) chmod 777 admin/includes
    6 ) chmod 777 includes
    7 ) chmod 777 ../httpdocs [required because I don't use catalog subdirectory]
    8 ) run osCmax install in the browser
    9 ) chmod 755 admin
    10) chmod 755 admin/includes
    11) chmod 755 includes
    12) chmod 755 ../httpdocs [don't forget this step or you have a very unsecure server]
    13) chmod 755 includes/configure.php
    14) chmod 755 {your admin name}/includes/configure.php
    15) mv install __install
    16) open up all the image directories to allow apache to write to them (you are gong to have to do it anyhow after you log into the admin and attempt to upload an image for a category or a product, might as well get it over with now)

    At this point you have a problem still. The configure.php files created by the install process are owned by the webserver. That has to be fixed or you will get an error that you can write to them. You could set them with a chmod 555 rather than 755, but the better thing to do is make the account the owner of them.

    17) chown {usernamle} includes/configure.php
    18 ) chgrp {groupname} includes/configure.php
    19) chown {username} {your admin name}/includes/configure.php
    20) chgrp {groupname} {your admin name}/includes/configure.php
    so endith the lesson
    <think>sometimes I just sit's and thinks</think>
    "Here you are with a hand full of holes, a thumb up your ass, and a big grin to pass the time of day with." - TWB

  6. #6
    osCMax Development Team
    ridexbuilder's Avatar
    Join Date
    Jul 2008
    Location
    Haggisland
    Posts
    3,370
    Rep Power
    57


    Default Re: Admin Problem

    Quote Originally Posted by met00 View Post
    1 ) upload files with FTP (putting the files in the directory root, not /catalog)
    Upload a tar.bz2 of the catalog directory and expand on the server - far quicker and more reliable, in my experience.
    1a ) rename the htaccess and configure files, as stated in the wiki.
    Those extensive permission changes as mentioned, are very much dependant on the server environment and are often not required where suphp/fastcgi/mod_php is used. All that is required is to make the config files writeable, prior to install, reverting when completed.

    Just another side to the coin.
    EJ
    Hosting plans with installation, configuration, contributions, support and maintenance.

  7. #7
    osCMax Development Team met00's Avatar
    Join Date
    Oct 2005
    Location
    wherever I happen to be at the moment
    Posts
    859
    Blog Entries
    2
    Rep Power
    27


    Default Re: Admin Problem

    not everyone uses tar, I was doing it the simple way.

    If you are not using /catalog, apache needs to be able to write at the root or it can't change the admin directory (not everyone has suphp - I know for a fact that at least two major hosting companies do not load that as an apache module).

    for example

    core prefork http_core mod_so mod_auth_basic mod_auth_digest mod_authn_file mod_authn_alias mod_authn_anon mod_authn_dbm mod_authn_default mod_authz_host mod_authz_user mod_authz_owner mod_authz_groupfile mod_authz_dbm mod_authz_default util_ldap mod_authnz_ldap mod_include mod_log_config mod_logio mod_env mod_ext_filter mod_mime_magic mod_expires mod_deflate mod_headers mod_usertrack mod_setenvif mod_mime mod_dav mod_status mod_autoindex mod_info mod_dav_fs mod_vhost_alias mod_negotiation mod_dir mod_actions mod_speling mod_userdir mod_alias mod_rewrite mod_proxy mod_proxy_balancer mod_proxy_ftp mod_proxy_http mod_proxy_connect mod_cache mod_suexec mod_disk_cache mod_file_cache mod_mem_cache mod_cgi mod_version mod_bw mod_fcgid mod_perl mod_php5 mod_proxy_ajp mod_ssl
    notice "mod_php5"

    Please note, that running mod_suphp and mod_php concurrently can be
    *VERY DANGEROUS* and should be avoided. The same applies to CGI
    scripts which are run with webserver privileges.
    so endith the lesson
    <think>sometimes I just sit's and thinks</think>
    "Here you are with a hand full of holes, a thumb up your ass, and a big grin to pass the time of day with." - TWB

  8. #8
    osCMax Developer

    michael_s's Avatar
    Join Date
    Jul 2002
    Location
    Phoenix, AZ
    Posts
    20,755
    Rep Power
    573


    Default Re: Admin Problem

    This is wrong:
    Code:
    define('HTTP_COOKIE_DOMAIN', 'http://www.mydomain.com/store/');
    define('HTTPS_COOKIE_DOMAIN', 'https://www.mydomain.com/store/');
    The cookie domain should never be a full url, just a host name like this:
    Code:
    define('HTTP_COOKIE_DOMAIN', '.mydomain.com');
    define('HTTPS_COOKIE_DOMAIN', '.mydomain.com');
    Michael Sasek
    osCMax Developer


    osCmax Installation Service
    - Have our professionals install osCmax on your server - same day service!
    osCmax 2.5 User Manual - the must have beginners guide to osCmax v2.5

    Stay Up To Date with everything osCMax:
    Free osCmax Newsletters - Security notices, New Releases, osCMax News
    osCmax on Twitter - Up to the minute info as it happens. Know it first.

    osCmax Documentation

  9. #9
    osCMax Development Team
    ridexbuilder's Avatar
    Join Date
    Jul 2008
    Location
    Haggisland
    Posts
    3,370
    Rep Power
    57


    Default Re: Admin Problem

    Good old Boss, back to the point in hand.
    I'm interested in the dot prefix - presumably to allow subdomains to be detected/separated, in terms of cookies. I've never found the need to change from the defaults, post installation.
    Hosting plans with installation, configuration, contributions, support and maintenance.

  10. #10
    osCMax Developer

    michael_s's Avatar
    Join Date
    Jul 2002
    Location
    Phoenix, AZ
    Posts
    20,755
    Rep Power
    573


    1 out of 1 members found this post helpful.

    Default Re: Admin Problem

    The . dot prefix covers the top level domain and any subdomains. It makes it valid for any subdomain and the tld. Just the least restrictive setting.
    Michael Sasek
    osCMax Developer


    osCmax Installation Service
    - Have our professionals install osCmax on your server - same day service!
    osCmax 2.5 User Manual - the must have beginners guide to osCmax v2.5

    Stay Up To Date with everything osCMax:
    Free osCmax Newsletters - Security notices, New Releases, osCMax News
    osCmax on Twitter - Up to the minute info as it happens. Know it first.

    osCmax Documentation

Page 1 of 4 123 ... LastLast

Similar Threads

  1. Admin pThumb Problem
    By Schaboo in forum osCmax v2 Installation issues
    Replies: 7
    Last Post: 08-19-2010, 01:45 PM
  2. Admin Problem on MS2-MAX v1.7.0 - can´t connect
    By harry in forum osCMax v1.7 Installation
    Replies: 5
    Last Post: 09-23-2004, 12:38 PM
  3. Problem in admin screen...
    By Anonymous in forum osCMax v1.7 Installation
    Replies: 2
    Last Post: 03-23-2004, 07:30 PM
  4. Admin email problem
    By robroymedia in forum osCmax v1.7 Discussion
    Replies: 2
    Last Post: 03-15-2004, 01:23 AM
  5. Admin Login problem
    By judoka in forum osCmax v1.7 Discussion
    Replies: 7
    Last Post: 09-17-2003, 10:25 AM

Tags for this Thread

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
  •