Results 1 to 9 of 9

Hybrid View

  1. #1
    Join Date
    Jun 2014
    Location
    hamilton, ohio
    Posts
    100
    Plugin Contributions
    0

    Default Re: WAMP / Apache INTERNAL SERVER ERROR when trying to move site to localhost...

    Well, I removed .htaccess file and it works now. Here is my .htaccess file, would if be ok to edit my site offline without the file, than upload it later if I reupload my site to the internet? Is it only for security, and could it break my site if I try to just re-include it later?:

    # Begin cache control #
    ExpiresActive on
    ExpiresActive off
    <FilesMatch ".*">
    Header unset Cache-Control
    Header unset Expires
    Header unset Last-Modified
    FileETag None
    Header unset Pragma
    </FilesMatch>
    # End cache control #


    Do I need to respell expiresactive somehow?

  2. #2
    Join Date
    Jun 2014
    Location
    hamilton, ohio
    Posts
    100
    Plugin Contributions
    0

    Default Re: WAMP / Apache INTERNAL SERVER ERROR when trying to move site to localhost...

    Well now I have another problem. I cannot sign in to my admin. I believe the problem stemmed from installing ioncube loaders on my wamp server. I tried to sign on to my admin WITHOUT the loaders, but it didn't work and prompted me to install them as some of my add ons use them. So I did that, and it appears I installed them correctly:



    Now when I try to go to my admin, it crashes apache. I believe it is due to the browser being redirected to "http://www.localhost.com/zencart154test2/zenadmin/" for no reason, when it should just go to "localhost/zencart154test2/zenadmin/". I am not sure why it is redirecting, it does it on firefox and EI. I am guessing it has something to do with the ioncube loaders. My website works fine for some reason, it's just my admin:

    Last edited by toomanyknots; 15 Mar 2015 at 10:01 PM.

  3. #3
    Join Date
    Apr 2012
    Location
    beijing
    Posts
    258
    Plugin Contributions
    1

    Default Re: WAMP / Apache INTERNAL SERVER ERROR when trying to move site to localhost...

    I prefer to do thing online.as after all,you have to be online.
    offline seems wasting a lot of time.
    focus on the open source for online shoping website.
    my site: best shop 24h.com

  4. #4
    Join Date
    Jan 2007
    Location
    Australia
    Posts
    6,167
    Plugin Contributions
    7

    Default Re: WAMP / Apache INTERNAL SERVER ERROR when trying to move site to localhost...

    Quote Originally Posted by win8win View Post
    I prefer to do thing online.as after all,you have to be online.
    offline seems wasting a lot of time.
    I call doing things online "Mistakes made while you watch" :-)

    Even worse, this is generally the same as saying "I'm so good, I can work without a backup".

    Worst advice ever!

    Cheers
    RodG

  5. #5
    Join Date
    Jun 2014
    Location
    hamilton, ohio
    Posts
    100
    Plugin Contributions
    0

    Default Re: WAMP / Apache INTERNAL SERVER ERROR when trying to move site to localhost...

    Thank you RodG. (sorry for the slow reply, I have been busy but I really appreciate the help!) In my includes/configure and my admin/includes/configure both are define('HTTP_SERVER', 'http://localhost'); neither use a www. If I go to "www.localhost" I get the same server not found message too so I don't know if redirecting is the problem or not but it seems like it to me.

  6. #6
    Join Date
    Feb 2012
    Location
    mostly harmless
    Posts
    1,809
    Plugin Contributions
    8

    Default Re: WAMP / Apache INTERNAL SERVER ERROR when trying to move site to localhost...

    Quote Originally Posted by toomanyknots View Post
    Well, I removed .htaccess file and it works now. ...

    [I]# Begin cache control #
    ExpiresActive on
    ExpiresActive off
    ...
    Just enable mod_expires in your Apache configuration (and make sure you set "AllowOverride All" or at least "AllowOverride Indexes" on the server root / virtual host root). Then those directives will work.


    Quote Originally Posted by toomanyknots View Post
    ... If I go to "www.localhost" I get the same server not found message too so I don't know if redirecting is the problem or not but it seems like it to me.
    Strange, can you confirm the issue started after installing IONCube? Can also check the Apache configuration and .htaccess files (for any FQDN style Redirect / RewriteRule directives) and your browser (any plugins or proxies).

    One alternative approach would be to change local domain name resolution for your computer so you can use something other than "localhost" and "localhost.localdomain".

    For example I currently have the following added to the host file on my development computer:

    Code:
    # Zen Cart Projects
    127.0.0.1       zencart.local
    127.0.0.1       www.zencart.local
    If you use a domain name such as "mydomain.local" and "www.mydomain.local" and configure Apache to use VirtualHost directives, it will make testing locally far easier. The multiple domain names on one IP address example should give a good idea how to accomplish this...

    For example I currently have the following added to the Apache configuration on my development computer:

    Code:
    # Allow Apache to serve the root folder
    <Directory "C:/workspaces/ZC/zencart/public_html/">
    	Options Indexes FollowSymLinks MultiViews
    
    	# Apache 2.4 requires mod_access_compat for these
    	AllowOverride all
    	Order allow,deny
    	Allow from all
    </Directory>
    
    # HTTP access
    <VirtualHost *:80>
    	ServerName zencart.local
    	ServerAlias www.zencart.local
    	DocumentRoot "C:/workspaces/ZC/zencart/public_html/"
    	ErrorLog "C:/workspaces/ZC/zencart/zencart-error.log"
    	CustomLog "C:/workspaces/ZC/zencart/zencart-access.log" common
    	SetEnv APPLICATION_ENV "development"
    </VirtualHost>
    
    # HTTPs access
    # Requires mod_ssl and SSL configuration elsewhere
    <VirtualHost *:443>
    	ServerName zencart.local
    	ServerAlias www.zencart.local
    	DocumentRoot "C:/workspaces/ZC/zencart/public_html/"
    	ErrorLog "C:/workspaces/ZC/zencart/zencart-error.log"
    	CustomLog "C:/workspaces/ZC/zencart/zencart-access.log" common
    	SetEnv APPLICATION_ENV "development"
    
    	SSLEngine on
    	SSLCertificateFile "C:/wamp/bin/openssl/certs/localhost.crt"
    	SSLCertificateKeyFile "C:/wamp/bin/openssl/private/localhost.key"
    </VirtualHost>
    The glass is not half full. The glass is not half empty. The glass is simply too big!
    Where are the Zen Cart Debug Logs? Where are the HTTP 500 / Server Error Logs?
    Zen Cart related projects maintained by lhûngîl : Plugin / Module Tracker

  7. #7
    Join Date
    Jan 2007
    Location
    Australia
    Posts
    6,167
    Plugin Contributions
    7

    Default Re: WAMP / Apache INTERNAL SERVER ERROR when trying to move site to localhost...

    Quote Originally Posted by toomanyknots View Post
    I tried to sign on to my admin WITHOUT the loaders, but it didn't work and prompted me to install them as some of my add ons use them.
    Any ideas as to what the add-ons are that need ironcube? (I've no doubt that it will be some kind of commercial add-on that isn't necessary for the cart to function)

    Quote Originally Posted by toomanyknots View Post
    Now when I try to go to my admin, it crashes apache. I believe it is due to the browser being redirected to "http://www.localhost.com/zencart154test2/zenadmin/" for no reason, when it should just go to "localhost/zencart154test2/zenadmin/".
    Computers *never* do anything for 'no reason'.

    Quote Originally Posted by toomanyknots View Post
    I am not sure why it is redirecting, it does it on firefox and EI. I am guessing it has something to do with the ioncube loaders. My website works fine for some reason, it's just my admin:
    Without knowing a little more about the ironcube add-on it is impossible to say if this is the cause of the redirects or not.

    If we assume that the problem *isn't* caused by these add-ons, then the 1st thing you need to check is the SERVER settings in you /zenadmin/includes/configure.php file.

    It should probably be
    define('HTTP_SERVER'. 'http://localhost') ;

    Note: Don't use a 'www' in this define (it can be done but you'll need to modify the server 'hosts' file else the server won't know that this is a 'local' server rather than a remote server)

    The DIR_WS_ADMIN path should be automatically determined with your ZenCart version, but before we consider that this isn't being correctly set for some reason we need to ensure the server setting is correct 1st.

    Cheers
    RodG

  8. #8
    Join Date
    Jan 2007
    Location
    Australia
    Posts
    6,167
    Plugin Contributions
    7

    Default Re: WAMP / Apache INTERNAL SERVER ERROR when trying to move site to localhost...

    Quote Originally Posted by toomanyknots View Post
    Well, I removed .htaccess file and it works now. Here is my .htaccess file, would if be ok to edit my site offline without the file
    Yes. That'll be no problem. In fact a default zen-cart installation doesn't have an .htaccess file in the root folder.

    Cheers
    RodG

 

 

Similar Threads

  1. v151 Server error 500 when trying to move store to localhost
    By McLovin in forum Installing on a Windows Server
    Replies: 2
    Last Post: 5 Feb 2014, 11:42 AM
  2. Replies: 5
    Last Post: 10 Jul 2013, 09:01 AM
  3. Replies: 3
    Last Post: 8 Oct 2012, 05:35 AM
  4. Internal Server Error when trying admin login
    By danxx in forum Installing on a Linux/Unix Server
    Replies: 3
    Last Post: 31 Mar 2009, 04:18 AM
  5. 500 Internal Server Error when trying to log into admin
    By kbalona in forum General Questions
    Replies: 3
    Last Post: 3 May 2007, 11:29 PM

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