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:

The solution is very simple. In php.ini file, set

If sql.safe_mode is enabled, mysql_connect() and mysql_pconnect() ignore any arguments passed to them. Instead, PHP attempts to connect using the following details: host: local host user: the user PHP runs as password: an empty string (“”) […]

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

and add the following lines in it.

Now access the file via […]

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:

You can see the supported modules using the command: /scripts/phpextensionmgr list .

Let us know if you have any queries.

Read More