Jump to content

Recommended Posts

Hello,

 

I'd like to ask about tips which I didn't find anywhere, either a module (besides the one for 249$)

 

1. How to check will your server work with APC?

2. How to install it? Best I have found is http://php.net/manual/en/book.apc.php but it doesn't really say too much for a newbie.

 

 

Edit: added tags.

Edited by Crowell (see edit history)
Link to comment
Share on other sites

here is blog by community member dh42.

http://dh42.com/blog/apc-speed-prestashop/

 

note: if you do not find/fix native slow issue as discussed here

http://www.prestashop.com/forums/topic/350033-very-slow-shop-from-the-beginning

(assuming there are things you can do to make native faster)

 

then throwing underlying performance is sort of a waste of money...though I do think apc is good choice for shop owners.

  • Like 1
Link to comment
Share on other sites

1. How to check will your server work with APC?

 

Call your hosting provider and ask if they can install APC

 

 

2. How to install it? Best I have found is http://php.net/manual/en/book.apc.php but it doesn't really say too much for a newbie.

 

 

These are the directions I used.  This assumes you have root access to your server, and are using a linux based distro like centos.  I do not suggest you do this by yourself, you should ask your hosting provider to do this.  But I will provide these instructions since you asked.  

    sudo yum install php-pear php-devel httpd-devel pcre-devel gcc make

    #install from package or using PECL
    sudo yum install php-pecl-apc
    sudo pecl install apc
    

    # need to create a file /etc/php.d/apc.ini and add "extension=apc.so" to it
    echo "extension=apc.so" > /etc/php.d/apc.ini

    #restart apache
    /sbin/service httpd restart

    #Enable PHP APC administration.  You need to replace your webroot path here
    cp /usr/share/pear/apc.php /path/to/your/webroot

    #edit apc.php and set username and password
        defaults('ADMIN_USERNAME','apc');       // Admin Username
        defaults('ADMIN_PASSWORD','Set-Password-Here');  // Admin Password - CHANGE THIS TO ENABLE!!!
        
    #to uninstall
    sudo pecl uninstall apc
    sudo yum remove php-pecl-apc
  • Like 1
Link to comment
Share on other sites

Maybe someone will look for it.

 

Domain.com support:

 

"Our Technical Specialists have confirmed that even Memcashed or Xcache is not supported."

"Alternative PHP Cache is not supported on our servers."

 

Is the first cache option "File System" with the "Directory depth" 1, a good solution in this case? Or should I just disable it?
 

Link to comment
Share on other sites

Maybe someone will look for it.

 

Domain.com support:

 

"Our Technical Specialists have confirmed that even Memcashed or Xcache is not supported."

"Alternative PHP Cache is not supported on our servers."

 

Is the first cache option "File System" with the "Directory depth" 1, a good solution in this case? Or should I just disable it?

 

 

file cache is fine, level 1

 

you  may see strange behavior when uninstall/install modules, so turn off if you experience this while working in this area.

  • Like 2
Link to comment
Share on other sites

you typically never want to run cache enabled when testing, debugging or making changes.  So be sure to listen to El Patron's advice here, or you will rip your hair out wondering why things don't work.

 

As far as using file system cache and it being viable, this all depends on the hardware being used.  If the I/O (input/output) speeds on the hard drive on the server are slower than just performing the lookup or in-memory cache, then using file system may degrade your performance.

 

Trial and error, the answer for you may not be the answer for me or someone else's store.

  • Like 1
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...