XCache

XCache is an open-source opcode cacher, which means that it accelerates the performance of PHP on servers. It optimizes performance by removing the compilation time of PHP scripts by caching the compiled state of PHP scripts into the shm (RAM) and uses the compiled version straight from the RAM. This will increase the rate of […]

Read More

Test php memory limit

memory_limit sets the maximum amount of memory in bytes that a script is allowed to allocate. This helps prevent poorly written scripts for eating up all available memory on a server. There are many ways by which you can set the memory limit. 1. Set memory_limit = 16M to your server’s php.ini file (recommended, if […]

Read More

SuPHP

Suphp has lots of advantages like you can customize php configuration by defining separate php.ini for all your website. And you do not have to correct the ownership of the files that are created by php scripts. And also Files or directories no longer need to have 777 permissions. This option is probably the most […]

Read More

Sql.safe mode

Ever came across an error like these: Notice: SQL safe mode in effect – ignoring host/user/password information in [path]/adodb-mysql.inc.php on line 343 mysql_connect(): SQL safe mode in effect – ignoring host/user/password information in [path]/adodb- mysql.inc.php on line 339 The solution is very simple. In php.ini file, set [SQL] sql.safe_mode = Off If sql.safe_mode is enabled, […]

Read More

Securing PHP

PHP is one of the most popular applications that run on Linux and Windows servers today. It’s also one of the main sources for servers and user accounts getting compromised. If a secure server is one of your priorities, you can do the basic PHP security hardening as given below. 1. First, you want to […]

Read More

PHP Info Page

While installing a new application or deploying a script in your server, you might need to know the exact PHP configurations there. The PHP info page will help you in this regard. Create a file named info.php in the desired folder vi info.php and add the following lines in it. <?php phpinfo( ); ?> Now […]

Read More

Installing PHP extensions

No need to run easyapche to install/uninstall modules like zend optimizer, ioncube etc. You can use the command /scripts/phpextensionmgr to do it. Syntax: /scripts/phpextensionmgr install module_name You can see the supported modules using the command: /scripts/phpextensionmgr list . root@host [~]# /scripts/phpextensionmgr list Available Extensions: EAccelerator IonCubeLoader Zendopt SourceGuardian PHPSuHosin Let us know if you have […]

Read More