Start learning with our library of video tutorials taught by experts. Get started

Up and Running with Linux for PHP Developers

Up and Running with Linux for PHP Developers

with Jon Peck

Video: Welcome

Welcome to Up and Running with Linux for PHP Developers. I am Jon Peck, a Zend-certified PHP engineer with more than a decade of systems administration experience. In this course, I'll show you how to configure your Mac or Windows workstation to be your own no-cost private web development server. In the end, you'll have an optimized virtual server running like any other program in your existing operating system. The configuration you'll use is known as a LAMP stack, and it's an extremely popular and common collection of web industry software. The end result will be similar to a hosted virtual private server, or a VPS, except it will be much faster, cheaper, and accessible only from your workstation.
Expand all | Collapse all
  1. 2m 3s
    1. Welcome
      43s
    2. Setting up your workstation
      1m 20s
  2. 4m 29s
    1. What is Linux and why should I use it?
      1m 40s
    2. What options are there?
      1m 56s
    3. What is VirtualBox?
      53s
  3. 3m 20s
    1. Introducing the LAMP stack
      54s
    2. Why we're using Linux
      1m 1s
    3. Why we're using Apache
      52s
    4. Why we're using MySQL
      33s
  4. 9m 9s
    1. Preparing your workstation
      1m 47s
    2. Creating the virtual machine
      1m 23s
    3. Configuring the virtual machine
      2m 35s
    4. Installing Ubuntu Server 12.04
      3m 24s
  5. 17m 52s
    1. Logging in using Secure Shell (SSH)
      1m 4s
    2. Working with the command line
      4m 21s
    3. Upgrading and installing packages
      2m 43s
    4. Installing VirtualBox Guest Additions
      1m 45s
    5. Configuring the Apache web server
      4m 25s
    6. Configuring the database server
      53s
    7. Installing the Exim email server
      2m 41s
  6. 19m 31s
    1. Introducing phpMyAdmin
      3m 11s
    2. Creating a new database and a user
      1m 59s
    3. Connecting to a local database
      44s
    4. Installing WordPress
      1m 54s
    5. Installing Drupal
      1m 37s
    6. Installing Symfony
      4m 26s
    7. Installing Zend Framework
      3m 6s
    8. Installing CakePHP
      2m 34s
  7. 9m 40s
    1. Troubleshooting Apache
      3m 26s
    2. Troubleshooting MySQL
      3m 16s
    3. Troubleshooting PHP
      1m 38s
    4. Troubleshooting Exim
      1m 20s
  8. 8m 12s
    1. Installing Webmin to monitor your server
      3m 11s
    2. Using SSH without a password on Windows
      1m 38s
    3. Using SSH without a password on Mac
      2m 26s
    4. Using a MySQL client with your database
      57s
  9. 3m 1s
    1. Managing the server
      2m 15s
    2. Where to go from here
      46s

Watch this entire course now—plus get access to every course in the library. Each course includes high-quality videos taught by expert instructors.

Become a member
Please wait...
Up and Running with Linux for PHP Developers
1h 17m Beginner Aug 07, 2012

Viewers: in countries Watching now:

Install and configure a local Linux server optimized for web application development with the LAMP (Linux/Apache/MySQL/PHP) software stack. Author Jon Peck describes the components and how they work together, shows you how to install and configure a virtualized Linux server, and details how to configure the additional stack elements: Apache, MySQL, and PHP.

The course also explores topics such as working from the Linux command line, installing several major PHP development frameworks and content management systems, and troubleshooting common installation and configuration issues. The demonstrations are performed with the Ubuntu distribution of Linux, but are also applicable to other Linux distributions.

Topics include:
  • What is Linux and why should I use it?
  • Introducing the LAMP stack
  • Creating and configuring a virtual machine
  • Working with the command line
  • Configuring the server components, including the Exim email server
  • Building a simple web site that connects to the local database
  • Installing Drupal, WordPress, and more on the server
  • Troubleshooting and maintaining Linux server components
  • Managing the server with Webmin
  • Using a MySQL client with the database
Subjects:
Developer Application Servers Platforms Web Databases
Software:
Linux Apache LAMP
Author:
Jon Peck

Welcome

Welcome to Up and Running with Linux for PHP Developers. I am Jon Peck, a Zend-certified PHP engineer with more than a decade of systems administration experience. In this course, I'll show you how to configure your Mac or Windows workstation to be your own no-cost private web development server. In the end, you'll have an optimized virtual server running like any other program in your existing operating system. The configuration you'll use is known as a LAMP stack, and it's an extremely popular and common collection of web industry software. The end result will be similar to a hosted virtual private server, or a VPS, except it will be much faster, cheaper, and accessible only from your workstation.

Let's get started.

Find answers to the most frequently asked questions about Up and Running with Linux for PHP Developers.


Expand all | Collapse all
Please wait...
Q: I don't know the MySQL root password. How can I reset it?
A: The root password was set in the Chapter 3 movie "Installing Ubuntu Server 12.04" at around the 2:24 mark.

If you are unable to log in with the root MySQL user, there are two common possibilities:  you may have set it to blank (no password), or you could have set it to something that isn't root.

1) SSH into the sandbox. From the command line, type the following:

mysql -uroot

2) If this doesn't work, then the password is set to something other than blank. Type:

mysql -uroot -proot

3) If this doesn't work, then the password is not root either and you'll need to reset it to something else. (If it does work, just type "exit;" without the quotes.)

Stop the MySQL server. Type:

sudo /etc/init.d/mysql stop

4) Start MySQL, but without permission checks. In a production environment, this can be a security vulnerability, but within this local context it's safe. Type:

sudo mysqld --skip-grant-tables &

5) Log in to the server. Type:

mysql -u root mysql

6) Set the password, let the new password take effect, and exit the console. Type:

UPDATE user SET Password=PASSWORD('root') WHERE User='root'; FLUSH PRIVILEGES; exit;

7) Restart the server normally. Type:

sudo /etc/init.d/mysql restart

8) Additional documentation regarding resetting permissions can be found at http://dev.mysql.com/doc/refman/5.5/en/resetting-permissions.html.
Q: After upgrading VirtualBox, I received a message about USB 2.0 requiring the
 VirtualBox Extension Pack. What should I do?
A: You may receive the following message when attempting to start your virtual machine following an upgrade of VirtualBox:

"USB 2.0 is currently enabled for this virtual machine. However, this
 requires the Oracle VM VirtualBox Extension Pack to be installed."

Please install the Extension Pack from the VirtualBox download site. After
 this you will be able to re-enable USB 2.0. It will be disabled in the 
meantime unless you cancel the current settings changes."

You will need to disable the USB 2.0 Controller to avoid installing the Extension Pack. USB 2.0 is not required in this course.

1) From the Oracle VM VirtualBox Manager, select your VirtualBox, then click
 on the icon for Settings.
2) Under Ports -> USB, uncheck [ ] Enable USB 2.0 (EHCI) Controller.
3) Click OK.

Your environment should now start normally.
Q: After installing phpMyAdmin, I get a 404 "Not Found" error when trying
to access it. How can I repair it?
A: During installation, there was a prompt to choose a web server to
configure. Apache 2 should have been selected. If it was not, then you will
not be able to navigate to it. To reconfigure phpMyAdmin, execute the
following:
 
sudo dpkg-reconfigure -plow phpmyadmin
 
When prompted to choose a web server, choose Apache 2. For additional
details, see https://help.ubuntu.com/community/phpMyAdmin.
Q: When attempting to start the server, VirtualBox says, "VT-X/AMD-V
hardware acceleration has been enabled, but is not operational." How can I
proceed?
A: Not all processors have support for a 64-bit operating system;
 alternatively, you can start over using Ubuntu Server 12.04 LTS 32-bit.
 There will be no practical functional difference and the instructions in
the course will still work. You will have to download the 32-bit server
disk image from http://www.ubuntu.com/download/server to be able to proceed.
Q: I want to use the same version of VirtualBox that was used in the demonstration. Where can I find it?
A: The instructions in the course are currently forwards compatible with newer versions of VirtualBox. If you would like to download the exact
version used in the course, visit https://www.virtualbox.org/wiki/Download_Old_Builds_4_1.
Share a link to this course
Please wait... Please wait...
Upgrade to get access to exercise files.

Exercise files video

How to use exercise files.

Learn by watching, listening, and doing, Exercise files are the same files the author uses in the course, so you can download them and follow along Premium memberships include access to all exercise files in the library.
Upgrade now


Exercise files

Exercise files video

How to use exercise files.

For additional information on downloading and using exercise files, watch our instructional video or read the instructions in the FAQ.

This course includes free exercise files, so you can practice while you watch the course. To access all the exercise files in our library, become a Premium Member.

join now

Are you sure you want to mark all the videos in this course as unwatched?

This will not affect your course history, your reports, or your certificates of completion for this course.


Mark all as unwatched Cancel

Congratulations

You have completed Up and Running with Linux for PHP Developers.

Return to your organization's learning portal to continue training, or close this page.


OK
Become a member to add this course to a playlist

Join today and get unlimited access to the entire library of video courses—and create as many playlists as you like.

Get started

Already a member?

Become a member to like this course.

Join today and get unlimited access to the entire library of video courses.

Get started

Already a member?

Exercise files

Learn by watching, listening, and doing! Exercise files are the same files the author uses in the course, so you can download them and follow along. Exercise files are available with all Premium memberships. Learn more

Get started

Already a Premium member?

Exercise files video

How to use exercise files.

Ask a question

Thanks for contacting us.
You’ll hear from our Customer Service team within 24 hours.

Please enter the text shown below:

The classic layout automatically defaults to the latest Flash Player.

To choose a different player, hold the cursor over your name at the top right of any lynda.com page and choose Site preferencesfrom the dropdown menu.

Continue to classic layout Stay on new layout
Welcome to the redesigned course page.

We’ve moved some things around, and now you can



Exercise files

Access exercise files from a button right under the course name.

Mark videos as unwatched

Remove icons showing you already watched videos if you want to start over.

Control your viewing experience

Make the video wide, narrow, full-screen, or pop the player out of the page into its own window.

Interactive transcripts

Click on text in the transcript to jump to that spot in the video. As the video plays, the relevant spot in the transcript will be highlighted.

Thanks for signing up.

We’ll send you a confirmation email shortly.


Sign up and receive emails about lynda.com and our online training library:

Here’s our privacy policy with more details about how we handle your information.

Keep up with news, tips, and latest courses with emails from lynda.com.

Sign up and receive emails about lynda.com and our online training library:

Here’s our privacy policy with more details about how we handle your information.

   
submit Lightbox submit clicked