@sandeep I am using this configuration:
Nginx + Varnish + Apache PHP-FPM Performance
Posts made by legend
-
RE: changing docroot to pub magento
-
changing docroot to pub magento
This question has been bugging me for a while.How do you achieve this in cwp for the nginx, varnish, apache-php-fpm configuration?
The magento docs says to edit apache vhost and configure nginx vhost to include its sample nginx.
I can access my files in the root directory from the browser which I beleive is a security risk.
Cheers.
-
include /var/www/magento2/nginx.conf.sample;
How do you add the below statements in nginx as suggested by magento:
set $MAGE_ROOT /var/www/magento2; include /var/www/magento2/nginx.conf.sample;
-
RE: creating custom templates in cwp
@sandeep thanks how will you please create a custom template for this for example: /etc/nginx/nginx.conf
-
creating custom templates in cwp
How will the server recoginised and use these custom templates. Do you need to symlink them etc. If yes how do ou do that?
And what happens to the default templates?
Cheers
-
RE: apache configuration for magento 2
@sandeep do I need to create custom templates so they are not override during updates?
-
apache configuration for magento 2
Could you help me where do i make these changes in apache in cwp please:
Enable rewrites and .htaccess for CentOS 7: Open /etc/httpd/conf/httpd.conf file for editing: vim /etc/httpd/conf/httpd.conf` Locate the block that starts with: <Directory /var/www/html> Change the value of AllowOverride to All. For example, <Directory /var/www/> Options Indexes FollowSymLinks MultiViews AllowOverride All Order allow,deny Allow from all <Directory>
-
RE: How to setup opcache with php-fpm73
@sandeep no.
any test script will be helpful.
-
RE: How to setup opcache with php-fpm73
@sandeep
in /opt/alt/php-fpm73/usr/php/php.d/opcache.ini :zend_extension=/opt/alt/php-fpm73/usr/lib/php/extensions/no-debug-non-zts-20180731/opcache.so opcache.enable=1 opcache.enable_cli=1 opcache.memory_consumption=128 opcache.interned_strings_buffer=8 opcache.max_accelerated_files=39406 opcache.revalidate_freq=60 opcache.fast_shutdown=1
in /home/user/public_html/.user.ini under user cwp:
zend_extension=/opt/alt/php-fpm73/usr/lib/php/extensions/no-debug-non-zts-20180731/opcache.so opcache.enable=1 opcache.enable_cli=1 opcache.memory_consumption=128 opcache.interned_strings_buffer=8 opcache.max_accelerated_files=39406 opcache.revalidate_freq=60 opcache.fast_shutdown=1 opcache.save_comments=1
in php-fpm info:
Zend OPcache Opcode Caching => Up and Running Optimization => Enabled SHM Cache => Enabled File Cache => Disabled Startup => OK Shared memory model => mmap Cache hits => 0 Cache misses => 0 Used memory => 11528248 Free memory => 122689480 Wasted memory => 0 Interned Strings Used memory => 461896 Interned Strings Free memory => 5829136 Cached scripts => 0 Cached keys => 0 Max keys => 65407 OOM restarts => 0 Hash keys restarts => 0 Manual restarts => 0 Directive => Local Value => Master Value opcache.blacklist_filename => no value => no value opcache.consistency_checks => 0 => 0 opcache.dups_fix => Off => Off opcache.enable => On => On opcache.enable_cli => On => On opcache.enable_file_override => Off => Off opcache.error_log => no value => no value opcache.file_cache => no value => no value opcache.file_cache_consistency_checks => On => On opcache.file_cache_only => Off => Off opcache.file_update_protection => 2 => 2 opcache.force_restart_timeout => 180 => 180 opcache.huge_code_pages => Off => Off opcache.interned_strings_buffer => 8 => 8 opcache.lockfile_path => /tmp => /tmp opcache.log_verbosity_level => 1 => 1 opcache.max_accelerated_files => 39406 => 39406 opcache.max_file_size => 0 => 0 opcache.max_wasted_percentage => 5 => 5 opcache.memory_consumption => 128 => 128 opcache.opt_debug_level => 0 => 0 opcache.optimization_level => 0x7FFEBFFF => 0x7FFEBFFF opcache.preferred_memory_model => no value => no value opcache.protect_memory => Off => Off opcache.restrict_api => no value => no value opcache.revalidate_freq => 60 => 60 opcache.revalidate_path => Off => Off opcache.save_comments => On => On opcache.use_cwd => On => On opcache.validate_permission => Off => Off opcache.validate_root => Off => Off opcache.validate_timestamps => On => On
-
RE: How to setup opcache with php-fpm73
@sandeep I checked and its there but I am not get any hits when I check the php info in cwp under php-fpm selector.
-
How to setup opcache with php-fpm73
Would anyone kindly provide a good tutorial for this please. I have search but could not get a guide
Cheers.
-
RE: CWP - memcache, memcached and redis, redis cluster
@sandeep my site supports it. its for magento and whmcs.
i want php to save to seesions to memcached and to files as the default. redis is good as php handler but it has issues with whmcs.
For magento, redis will handle session and page cache while varnish is for full page cache.
-
RE: CWP - memcache, memcached and redis, redis cluster
@sandeep Thanks. Do you have a tutorial on using memcached as a php session handler or this occur by default after mecached installtion?
-
RE: CWP - memcache, memcached and redis, redis cluster
@sandeep Thanks for this excellent support.
As from the above, i installed memcached, mecache directly from the cwp. Should I remove them and follow the this https://github.com/websupport-sk/pecl-memcache/blob/NON_BLOCKING_IO_php8/README for php7.3 or php-fpm73?
-
CWP - memcache, memcached and redis, redis cluster
I have memcached running on my server. But phpinfo.info shows that only memcahe is installed.
php -i | grep memcach gives:
memcache memcache support => enabled memcache.allow_failover => 1 => 1 memcache.chunk_size => 32768 => 32768 memcache.compress_threshold => 20000 => 20000 memcache.default_port => 11211 => 11211 memcache.hash_function => crc32 => crc32 memcache.hash_strategy => consistent => consistent memcache.lock_timeout => 15 => 15 memcache.max_failover_attempts => 20 => 20 memcache.prefix_host_key => Off => Off memcache.prefix_host_key_remove_subdomain => Off => Off memcache.prefix_host_key_remove_www => On => On memcache.prefix_static_key => no value => no value memcache.protocol => ascii => ascii memcache.redundancy => 1 => 1 memcache.session_prefix_host_key => Off => Off memcache.session_prefix_host_key_remove_subdomain => Off => Off memcache.session_prefix_host_key_remove_www => On => On memcache.session_prefix_static_key => no value => no value memcache.session_redundancy => 2 => 2 memcache.session_save_path => no value => no value memcached memcached support => enabled libmemcached version => 1.0.18 memcached.compression_factor => 1.3 => 1.3 memcached.compression_threshold => 2000 => 2000 memcached.compression_type => fastlz => fastlz memcached.default_binary_protocol => Off => Off memcached.default_connect_timeout => 0 => 0 memcached.default_consistent_hash => Off => Off memcached.serializer => php => php memcached.sess_binary_protocol => On => On memcached.sess_connect_timeout => 0 => 0 memcached.sess_consistent_hash => On => On memcached.sess_consistent_hash_type => ketama => ketama memcached.sess_lock_expire => 0 => 0 memcached.sess_lock_max_wait => not set => not set memcached.sess_lock_retries => 5 => 5 memcached.sess_lock_wait => not set => not set memcached.sess_lock_wait_max => 150 => 150 memcached.sess_lock_wait_min => 150 => 150 memcached.sess_locking => On => On memcached.sess_number_of_replicas => 0 => 0 memcached.sess_persistent => Off => Off memcached.sess_prefix => memc.sess.key. => memc.sess.key. memcached.sess_randomize_replica_read => Off => Off memcached.sess_remove_failed_servers => Off => Off memcached.sess_sasl_password => no value => no value memcached.sess_sasl_username => no value => no value memcached.sess_server_failure_limit => 0 => 0 memcached.store_retry_count => 2 => 2 Registered save handlers => files user memcached memcache redis rediscluster
-
I want to understand what the above means.
-
what is the meaning of this: Registered save handlers => files user memcached memcache redis rediscluster
-
How do i setup memcached as php session handler. I have not see a guide that will help.
-