disco_ii_disco Posted October 14, 2018 Share Posted October 14, 2018 Hi all, I have been searched the forums for a solution to my problem but I seem to have the opposite problem to what many people have experienced. I have a brand new localhost installation (I am using Xampp). I can login to the admin pages - using http://127.0.0.1/cubecart/admin_xyz123.php and http://localhost/cubecart/admin_xyz123.php However, when viewing http://127.0.0.1/cubecart/index.php or http://localhost/cubecart/index.php I get a "This site can’t be reached" message. I have tried multiple browsers. I have looked in global.inc.php but all seems correct there. Many thanks in advance for any help you can offer, Chris Link to comment Share on other sites More sharing options...
bsmither Posted October 14, 2018 Share Posted October 14, 2018 Normally, I would ask that you watch the Network panel of your browser's developer tools. However, I have seen that the network panel will not show anything unless and until the web server sends something back. So, if the browser is asking for an address that can't be reached, one won't know what is wrong from the network panel. Is there anything else the page mentions about not being able to reach the site? "Connection_refused", "time_out", some other reason? Link to comment Share on other sites More sharing options...
disco_ii_disco Posted October 16, 2018 Author Share Posted October 16, 2018 Hello, It's the standard Chrome message: " This site can’t be reached The connection was reset. Try: Checking the connection Checking the proxy and the firewall ERR_CONNECTION_RESET " Have tried turning Firewall off etc. Have tried other browsers. The Admin pages load perfectly well. Very strange. Cheers, Chris Link to comment Share on other sites More sharing options...
bsmither Posted October 16, 2018 Share Posted October 16, 2018 I would like for you to create the error_log. Also, please learn how to enable and log errors that the web server may generate. Link to comment Share on other sites More sharing options...
disco_ii_disco Posted October 16, 2018 Author Share Posted October 16, 2018 I have created the ini-custom.inc.php file exactly as described. Nothing shows up in the error log though, after attempting to load the store front. I have checked the error log in admin and also in the root directory. --- Have just tried a fresh installation and still same issue. Link to comment Share on other sites More sharing options...
bsmither Posted October 16, 2018 Share Posted October 16, 2018 For your local web server, please make sure it is configured to log accesses, and also to log any errors. (This is not the same as PHP's error_log.) Link to comment Share on other sites More sharing options...
Will H Posted October 17, 2018 Share Posted October 17, 2018 I am doing a localhost using EasyPHP Devserver 17.0 (Windows) and I think I went through this also.... 1. There is a line of code to edit in the sample httpd.conf file for Apache v2.4.x _. .../Apache/conf/http.conf <IfModule dir_module> DirectoryIndex index.html index.shtml index.wml index.pwml index.php index.php3 index.php4 index.php5 ; I had to add the bolded items to the statement. </IfModule> This maybe something that was needed for EasyPHP Devserver install only, I don't have enough experience to know. 2. I wonder if the .htacess file in root is the problem? Those are my immediate guesses. I spent the last 2 days "upgrading" EasyPHP Devserver v17.0 (Apache 2.2.5 x86, PhP v7.1.3, PhPmyadmin v4.7.0) --> Apache v2.3.5 (x86 and x64), PhP v 7.2.1.1 (x86), 7.3.0 RC4 (x86, x64), and PhPmyadmin v4.8.3) 3 Days ago I never dreamed I could host my site at home, for Dev purposes. Edit: Also, make sure ServerRoot "C:/webserver/eds-binaries/httpserver/apache2435vc15x86" ; is defined using "forward" slashes (line:37 in my conf) (Line 225:) ServerName 127.0.0.1:80 and for me... (Line:249) DocumentRoot "C:/webserver/eds-www" (Line:250) <Directory "C:/webserver/eds-www"> These were critical for me the way my server runs -> the default of " ./HTDOCS " would be at the end of the default path, ( " C:/webserver/binaries/apache2435/htdocs ") although my " public web " folder is placed in the middle of my dir structures by default. I hope this helps! Will Link to comment Share on other sites More sharing options...
disco_ii_disco Posted October 17, 2018 Author Share Posted October 17, 2018 13 hours ago, bsmither said: For your local web server, please make sure it is configured to log accesses, and also to log any errors. (This is not the same as PHP's error_log.) Right, I am in to the Apache error logs now and this line stands out.: [Wed Oct 17 11:47:57.452724 2018] [ssl:warn] [pid 19096:tid 600] AH01909: www.example.com:443:0 server certificate does NOT include an ID which matches the server name ---- I have SSL turned off in admin settings. The store URL is set to: http://127.0.0.1/cubecart. And the cookie domain is set to: 127.0.0.1 (have also tried .127.0.0.1). 9 hours ago, Will H said: I am doing a localhost using EasyPHP Devserver 17.0 (Windows) and I think I went through this also.... Thanks Will. I was using EasyPHP on my last computer, but ran in to problems on this new computer - so switched to Xampp. The setup was easy, and managed to get Opencart installed straight the way. But would prefer to stick with Cubecart! If my problems continue, I will try your advice with EasyPHP. Link to comment Share on other sites More sharing options...
disco_ii_disco Posted October 17, 2018 Author Share Posted October 17, 2018 Have just tried installing CubeCart 5.2.17 - worked first time! Have now worked my way through the 6's. 6.0.0 worked first time! 6.1.15 also worked first time. 6.2.1 and 6.2.2 did not work. And, whilst doing this, took a fresh download of 6.2.2 - installed and still have the same issue. Admin will open, storefront will not. Any code changes in 6.2 that could be causing this? Link to comment Share on other sites More sharing options...
bsmither Posted October 17, 2018 Share Posted October 17, 2018 On a Windows machine? Only happens on CC620+? Been there, done that. A new feature to squeeze CSS and javascript files into one each single file. Please read this: https://github.com/cubecart/v6/issues/1990 There will be a setting in the Apache config file that needs changing. Link to comment Share on other sites More sharing options...
disco_ii_disco Posted October 24, 2018 Author Share Posted October 24, 2018 Yep, on a new Windows 10 (64-bit) machine. Confirmed only happening after (and including) versions 6.2. Many thanks for providing the info - I read through it. I edited the httpd-mpm.conf file and increased the thread stack size in my EasyPHP binaries. Now the site won't load at all! Is there a way to disable the new feature (in 6.2) - or did you find a better work around? Link to comment Share on other sites More sharing options...
bsmither Posted October 24, 2018 Share Posted October 24, 2018 Won't load at all? CC622 honors the Debug mode. That is, if CubeCart has Debug mode enabled, the new squeezing code and minifier are not engaged. This particular problem is thus no longer involved. Now, the admin skin is not affected by the squeezing and minifying activities. Can you get into the administration section of your store? Link to comment Share on other sites More sharing options...
disco_ii_disco Posted October 30, 2018 Author Share Posted October 30, 2018 Thanks for the Debug mode tip. I went back to using XAMPP. I then encountered the "can not log in to admin on localhost error " using Chrome so I switched to Firefox Once logged in to admin, I turned on Debug mode I now have the latest version of Cubecart working on my computer and can finally access both storefront and admin! Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.