How to Fix Out of Memory Script Errors

A common problem you might face when running PHP scripts is an “out of memory” error. It usually looks something like this:
PHP Fatal error: Out of memory (allocated 51795435) (tried to allocate 84524 bytes) in /home/user/public_html/randomdirectory/file.php on line 750
First, it is important to understand what this error means. PHP is configured to only allow a […]

How to Edit php.ini In WHM

PHP is one of the most popular server-side scripting languages on the web. Many large, medium, and small websites rely on it to provide dynamic content. Whenever you need to adjust the settings of PHP, you will need to access the php.ini file. It is easy enough to access through SSH, but if you ever […]

How to Manage PHP Resource Limits in Webmin

PHP resource limits refer to the maximum amount of resources PHP can use to perform various operations. For example, if you have content management system (CMS) that allows you to upload media, PHP may have set a certain limit on the size of file that you can upload. Similarly, when working with MySQL databases in […]

How to Setup ownCloud: Open Source Cloud File Storage

The cloud has become quite popular in the IT world. One could say that the cloud is taking the tech world by “storm”. There are many reasons for this, some financial, others practical, but ultimately it is an option that is worth considering.
The most popular form of cloud computing is the public cloud. In this […]

How to Increase Your PHP Upload Limit

Picture this:  You have a shiny new web application that allows your website’s users to upload videos through a web interface.  They are meant to be short videos that do not take up much space or bandwidth (100MB or less), but when you finally open the doors to let the users have at it, you […]

How to Create a phpinfo Page

A phpinfo page is a simple PHP script that usually only has one line of code:
<? php phpinfo(); ?>
You can create a phpinfo.php file and place it anywhere on any website on your server to view the current PHP configuration. That single line of code will return a plethora of detailed information about your […]

How to Hide Apache Header Information

One of the features of Apache that can sometimes be a liability is the web server header. This is an identification string that is sent to user agents. By default, Apache will tell the world about your Apache version, modules that you have installed, and even your operating system and version. Attackers […]

PHP the Module vs PHP the CGI Script

Some debates seem to have no end. Which came first, the chicken or the egg? Team Edward or Team Jacob? Paper or Plastic? In the world of dedicated servers, the ongoing debate is whether to use PHP as an Apache module or as a separate CGI script.
The current trend with most […]