Posts Tagged ‘PHP’

 

How to Install LAMP, Webmin & ConfigServer Security & Firewall on a CentOS 6.0 GoGrid Cloud Server

Thursday, July 19th, 2012 by

Let me preface this post by saying, I am NOT a Linux guru. In fact, I consider myself to be a newbie when it comes to the intricacies of Linux. I probably know enough to be dangerous, at least dangerous to the server. So, I’m writing this post with the following disclaimer: Don’t ask me for any details on the “why” or how to do what I’m outlining below differently. But since I figured that lots of you are like me, I wanted to share.

Since I’m a Linux newbie, you’ll probably understand why I wanted to write this post though. I’m not a command line junkie—GUIs are much more my thing. But when it comes to running a server that is speedy and high performance with low overhead (e.g., doing away with GUIs), you’re probably looking at various Linux distros. What I wanted to do was set up a basic Linux system running a LAMP (Linux, Apache, MySQL, and PHP) stack that also had a web-interface and some added security controls.

The great thing about doing this type of experimentation in the cloud is that I can create essentially a Dev & Test environment where I can spin up a server in minutes, install software, configure it, and test everything out. Then if it doesn’t work the way I want it to, I can tear it down and start again from scratch. The cloud lets you do this quickly, easily, and inexpensively.

In this tutorial, you can basically have the entire configuration up and running in the GoGrid cloud in less than an hour and only spend about $0.25 to test this out (assumes a 2 GB server running for 1 hour at $0.12/GB RAM/hr.)

Here’s what we’re using:

  • CentOS 6.0 (64-bit) – with 2 GB RAM
  • Webmin – web-based interface for sysadmins for UNIX that lets users set up user accounts, Apache, DNS, file sharing, and a whole lot more
  • ConfigServer Firewall & Security (CFS) – a Stateful Packet Inspection (SPI) firewall, login/intrusion detection, and security application for Linux servers

(more…) «How to Install LAMP, Webmin & ConfigServer Security & Firewall on a CentOS 6.0 GoGrid Cloud Server»

Speeding Things Up in the Cloud with NGINX

Monday, March 26th, 2012 by

clip_image001 clip_image002 clip_image004

It’s been no secret to us in the high-performance, web server in-crowd that NGINX (pronounced “engine-x”) has been taking the webhosting world by storm for the last several years; *sites like WordPress, Facebook, Hulu, Github, SourceForge and more have been offloading some or many functions onto NGINX. I had originally been exposed to NGINX whilst researching for a higher-performance web server that was 64-bit friendlier than Apache, and that was did not use single threads. Apache has an enormous memory footprint on 64-bit systems and is a single-threaded application.

NGINX is a very flexible HTTP server that can also serve as a reverse proxy, load balancer, caching server, and an IMAP/POP3 proxy. Unlike Apache, however, the configuration is a little bit more involved and can be a big change for Apache loyalists.

In this is example, NGINX will be configured as a full webserver with PHP support. My goal when conjuring this project was to make a pre-configured Community GSI on the GoGrid Exchange with as little modification as possible to ensure a “pure” environment. If you’re anything like me, you might tremble at the thought of even using a typical, pre-configured server with a LAMP stack; I personally like setting things up from scratch, but there’ve been plenty of situations where I would’ve preferred a pre-configured solution. Hopefully I can capture the essence of my intentions.

One thing I should note before I get started is that NGINX does not have a module for PHP the way Apache does; PHP must be run using the FastCGI methodology. Much like the way you would pass requests to a Java container or reverse proxy, so must we for PHP.

The first thing I should mention is that I’m using the EPEL and IUS repositories to for the latest versions of NGINX and PHP-FPM. IUS is the official repository for RHEL/CentOS as referenced by PHP.net. Using these 2 repositories will not alter any existing packages on your system.

(more…) «Speeding Things Up in the Cloud with NGINX»

GoGrid Launches new PHP-enabled Windows 2008 Cloud Servers

Monday, October 27th, 2008 by

win2k8_robot_php_gogrid_sm GoGrid recently released 4 new Windows Server 2008 images unique to Cloud Computing that brings a new level of features for PHP and ASP.NET developers. In the past, there was heavy segmentation between developers who used .NET for development and those who used PHP. Traditionally, .NET developers used the Windows platform while PHP developers remained fairly closely tied to Linux distributions. Windows Server 2008 marks a new generation of platform for both types of developers in that now with 1 server platform both PHP and ASP.NET applications can be run simultaneously on the same machine under the same OS. This means that companies and corporations can realize new cost savings and IT efficiencies by now allowing development on a single Windows Server 2008 platform.

GoGrid has released 4 new 32-bit Windows Server 2008 GoGrid Cloud Servers with the following configurations (with more on the way soon):

  • Windows Server 2008 – IIS 7.0, Microsoft SQL Server 2005 Express, PHP5 (WISP stack)
  • Windows Server 2008 – IIS 7.0, ASP.NET, Microsoft SQL Server 2005 Express, PHP5 (WISP+.NET stack)
  • Windows Server 2008 – IIS 7.0, mySQL 5, PHP5 (WIMP stack)
  • Windows Server 2008 – Apache, Microsoft SQL Server 2005 Express, PHP5 (WASP stack)

The two WISP stacks were fully vetted and optimized with the help of senior engineers within Microsoft, employing best practices for not only base-lining these WISP images, but also with IIS optimization and security.

As mentioned within the recent press release, “default PHP installations run extremely well on Windows Server 2008 without any need for additional fine-tuning and Windows is a solid infrastructure solution for PHP development and deployment. The combination of PHP, ASP.NET and the .NET framework is a robust offering for any type of developer utilizing Microsoft and Open Source technologies.”

GoGrid released these new images specifically for the Microsoft Professional Developer’s Conference 2008 (PDC) where GoGrid is exhibiting at booth #914. The PDC is Microsoft’s premier gathering of leading-edge developers and architects and is the event to learn about the future of the Microsoft platform, exchange ideas with fellow professionals and hear about upcoming Microsoft Server related products. Developers who utilize Microsoft technologies are encouraged to visit the GoGrid booth where they can receive a free trial of GoGrid Cloud Servers.

(more…) «GoGrid Launches new PHP-enabled Windows 2008 Cloud Servers»

New Server Templates added to GoGrid (Part 1)

Thursday, April 10th, 2008 by

As part of our regular updates to GoGrid code and functionality, we have released several new Web/Application and Database Sever Templates to GoGrid. This is part of a two set release with the next round coming tomorrow. (More information on the second set of templates in a subsequent blog post.)

gogrid_os_logos

One of the great features of GoGrid is the ability to instantly create new servers based on precompiled and tested templates. Our goal is to provide a significant number of templates to match many different development needs and do so in a timely manner.

Yesterday, we released the following templates:

Web/Application Servers:

  • CentOS 4.5 (32-bit) with LAMP (Linux, Apache, MySQL and PHP) stack
  • Red Hat Enterprise Linux 4 (32-bit) with LAMP stack
  • Windows 2003 Server (32-bit) with IIS, ASP.NET and Microsoft SQL Server 2005 Express

Database Servers: (more…) «New Server Templates added to GoGrid (Part 1)»