navigate site menu

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

 


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

show more

author
Jon Peck
subject
Developer, Application Servers, Platforms, Web, Databases
software
Linux , Apache , LAMP
level
Beginner
duration
1h 17m
released
Aug 07, 2012

Share this course

Ready to join? get started


Keep up with news, tips, and latest courses.

submit Course details submit clicked more info

Please wait...

Frequently asked questions

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




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.

Can’t find an answer?

If you still have a question about Up and Running with Linux for PHP Developers, let us know.

ask a question

Suggested courses to watch next:

Unix for Mac OS X Users (6h 35m)
Kevin Skoglund

PHP with MySQL Beyond the Basics (10h 27m)
Kevin Skoglund


MySQL Essential Training (2h 46m)
Bill Weinman


Are you sure you want to delete this bookmark?

cancel

Bookmark this Tutorial

Name

Description

{0} characters left

Tags

Separate tags with a space. Use quotes around multi-word tags. Suggested Tags:
loading
cancel

bookmark this course

{0} characters left Separate tags with a space. Use quotes around multi-word tags. Suggested Tags:
loading

Error:

go to playlists »

Create new playlist

name:
description:
save cancel

You must be a lynda.com member to watch this video.

Every course in the lynda.com library contains free videos that let you assess the quality of our tutorials before you subscribe—just click on the blue links to watch them. Become a member to access all 104,141 instructional videos.

get started learn more

If you are already an active lynda.com member, please log in to access the lynda.com library.

Get access to all lynda.com videos

You are currently signed into your admin account, which doesn't let you view lynda.com videos. For full access to the lynda.com library, log in through iplogin.lynda.com, or sign in through your organization's portal. You may also request a user account by calling 1 1 (888) 335-9632 or emailing us at cs@lynda.com.

Get access to all lynda.com videos

You are currently signed into your admin account, which doesn't let you view lynda.com videos. For full access to the lynda.com library, log in through iplogin.lynda.com, or sign in through your organization's portal. You may also request a user account by calling 1 1 (888) 335-9632 or emailing us at cs@lynda.com.

Access to lynda.com videos

Your organization has a limited access membership to the lynda.com library that allows access to only a specific, limited selection of courses.

You don't have access to this video.

You're logged in as an account administrator, but your membership is not active.

Contact a Training Solutions Advisor at 1 (888) 335-9632.

How to access this video.

If this course is one of your five classes, then your class currently isn't in session.

If you want to watch this video and it is not part of your class, upgrade your membership for unlimited access to the full library of 2,025 courses anytime, anywhere.

learn more upgrade

You can always watch the free content included in every course.

Questions? Call Customer Service at 1 1 (888) 335-9632 or email cs@lynda.com.

You don't have access to this video.

You're logged in as an account administrator, but your membership is no longer active. You can still access reports and account information.

To reactivate your account, contact a Training Solutions Advisor at 1 1 (888) 335-9632.

Need help accessing this video?

You can't access this video from your master administrator account.

Call Customer Service at 1 1 (888) 335-9632 or email cs@lynda.com for help accessing this video.

preview image of new course page

Try our new course pages

Explore our redesigned course pages, and tell us about your experience.

If you want to switch back to the old view, change your site preferences from the my account menu.

Try the new pages No, thanks

site feedback

Thanks for signing up.

We’ll send you a confirmation email shortly.


By signing up, you’ll receive about four emails per month, including

We’ll only use your email address to send you these mailings.

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.

By signing up, you’ll receive about four emails per month, including

We’ll only use your email address to send you these mailings.

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

   
submit Lightbox submit clicked