Installing Lighttpd + MySQL + PHP + Perl on Ubuntu 8.04 LTS

| 187 Comments | No TrackBacks
I just signed up a VPS plan from Linode. It is called Linode 360, which provides 360M memory, 10G storage, 200G transfer per month, and more importantly, an affordable price. Please remember, if you are in Australia, choose the data center at Fremont CA because it can give a decent ping value around 192 ms, which is better than most hosting companies in America. I plan to move my previous blog to this VPS server, but some necessary environments need to be built up first. This article is mainly about how to setup Lighttpd, MySQL, PHP, and Perl on Ubuntu 8.04 LTS. They are necessary for Wordpress or Movable Type blogging systems.

Step 1: Create a new user in Ubuntu 8.04, with sudo privilege.
After Ubuntu 8.04 is deployed, we should create a new user with sudo privilege to perform most common tasks. If you have created one, you can ignore this step.
> adduser xxx
Edit the sudoer's file:
> visudo
Add "xxx ALL = (ALL) ALL" at the end of the file. Then re-login the system with xxx.

Step 2: Update the system and Install the basic tools.
> sudo aptitude update -y
/> sudo locale-gen en_GB.UTF-8
/> sudo /usr/sbin/update-locale LANG=en_GB.UTF-8
/> sudo aptitude install build-essential -y
Step 3: Install Lighttpd, MySQL, PHP
> sudo aptitude install lighttpd
/> sudo aptitude install mysql-server
/> sudo aptitude install php5-cli php5-cgi php5-mysql php5-xcache
Step 4: Configure php.ini and lighttpd.conf
> sudo vim /etc/php5/cgi/php.ini
Add "cgi.fix_pathinfo=1" at the end of file php.ini.
>sudo vim /etc/lighttpd/lighttpd.conf
Find the codes like below and add  "mod_fastcig" and "mod_cgi" modules:
server.modules = (
"mod_access",
"mod_alias",
"mod_accesslog",
"mod_fastcgi",
"mod_rewrite",
"mod_cgi",
)
Add the following codes at the end of lighttpd.conf:
fastcgi.server = (".php" => ((
"bin-path" => "/usr/bin/php5-cgi",
"socket" => "/tmp/php.socket"
)))
cgi.assign = (
".pl" => "/usr/bin/perl",
".cgi" => "/usr/bin/perl"
)
Step 5: Restart Lighttpd
>/etc/init.d/lighttpd restart
After the steps above, the necessary environments have been built up. It is enough to install Wordpress or Movable Type. 

No TrackBacks

TrackBack URL: http://lua.me/cgi-bin/mt/mt-tb.cgi/24

187 Comments

Obtain WII, PS2 , PC , DS , DS LITE , DSi and XBOX 360 torrents at www.games-iso.com . No REGISTRATION Required. This really is my new favourite web site!

Thanks for the great insight on that, never really thought about it. bookmarked your site! rl circuit

Hi there, I agree with your blog and I will be back to check it more in the future so please keep up your good quality work. I love your content & the way that you write. It looks like you've been doing this for a while now, how long have you been blogging for? You make it look easy

Thanks for this post! 20 min ago I stumbled upon another precious sitorious full of torrantanas for VIDEOGAMES nintendo DS appreciate that you shared your link with me.

Hey, you have a great blog here! I'm definitely going to bookmark you!

It is just exactly as you said.

Does anyone know when the new Club penguin game is out for the Nintendo DSI

I downloaded Forza Motorsport 3 a couple of weeks ago and, despite the fact its a"dusty" game, its the best xbox 360 game in my opinion ;)

I would like to thank you for the efforts you have made in writing this article. I am hoping the same best work from you in the future as well and i have start my own blog now, it's about to domain name , thanks for your effort

I downloaded Marvel: Ultimate Alliance a couple of weeks ago and, despite the fact its a"dusty" game, its the best Playstation3 game in my opinion ;-)

Hi, I can’t understand how to add your web page in my rss reader. Can you Assist me, please

remarkable stuff thanx

Thanks for the excellent instructions on how to do the installation.

Is this cms you use good for my first site ? I want to start blogging soon and looking for good platform.

Kompliment - macht Spaß auf diesem Blog zu lesen - weiter so!

on-line for articles in which can aid me. Thank you

Thank you for your help!

I thought it was going to be some boring old post, but it really compensated for my time. I will post a link to this page on my blog. I am sure my visitors will find that very useful.

Nice post. Thank you for information ! Please keep posting.

This blog really keeps on getting more impressive every day. You should truly be satisfied.

I don't think I would be able to keep up with maintaining a place like it! Good piece of work, I absolutely would love to see you keep going for a good long time.

Hello, Thanks for the Informative article, I dont usually leave messages but your blog inspired me!! I love any posts about snes. I will link this post for my site if thats okay!

The Zune concentrates on being a Portable Media Player. Not a web browser. Not a game machine. Maybe in the future it'll do even better in those areas, but for now it's a fantastic way to organize and listen to your music and videos, and is without peer in that regard. The iPod's strengths are its web browsing and apps. If those sound more compelling, perhaps it is your best choice.

This is getting a bit more subjective, but I much prefer the Zune Marketplace. The interface is colorful, has more flair, and some cool features like 'Mixview' that let you quickly see related albums, songs, or other users related to what you're listening to. Clicking on one of those will center on that item, and another set of "neighbors" will come into view, allowing you to navigate around exploring by similar artists, songs, or users. Speaking of users, the Zune "Social" is also great fun, letting you find others with shared tastes and becoming friends with them. You then can listen to a playlist created based on an amalgamation of what all your friends are listening to, which is also enjoyable. Those concerned with privacy will be relieved to know you can prevent the public from seeing your personal listening habits if you so choose.

Nice post. Have u heard about the iPad hack? Kinda random but lol why not.

The new Zune browser is surprisingly good, but not as good as the iPod's. It works well, but isn't as fast as Safari, and has a clunkier interface. If you occasionally plan on using the web browser that's not an issue, but if you're planning to browse the web alot from your PMP then the iPod's larger screen and better browser may be important.

Hands down, Apple's app store wins by a mile. It's a huge selection of all sorts of apps vs a rather sad selection of a handful for Zune. Microsoft has plans, especially in the realm of games, but I'm not sure I'd want to bet on the future if this aspect is important to you. The iPod is a much better choice in that case.

Finally, a good site that isn't in my face trying to constantly sell me something. Thanks, please keep up the good work.

I was very pleased to find this site.I wanted to thank you for this great read I definitely enjoying every little bit of it and I have you bookmarked to check out new stuff you post.

very good article,thans for your sharing

I'm so excited with the new look of your blog. Thanks so much for keeping it running!

Informative information and excellent posts you have!

I have gotten some good information on this site. worth bookmarking for future reference.

and you will help NYC Rescued Kitties get free donations

Really, really good information. Thanks for your insight into this difficult subject. I've signed up for your feed and looking forward to the next update. Thank You

Rather useful piece

Brillant! Just what I was looking for!

Wonderful site. Maintain performing.

I truly appreciate you taking the time to post this. I really liked reading it and am looking forward to more posts from you! Keep 'em coming.

Great post, I totally agree with this.

very good article,thans for your sharing

Thanks for your helpful Post, I hope you have a good day!

Incredibly great subject material that you've worked on below. I reach a decision with you on every angle, appreciate it all over again for doing the send!!|It's good that you submit such great articles on the net. Appreciation so a good deal.

I truly appreciate you taking the time to post this. I really liked reading it and am looking forward to more posts from you! Keep 'em coming.

Well, the post is actually the freshest on this laudable topic. I concur with your conclusions and will thirstily look forward to your future updates.

The new Zune browser is surprisingly good, but not as good as the iPod's. It works well, but isn't as fast as Safari, and has a clunkier interface. If you occasionally plan on using the web browser that's not an issue, but if you're planning to browse the web alot from your PMP then the iPod's larger screen and better browser may be important.

Trying to think of some creative names here. What do you name your hosting packages?

Well, the post is actually the freshest on this laudable topic. I concur with your conclusions and will thirstily look forward to your future updates.

Well I’d be more than happy to submit such reviews Gingerly, feel free to send me an e-mail.

Leave a comment

Recent Comments

  • Pearlie Spencer: Great post I must say.. Simple but yet interesting and read more
  • Michelle Jackson: Been lookin for some useful information for the past hour read more
  • Lynn Wright: Been lookin for some useful information for the past hour read more
  • Lynn Wright: I recently came across your blog and have been reading read more
  • Matthew Cadiz: Nice writing. You are on my RSS reader now so read more
  • Janet M. Elkins: Nice writing. You are on my RSS reader now so read more
  • Matthew Cadiz: Nice stuff on, i'll be visiting more often read more
  • Michelle Jackson: Great articles and content very informative looking forward to reading read more
  • Michelle Jackson: Great post I must say.. Simple but yet interesting and read more
  • Bernard Harold: Great post, I bet a lot of work and research read more

About this Entry

This page contains a single entry by Jiang published on May 18, 2008 8:31 AM.

China Earthquake was the previous entry in this blog.

Shaanxi Nosh is the next entry in this blog.

Find recent content on the main index or look in the archives to find all content.