Jump to content

  • You cannot start a new topic
  • You cannot reply to this topic

No Styles Showing Up On Apache/mac When Installing Existing Mv Instance Rate Topic   - - - - -

 
  • aaimnr
  • Newbie
  • Trial users
  • Join Date: 19-Mar 17
  • 10 posts

Posted 17 May 2017 - 10:26 AM #1

Hi, 

I succesfully deployed the same version of cs cart on multiple linux environments, but when installing locally on my mac/apache from the same repo, after getting through a number of permissions errors and setting them all up (+chowning the whole dir to apache daemon user), I get to the frontend and backend, but with COMPLETELY zero styles, just old schoold blue/violet html.

There's no 404s in any loaded resources and all seems fine, nothing in cs cart or apache log. Any ideas or suggestion what to check/change?

 

One strange thing is that on this site there's a  353kb sandalone.[long-hash].css being loaded (the content seems legit, full of css rules), while at the working envionments the standalone bundle has 58kb, even though the files and db is the same.

Any ideas? Many thanks!

 

 



 

Posted 17 May 2017 - 10:33 AM #2

Hello aaimnr,

 

this issue is arising due to wrong directory path in config.local.php

 

check there you will definitely find solution.



 
  • aaimnr
  • Newbie
  • Trial users
  • Join Date: 19-Mar 17
  • 10 posts

Posted 17 May 2017 - 11:16 AM #3

Hello aaimnr,

 

this issue is arising due to wrong directory path in config.local.php

 

check there you will definitely find solution.

 

 

Hey there, thanks for prompt response! Unfortunately the path seems ok, at least if you're thinking about:

 $config['http_path'] - without it set properly it doesn't work at all. Also, would the wrong setting result in 404s for css?

 

Thanks!



 
  • aaimnr
  • Newbie
  • Trial users
  • Join Date: 19-Mar 17
  • 10 posts

Posted 17 May 2017 - 11:22 AM #4

BTW I have a symlink in root apache dir and the 'http_path' setting contains this symlink exactly. Otherwise it results in just 'not found'. It should containt the physical dir on disk, right, but rather the URL segment after the host?



 
  • aaimnr
  • Newbie
  • Trial users
  • Join Date: 19-Mar 17
  • 10 posts

Posted 17 May 2017 - 11:30 AM #5

FYI if I point apache root dir directly to CS Cart directory (which avoids symlinks which are often problematic), the problem still persists, even though the config['http_path'] is just "/" and cannot be wrong now.



 
  • aaimnr
  • Newbie
  • Trial users
  • Join Date: 19-Mar 17
  • 10 posts

Posted 19 May 2017 - 11:55 AM #6

Any ideas? What could I check to diagnose it further? Eg. to check why 'standalone' css bundle has different size than on different environments with the same codebase?



 
  • eComLabs
  • CS-Cart Expert
  • Authorized Reseller
  • Join Date: 27-Jan 14
  • 19782 posts

Posted 19 May 2017 - 01:07 PM #7

Hello aaimnr,

 

Please try to use MAMP instead of default apache on Mac. I am using it on my Macbook and installed already 50+ test stores without changing the ownership of files or any other issues. It is very easy to setup and use it.


GET A FREE QUOTE | CS-Cart Add-ons | CS-Cart Licenses | CS-Cart Development | CS-Cart Design | Server Configuration | UniTheme and YOUPI
CS-Cart                USD 345     Multi-Vendor              USD 1250    CS-Cart RU                         24500 руб.
CS-Cart Ultimate  USD 775     CS-Cart + YOUPI      USD 545      CS-Cart RU + UniTheme    36000 руб.


 
  • aaimnr
  • Newbie
  • Trial users
  • Join Date: 19-Mar 17
  • 10 posts

Posted 20 May 2017 - 02:32 PM #8

Wow, thanks a million, it indeed solved the problem. Some day will try to investigate why it doesn't work on hombrew apache, but for now it's perfect. By the way, it's extremely slow (the only thing I changed in MAMP was to turn on APC), is there anything else I can do? I'm running on SSD macbook air, so shouldn't be that bad...



 
  • aaimnr
  • Newbie
  • Trial users
  • Join Date: 19-Mar 17
  • 10 posts

Posted 20 May 2017 - 02:44 PM #9

BTW for opcache (which is recommended by the cs cart team) the results are the same - ~10 sec per page



 
  • markhedley
  • Advanced Member
  • Trial users
  • Join Date: 19-Nov 16
  • 129 posts

Posted 23 May 2017 - 03:56 AM #10

BTW for opcache (which is recommended by the cs cart team) the results are the same - ~10 sec per page

Check the waterfall of the page load / resources then start looking at what might be going wrong. APC will only be of use if you are using PHP 7.x.

 

I'd suggest looking at Browser Caching and server side headers to keep the expiry of static resources over a period of a few weeks / months depending on your update frequency. I can help with server optimisation if you want to drop me a PM.

 

Memcache is also another alternative and Redis for session caching depending again on your traffic, site needs.

 

Beyond that, optimising content, images, CSS, Javascript delivery are among the many other tweaks. Also if you have server access its better to place the .htaccess rules inside apache for more resource / mem saving as Apache will poll each time to search for .htaccess recursively, thus leading to more slow TTFB (Time to First Byte) issues.

 

Etags, Expires, Vary headers and so on are other areas to look into :-) I've managed to fix all but a few small issues on my instance of CS Cart, also delete any unused addons, disabling the addon isn't often sufficient in some cases!



 
  • eComLabs
  • CS-Cart Expert
  • Authorized Reseller
  • Join Date: 27-Jan 14
  • 19782 posts

Posted 23 May 2017 - 01:02 PM #11

Wow, thanks a million, it indeed solved the problem. Some day will try to investigate why it doesn't work on hombrew apache, but for now it's perfect. By the way, it's extremely slow (the only thing I changed in MAMP was to turn on APC), is there anything else I can do? I'm running on SSD macbook air, so shouldn't be that bad...

 

Here I found the same problem. Please try suggestions from the answers: https://stackoverflo...es-is-very-slow


GET A FREE QUOTE | CS-Cart Add-ons | CS-Cart Licenses | CS-Cart Development | CS-Cart Design | Server Configuration | UniTheme and YOUPI
CS-Cart                USD 345     Multi-Vendor              USD 1250    CS-Cart RU                         24500 руб.
CS-Cart Ultimate  USD 775     CS-Cart + YOUPI      USD 545      CS-Cart RU + UniTheme    36000 руб.