Prefork: The prefork MPM uses multiple child processes with one thread each. Each process handles one connection at a time. On many systems, prefork is comparable in speed to worker, but uses more memory. Prefork’s threadless design has advantages over worker in some situations: it can be used with non-thread-safe third-party modules, and it is … Read More “Apache Prefork versus Worker” »
Category: PHP
PHP optimization, techniques and practises.
Open PowerShell as administrator, Copy and paste one or more of the following commands into the PowerShell prompt, pressing Enter after each one to remove the apps you don’t want on your Windows 10 system: Uninstall 3D Builder: Get-AppxPackage *3dbuilder* | Remove-AppxPackage Uninstall Alarms and Clock: Get-AppxPackage *windowsalarms* | Remove-AppxPackage Uninstall Calculator: Get-AppxPackage *windowscalculator* | … Read More “Remove Apps from Windows 10” »
Control Panel Logs Error log: /var/log/sw-cp-server/error_log and /var/log/sw-cp-server/sw-engine.log Access log: /usr/local/psa/admin/logs/httpsd_access_log Panel log: /usr/local/psa/admin/logs/panel.log Services Stop: /etc/init.d/psa stop Start: /etc/init.d/psa start Restart: /etc/init.d/psa restart Configuration PHP config: /usr/local/psa/admin/conf/php.ini Panel config: /usr/local/psa/admin/conf/panel.ini Web server config: /etc/sw-cp-server/conf.d/plesk.conf Web Presence Builder Logs Error log: /usr/local/psa/admin/logs/sitebuilder.log Install/upgrade logs: /usr/local/sb/tmp/ No service control (working via sw-cp-server service) Configuration /usr/local/sb/config /etc/sw-cp-server/conf.d/plesk.conf … Read More “Plesk/Odin Services Structure” »
WordPress is currently one of the most popular blogging/CMS applications. Here are some ideas for optimizing WordPress and reducing the CPU consumption of this PHP script. Make a backup of your account first, and then upgrade to the latest version of WordPress. The latest versions have optimized code that could reduce the CPU consumption of … Read More “WordPress Optimization” »
Here is the function for Encrypt and Decrypt (String, text, ids) for URL Using PHP. please set change $secret_key and $secret_iv for your wish to generate secure encryption and decryption keys. function encryptor($action, $string) { $output = false; $encrypt_method = “AES-256-CBC”; //pls set your unique hashing key $secret_key = ‘tst’; $secret_iv = ‘tst123’; // hash … Read More “Encrypt and Decrypt for URL Using PHP” »