Converting dynamic disk to basic

While trying to install Windows 7 on one of my old SATA disk I stumbled upon this dynamic disk problem.
It means, that you cannot install Windows on a dynamic disk type. Apparently I've created a dynamic SATA disk type somehow...
To change it to basic. Boot up the Windows 7 cd and go to the part where it finds your harddisk but fails to install or delete.
From here, call up the command prompt and call up the DISKPART tool.

Type:
- diskpart

At the DISKPART prompt, type:
- list disk

Creating dynamic finders for Zend Db Table

I don't have to tell you that programmers are lazy.
That's why we love DRY (Don't Repeat Yourself).
If you find yourself creating lots of methods like findByName or findByTitle etc., you're going love what I'm about to show you.
With the dynamic finders you can use the following methods out of the box (ofcourse you'll have to extend your DbTable class to it).
- findByX('valueX')
- findLikeX('ValueX')
- findByXAndY('ValueX', 'ValueY')
- findLikeXAndY('ValueX', 'ValueY')
- findAllByX('valueX')
- findAllLikeX('valueX')

Using different databases with Zend Framework MultiDb

We can use Zend multiDb resource to connect to multiple databases.
We'll need 1 default database adapter or it will fail. Also I like having the profiler with the FireBug console during testing, so you can set it to true if you want.

Setup Samba filesharing on Ubuntu server

I like working with Zend Studio, although version 8 kinda sucks. Especially when it comes to remote folders.
Anyway, there's still lots of stuff left before my VMware has everything it needs.
Setting up a Samba share was easier than I expected.

sudo apt-get install samba
sudo vim /etc/samba/smb.conf
(if your background in vim is too dark type this: set background=dark)

Creating a PHP VHost under LiteSpeed

Previously I setup the PHP environment and the PHP VHost template, so I can create a PHP VHost in seconds.
Instead of creating an httpd conf for every website, you can just add a website in the admin webinterface of LiteSpeed web server.
Before we do that, we have to setup the skeleton directories for our php site. I mention specifically PHP, because we can also run Ruby sites with LiteSpeed :)

Preparing PHP environment on LiteSpeed

If you came from an Apache environment, you might have set your Virutal Host root dir to /var/www.
By default, this folder is created under the root user.
If you already have websites running under /var/www or other locations you can leave it like it is. For me, I like to run it under my home dir so I don't have to worry about permissions set by root.
One of the nice thing about experimenting with new stuff is that you can do whatever you want :)

Upgrading PHP on LiteSpeed (Ubuntu server 32bit)

Took me 2 days to figure out how to install the png lib, cause it kept failing over and over.
There's 2 ways to install PHP with LiteSpeed. Below is the hard way, that I took. And all the way at the bottom is the easy way. I did test the easy way, because I forgot to compile PDO_MYSQL along.

Installing phpMyAdmin for LiteSpeed

I like to work with phpMyAdmin. But the only web server I ran phpMyAdmin under was Apache.
Since I only have LiteSpeed running, I wanted to make phpMyAdmin run under this web server too.
First I grabbed the latest copy of phpMyAdmin, wich was a release of 2 days ago. What a coincidence.

Installing MySQL on Ubuntu server

Previously I've had the LiteSpeed web server installed. So it's time for me to add MySQL and later on CouchDB.
First we install the server and client package with:

sudo apt-get install mysql-server mysql-client

During the installation you'll get a prompt to fill in a password for the mysql root user. Just enter a password or not. It's up to you.
In the old days, you had to create a password for the root user yourself after the installation.

MySQL will start after the installation is finished.
You can check this with

Installing LiteSpeed on Ubuntu server

So what the heck is LiteSpeed?
I asked that question myself, when I was looking for an apache alternative.
After hunting down hundreds of websites, comparing lighttpd with apache and nginx, I came across the web server called LiteSpeed.
Sounds interesting huh?
Well guess what, it is!

Demo's and features
- Live demo's
- Standard vs Enterprise version

Pages

Subscribe to mpie.nl RSS