Showing posts with label set. Show all posts
Showing posts with label set. Show all posts
Friday, January 22, 2016
How to set up a LAMP test server on Ubuntu
You can set up a LAMP (Linux, Apache, MySQL, and PHP) server as a test server on your Ubuntu 9.10 PC. A LAMP server lets you develop a website on your computer before you upload it to a website host. For additional information and details, see Tux Tweaks: Install LAMP Server on Ubuntu.
Additional Information, 04-13-10: As explained in the Note in the "Using LAMP Server as Your Test Server" section at the end of this article, you must open the root file browser before you can add files to LAMP test server.
Installing LAMP Server on Ubuntu
To install a LAMP test server on your Ubuntu PC, do the following:
Apache and php are components of the LAMP software bundle. To test Apache and php, do the following:
MySQL is the database component of the LAMP software bundle. To configure MySQL for use with your LAMP test server, do the following:
The phpMyAdmin utility simplifies working with a MySQL database within your LAMP test server. To install and test phpMyAdmin, do the following:
If you wish to work on only a single website, place its files in /var/www. To see the initial contents of folder www, click Places, click Computer, click File System, double-click var, and then double-click www to open it. Folder www intially contains only two files: index.html and testing.php.
Note: Before you can add files to your LAMP test server, you must click Applications, select Accessories, click Terminal to display its window, and then type sudo nautilus to open the root file browser. You can then paste HTML files into root/var/www.
If you wish to work on multiple web sites, go to Tux Tweaks: Apache Configuration.


Read more »
Additional Information, 04-13-10: As explained in the Note in the "Using LAMP Server as Your Test Server" section at the end of this article, you must open the root file browser before you can add files to LAMP test server.
Installing LAMP Server on Ubuntu
To install a LAMP test server on your Ubuntu PC, do the following:
- Open Ubuntu, click Applications, select Accessories, and then click Terminal to display its window and a "~$" (tilde dollar-sign) prompt.
- At the flashing cursor immediately after the "~$" prompt, Type sudo apt-get install lamp-server^ and then press Enter to display a password prompt. Note: To type the "^" (caret symbol), use Shift+6.
- Type your password and then press Enter to display the packages that you can install, and "Do you want to continue [Y/n]?"
- Type y and then press Enter to start the installation and display a prompt to set your MySQL password. Type the password, press Enter to display a retype-password prompt, retype your MySQL password, and then press Enter to continue installing packages.
Apache and php are components of the LAMP software bundle. To test Apache and php, do the following:
- Open a web browser. Type http://localhost/ in the address field, and then press Enter to display a web page that says "It works! This is the default web page for this server. The web server is running but no content has been added, yet." This Apache server is your LAMP test server. Close the web browser.
- Click Applications, select Accessories, and then click Terminal to display its window. Type gksudo gedit /var/www/testing.php and press Enter to display a password prompt. Enter your Ubuntu password and click OK to open a gedit text-editor window.
- Type into the text editor, and then click Save to save the file. Close the text-editor window to redisplay the terminal window.
- Type sudo /etc/init.d/apache2 restart and press Enter to restart the Apache server.
- Open a web browser. Type http://localhost/testing.php/ in the address field, and then press Enter to display a web page that shows details about your php installation.
MySQL is the database component of the LAMP software bundle. To configure MySQL for use with your LAMP test server, do the following:
- Click Applications, select Accessories, and then click Terminal to display its window.
- Type cat /etc/hosts | grep localhost and press Enter to display "127.0.0.1 localhost ::1 localhost ip6- localhost ip6-loopback." 127.0.0.1 is your localhost IP address. localhost is red.
- Type cat /etc/mysql/my.cnf | grep bind-address and press Enter to display "bind-address = 127.0.0.1." If the bind address does not match your localhost address, type gksudo gedit /etc/mysql/my.cnf to open a gedit text-editor window, scroll to the bind address, and then change it to "127.0.0.1".
The phpMyAdmin utility simplifies working with a MySQL database within your LAMP test server. To install and test phpMyAdmin, do the following:
- Click Applications, select Accessories, and then click Terminal to display its window. Type sudo apt-get install libapache2-mod-auth-mysql phpmyadmin and press Enter to display the packages that you can install, and the message "Do you want to continue [Y/n]?"
- Type y and then press Enter to start the installation and display a Configuring phpmyadmin window. Use your keyboard up and down arrow keys and its spacebar to select apache2, and then press Enter to continue the installation and display another Configuring phpmyadmin window.
- Use the Tab key to select Yes and then press Enter to display a database-password prompt. Type your MySQL password (you had set this in the Installing LAMP section above), and then press Enter to display a phpMyAdmin-password prompt.
- For simplicity, you can use your MySQL password also as your phpMyAdmin password. Type your MySQL password, and then press Enter to display a password-confirmation prompt. Retype your MySQL password and then press Enter to finish installing phpMyAdmin. Close the terminal window.
If you wish to work on only a single website, place its files in /var/www. To see the initial contents of folder www, click Places, click Computer, click File System, double-click var, and then double-click www to open it. Folder www intially contains only two files: index.html and testing.php.
Note: Before you can add files to your LAMP test server, you must click Applications, select Accessories, click Terminal to display its window, and then type sudo nautilus to open the root file browser. You can then paste HTML files into root/var/www.
If you wish to work on multiple web sites, go to Tux Tweaks: Apache Configuration.
Sunday, January 3, 2016
How to set up Ubuntu 12 04
On April 26, 2012, Canonical released its newest distribution of the free, open-source Linux operating system, Ubuntu 12.04. After you either download and install it, or upgrade to it, these simple procedures can help you enjoy an efficient Ubuntu PC.


Note: Although these basic settings specifically apply to Ubuntu 12.04, they also generally apply to other Ubuntu releases.
Setting up Ubuntu 2D graphics - Ubuntu 3D graphics provide visual effects, but slow the information display on your PC. Therefore, if you do not have a new, ultra-fast PC, setting up Ubuntu 2D graphics should display information much faster. To set up Ubuntu 2D graphics, do the following:
- Boot or reboot your Ubuntu 12.04 PC.
- At the login dialog, click the "gear" icon.
- Click Ubuntu 2D, type your password and then press Enter.
Setting up your mouse - Setting up your mouse first makes other system settings easier to adjust. To set up your mouse, do the following:
- Click the System Settings icon (in the Launcher at the left).
- Click the Mouse and Touchpad icon.
- As you prefer, adjust Pointer Speed, Drag and Drop, and Double-Click Timeout. Note: A low Pointer Speed Sensitivity facilitates adjusting window sizes.
- Click All Settings (at the top) to redisplay the System Settings window.
Setting up your screen timeout - To set up your screen timeout, do the following:
- Click the System Settings icon.
- Click the Brightness and Lock icon.
- As you prefer, adjust the screen-timeout and Lock settings. Note: For a home PC, you usually need no Lock.
Setting up your system sound - To set up your system sound, do the following:
- Click the System Settings icon.
- Click the Sound icon.
- As you prefer, adjust your system sound input and output settings. Note: Make sure all Mute selectors are unchecked.
- Click the System Settings icon .
- Click the Additional Drivers icon
- Select any "Recommended" driver.
- Click Activate, type your password, and then click Authenticate.
- To activate the driver, close all windows and restart your PC.
- Set up the driver. For example, if your PC has NVIDIA graphics, click the Ubuntu logo (at the top of the launcher) to open Dash, select the applications icon (second at the bottom), type nv (nvidia) in the search field, click NVIDIA X Server Settings, adjust settings such as Color Correction: Brightness, Contrast and Gamma.
Subscribe to:
Posts (Atom)