Many Linux operating systems offer the ability to upgrade to a new version of the OS without wiping the hard drive and reinstalling. On a dedicated server, you might call this an in-box upgrade. Generally, a new version of your Linux distribution will include a newer kernel version and newer software. Is such an upgrade […]
PHP is a versatile server side scripting language that powers many of the world’s websites. Sometimes, however, things can go wrong. The following are tips to help you troubleshoot your PHP installation.
Scripts do not execute – If you load a PHP page and see the contents of the file rather than the proper […]
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 […]
HipHop can improve your server’s PHP performance. No, I do not mean the hip hop you might hear on your favorite rapper’s latest album. In this case, HipHop refers to some PHP improvements originally created by Facebook and then released as free and open source software. HipHop can significantly increase PHP web application speed and […]
It is a common error on websites, yet it is one of the most annoying for web developers and system administrators. The dreaded 500 “Internet Server Error” has plagued webmasters for years. Sometimes, it is very easy to fix, but it may be difficult to find out what the problem actually is because it is […]
LAMP is a software stack for servers that refers to Linux Apache MySQL and PHP. It is still one of the most common configurations for servers and web applications, and it is very easy to install on Ubuntu servers. Simply follow these instructions:
The first part of LAMP, namely Linux, should already be installed, so […]
If you have ever installed Apache HTTP Server and had it up and running perfectly without any issues, you are truly a genius or very lucky. Inevitably, you are going to encounter a few hiccups if you are doing things manually. With all of the imaging, virtual machines, and hosting automation technology, few system administrators […]
PHP is a server-side scripting language that is among the most popular choices for web applications. Web administrators love it, and some of the world’s top websites rely on it. Because it uses server-side scripting, however, there are inherent risks involved with using it. By knowing those risks and how to deal with them, you […]
Web applications, as the name plainly states, are applications that run on the web rather than on a person’s personal computer or laptop. This makes them extremely versatile, since any device capable of connecting to the web can use them. The methods for developing and deploying web apps vary, but the end result is essentially […]
When covering application security, there are three basic application types you should consider:
Standard applications that you install directly on your server’s operating system and run only when you need them
Applications that are run as daemons or services, starting at boot time and continuing to run as long as the server is on
Web applications […]
Choosing your operating system and web server software is only the beginning. If you need a custom dedicated server built to your specifications, you will need to specify several other types of software, including database system, DNS, mail transfer agent (MTA), scripting languages (PHP, Ruby, Perl, etc.), firewall, virtualization, and more.
DNS – The management of […]
System administrators do not normally concern themselves with web development, and blogs like Dedicated Server School are not normally in the business of discussing web design techniques, but there are some exceptions. The first notable exception occurs when the actions of web developers directly affect the performance of a server. Such is the case with […]
Websites have graduated far beyond simple text-based one-page documents. Most include all sorts of multimedia, from videos to full animated applications. Many small website owners may rely on cloud service providers for their music and video streaming, but if you ever need to host your own media content, you will probably need a program that […]
In most situations, an individual or company will keep the same operating system for the entire time they use a server. While there may be occasional upgrades, these usually do not involve switching to another OS completely. At the end of the server’s life, however, you may decide to go with a different OS. If […]
If you have used enough PHP scripts on web servers, you have undoubtedly encountered “out of memory” errors at some point. While they are annoying and even damaging to business when they interrupt service on a website, they are relatively easy to diagnose and fix.
If you do a quick search for a solution to this […]
MySQL is a powerful database server that you can use in conjunction with server-side scripting like PHP to enhance your websites with dynamic content. By default, the only way to manage MySQL is from the command line. Fortunately, there are web-based tools like phpMyAdmin and cPanel that provide other options.
In cPanel, you can create and […]
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 […]
Making the decision to start your own dedicated server can be both exciting and overwhelming. There are numerous aspects of the server you must consider, from security to total cost of ownership. It is not easy, but it can be very rewarding for your business, organization, club, or personal use. The following are six considerations […]
When picking web server software, you should use the same considerations you used when choosing an operating system. You will also have to consider compatibility with your operating system and the best overall efficiency for the type of site or sites you want to run.
The following are some of the factors […]
Major OS or software upgrades can be exciting for a system administrator, but they can also be a little frightening. What if something breaks? What if you lose everything and have hours or even days of down time? This can be especially troubling if you have web applications and are […]
Earlier this week, we looked at GZIP compression for Apache HTTP Server, which helps reduce the load time on websites and minimize bandwidth usage. Many websites use some form of server-side scripting to produce on-the-fly dynamic content pages. PHP is one of the most popular scripting languages of the web, and XCache is a useful […]
Server-side scripting is a method of programming for the web that relies on software running on the server to execute instructions rather than the user’s browser or installed plugins. In this way, the resulting page or web application appears to be a regularly generated HTML page at the time of loading. Some of the benefits […]
When running a dedicated server, you don’t necessarily need to know how to program, but you do need to know what programming languages are available and how to install them. What follows are a list of some of the most important scripting language that you may want to have installed, available, and in a […]
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 […]
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 […]
If you hang out in the IT community long enough, you are bound to hear the term LAMP thrown around by people involved in web hosting, dedicated servers, and web development. The LAMP stack, as it is commonly called is the combination of a Linux-based operating system, Apache HTTP Server, MySQL database […]
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 […]
In an earlier post, I went over some of the common error codes for Apache web servers. Most of them, like “404 Not Found”, are pretty easy to troubleshoot; however, one of the more obscure errors is “500 Internal Server Error”. It is clear from the error that something running on the […]
ImageMagick is a powerful software suite that gives users the ability to create, manipulate, and process images in a variety of formats, including JPEG, TIFF, and PNG. It comes with a collection of command line tools for batch image conversion and many other tasks. It also serves as a frontend for a […]
PHP is a versatile tool that millions of sites use to power their content management systems and user interfaces. Its flexibility and dynamic nature make it deal for the era of the Internet that has been dubbed “Web 2.0”. It is, therefore, no surprise that the highly praised LAMP (Linux+Apache+MySQL+PHP) stack includes PHP.