Installing Apache2 With PHP5 And MySQL Support On Fedora 16 (LAMP)
LAMP is short for Linux, Apache, MySQL, PHP. This tutorial shows how you can install an Apache2 webserver on a Fedora 16 server with PHP5 support (mod_php) and MySQL support.
Installing Apache2 With PHP5 And MySQL Support On Fedora 16 (LAMP)
LAMP is short for Linux, Apache, MySQL, PHP. This tutorial shows how you can install an Apache2 webserver on a Fedora 16 server with PHP5 support (mod_php) and MySQL support.
Installing Apache2 With PHP5 And MySQL Support On CentOS 6.1 (LAMP)
LAMP is short for Linux, Apache, MySQL, PHP. This tutorial shows how you can install an Apache2 webserver on a CentOS 6.1 server with PHP5 support (mod_php) and MySQL support.
From simple to full featured cloud capacity
Cloud technologies and services increase every day. Global players like Amazon put continuously new features to their cloud and products to provide sufficiently functionality of actually web development activities and requirements.
Services for us
In fact, Amazon starts with the S3 (Simple Storages Service) to provide cloud storage space since 2006 and only a few months later EC2 (Elastic Compute Cloud) was launched a service to provide computing power to manage capacity as many as we need over time. Now, RDS (Relational Database Service) is available to get elastic database power as much as we need to cover all components that we require to implement the whole stack of current web applications.
Liquid …
Today's topic is deployment. It's called one-click deployment for
a reason: Developers are lazy.
It's hard to do less than clicking on one button, so that's our
goal.
With the growing need for lower time-to-market and faster
response to user feedback it is inevitable to not be limited by
technical factors (there are enough other obstacles already). The
focus lies on reproducible results.
So, what do we need? Actually, not much. Disregarding the tools
and practices that build the foundation of agile software
development, you only need a central build server. But you've
already got that one covered, right?
If you don't, you should get one. It's a huge help to discover
errors quickly and be alerted instantly. This usually leads to a
shorter time frame until a fix is done. Tests are run
continuously and new parts are integrated into the whole code
base.
Installing Apache2 With PHP5 And MySQL Support On CentOS 5.7 (LAMP)
LAMP is short for Linux, Apache, MySQL, PHP. This tutorial shows how you can install an Apache2 webserver on a CentOS 5.7 server with PHP5 support (mod_php) and MySQL support.
Introduction
Object-relational mapping (ORM) frameworks have been around for several years now and for some people, ORM is already outdated by now. As we have seen with other technologies and concepts before, PHP is not exactly what we call an early adopter among the programming languages. Thus it took some time for ORM to grow up in the PHP context.
There have been some frameworks before Doctrine 2 that implement ORM (remember e.g. Propel) specific tasks but most of them lack the required maturity to be used in large projects. With Doctrine 2, PHP takes a huge step into the right direction Doctrine 2 is fast, extensible and easy to use.
This article will take you on a tour through the main concepts of Doctrine 2 in the first part and then explain how to use it in a real world application in the second part. Since at the time of writing …
[Read more]I was giving a presentation of the MySQL’s Enterprise Monitor* application to a client recently. I was demonstrating the “graphs” section of MEM, where you can monitor MySQL sessions, connections, replication latency and more with 60+ graphs. Usually, you view the graphs from within the MEM Enterprise Dashboard (via a web browser). But the client asked if there was a way to automatically download graphs. I wasn’t sure why he wanted to download the graphs (I didn’t ask), but I knew it wasn’t possible by using MEM alone. However, in the past I have written Perl scripts to automatically download files from web sites, so I thought I would see if it was possible with MEM.
*The MySQL Enterprise Monitor (MEM) continuously monitors your MySQL servers and alerts you to potential … |
One of the great things about the HTTP protocol, besides status code 418, is that it's stateless. A web server therefore is not required to store any information on the user or allocate resources for a user after the individual request is done. By that a single web server can handle many many many different users easily, and well if it can't anymore one can add a new server, put a simple load balancer in front and scale out. Each of those web servers then handles its requests without the need for communication which leads to linear scaling (assuming network provides enough bandwidth etc.).
Now the Web isn't used for serving static documents only anymore but we have all these fancy web apps. And those applications often have the need for a state. The most trivial information they need is the current user. HTTP is a great protocol and provides a way to do authentication which …
[Read more]I love PHP's PDO (PHP Data Objects) extension; it gives a consistent, object-oriented interface to handling all kinds of relational database backends. One thing that annoys me is that the MySQL driver for PDO defaults to a silent error mode which can make SQL errors tricky to spot!
To give you an example, consider the query below (the correct
tablename is country
, so this SQL will fail):
$db = new PDO('mysql:host=localhost;dbname=sakila', 'user', 'pass'); $sql = 'select * from countrt'; $stmt = $db->query($sql); while(($row = $stmt->fetch()) != false) { echo $row['country'] . "\n"; }
The script will output an error because $stmt
is not
an object.
You have a few options here - you can check that you got an
object back before you try to do anything with it, for example.
Alternatively you can prepare()
and then …
I love PHP's PDO (PHP Data Objects) extension; it gives a consistent, object-oriented interface to handling all kinds of relational database backends. One thing that annoys me is that the MySQL driver for PDO defaults to a silent error mode which can make SQL errors tricky to spot!
To give you an example, consider the query below (the correct
tablename is country
, so this SQL will fail):
$db = new PDO('mysql:host=localhost;dbname=sakila', 'user', 'pass'); $sql = 'select * from countrt'; $stmt = $db->query($sql); while(($row = $stmt->fetch()) != false) { echo $row['country'] . "\n"; }
The script will output an error because $stmt
is not
an object.
You have a few options here - you can check that you got an
object back before you try to do anything with it, for example.
Alternatively you can prepare()
and then …