Search
Tags
Log In
Installing phpMyAdmin on a Debian System running MySQL, Apache2 and PHP
INSTALLING PHPMYADMIN. (phpMyAdmin is a web interface used to develop and manage MySQL databases.)
- At the Debian GNU/Linux w/ KDE Welcome Screen, chose the “Menu” option in the lower left part of the screen.
- In the Menu chose the “Console Login” option. (You Can also simply click ALT+N from the Debian GNU/Linux w/ KDE Welcome Screen, in place of the first two steps in this section. This is a shortcut to the Console or “CONSOLE MODE”.)
- At the Login prompt type: “root” and hit the [enter] key.
- Type in the Password of the “root” user and hit the [enter] key.
- Then you will type the following code:
- Code:
test:~# apt-get updatethen press the [enter] key. This will download the latest, most up to date installation packages. Do not try to continue until it has completed the package header downloads.
- Once all the package headers have been downloaded, type:
- Code:
test:~# apt-get install phpmyadminthen press the [enter] key to continue. You will be prompted about being sure. Hit the “Y” key and press the [enter] key to continue.
- Verify that the installation completed by looking at the last 5 lines of the installation script. Each line should have created a configuration file. You will be left at the # Command Prompt.
- You will need to restart your Apache2 web server after installing phpMyAdmin. To do this type:
- Code:
test:~# /etc/init.d/apache2 restartthen press the [enter] key. This will restart the Apache2 server, and enforce the new modifications you just made.
- Bring up a web browser and go to the IP Address of the machine you are working on: “http://localhost/phpmyadmin/” if you or working locally or “http://0.0.0.0/phpmyadmin/” if you are working remote. Hit the [enter] key.
- You should be directed to a website showing the log in screen for phpMyAdmin.
- Log in with “root” as the username and leave the password blank. This is the default username and password to get it for the first time. As a rule of security and in general, you will want to add a password to that account to make it more secure.
- Congratulations, you have successfully installed phpMyAdmin!
Filed under: Computers, Linux-Unix, Software | No Comments »
Installing PHP5 on a Debian System running an Apache2 Server
INSTALLING PHP5. (PHP is a very powerful programming language for websites. At some point, your web server will need PHP in order to run specific web applications.)
- At the Debian GNU/Linux w/ KDE Welcome Screen, chose the “Menu” option in the lower left part of the screen.
- In the Menu chose the “Console Login” option. (You Can also simply click ALT+N from the Debian GNU/Linux w/ KDE Welcome Screen, in place of the first two steps in this section. This is a shortcut to the Console or “CONSOLE MODE”.)
- At the Login prompt type: “root” and hit the [enter] key.
- Type in the Password of the “root” user and hit the [enter] key.
- Then you will type the following code:
- Code:
test:~# apt-get updatethen press the [enter] key. This will download the latest, most up to date installation packages. Do not try to continue until it has completed the package header downloads.
- Once all the package headers have been downloaded, type:
- Code:
test:~# apt-get install libapache2-mod-php5then press the [enter] key to continue. You will be prompted about being sure. Hit the “Y” key and press the [enter] key to continue.
- Verify that the installation completed by looking at the last line of the installation script for “Forcing reload of web server (apache2)… waiting” .
- Again, this should leave you at the # Command Prompt.
- Information for these steps was obtained here.
- Congratulations, you have installed the latest version of PHP5 for use with your web sites.
Filed under: Computers, Linux-Unix, Software | No Comments »
Installing Apache2 and OpenSSL on a Debian System
INSTALL APACHE2 & OPENSSL. (This multi-package configuration for web hosting is complete with the ability to provide HTTP and HTTPS based web pages.)
- At the Debian GNU/Linux w/ KDE Welcome Screen, chose the “Menu” option in the lower left part of the screen.
- In the Menu chose the “Console Login” option. (You Can also simply click ALT+N from the Debian GNU/Linux w/ KDE Welcome Screen, in place of the first two steps in this section. This is a shortcut to the Console or “CONSOLE MODE”.)
- At the Login prompt type: “root” and hit the [enter] key.
- Type in the Password of the “root” user and hit the [enter] key.
- Then you will type the following code:
- Code:
test:~# apt-get updatethen press the [enter] key. This will download the latest, most up to date installation packages. Do not try to continue until it has completed the package header downloads.
- Once all the package headers have been downloaded, type:
- Code:
test:~# apt-get install apache2 opensslthen press the [enter] key to install the latest version of the Apache2 Web Server (HTTP://)and the OpenSSL (HTTPS://) Server Packages. Once this process completes it will take you back to the # Command Prompt. Next type:
- Code:
test:~# mkdir /etc/apache2/sslthen press the [enter] key to create a folder called “ssl” in the /etc/apache2 directory. This will also return you to the # Command Prompt. Now type:
- Code:
test:~# RANDFILE=/dev/random openssl req $@ -new -x509 -days 365 -nodesthen press the [enter] key. You will be advanced to the next line to add additional information.
- Code:
> out /etc/apache2/ssl/apache.pem \”then press the [enter] key. You will be advanced to the next line to add additional information.
- Code:
> -keyout /etc/apache2/ssl/apache.pemthen press the [enter] key. This will walk you through a series of steps to build a “Self Signed” SSL Certificate. Read each step carefully, and answer each question with Short, Direct answers. When it finishes you will be returned to the # Command Prompt.
- Code:
test:~# chmod 600 /etc/apache2/ssl/apache.pemthen press the [enter] key. This sets the file permissions for the apache.pem file and returns you to the # Command Prompt.
- Code:
test:~# cp /etc/apache2/sites-available/default /etc/apache2/sites-available/sslthen press the [enter] key. This creates a copy of the “default” file named “ssl” for use with our OpenSSL Server.
- Now we need to add the site to the sites-enabled directory. This is done by making a symbolic-link to the configuration from /etc/apache2/sites-enabled/. You can see that this has already done for the “default” file by looking in /etc/apache2/sites-enabled/ directory for a “000-default” file. Apache has a command to do this automatically for the ssl file, from the # Command Prompt.
- Code:
test:~# cd /etc/apache2/sites-available/then press the [enter] key.
- Code:
test:~# dirthen press the [enter] key. You should see both a “default” and a “ssl” file.
- Now to enable the SSL Site we have a special “Enable Site” command.
- Code:
test:~# a2ensite sslthen press the [enter] key.
- Next to enable the SSL Mod in Apache2 we have a special “Enable Mod” command.
- Code:
test:~# a2enmod sslthen press the [enter] key.
- Code:
test:~# cd /etc/apache2/sites-enabled/then press the [enter] key.
- Code:
test:~# dirthen press the [enter] key. You should see the “000-default” and the “ssl” file in that “sites-enabled” directory.
- Code:
test:~# cd ..then press the [enter] key. Check to make sure you are in the /etc/apache2 directory now.
- Code:
test:~# pico ports.confthen press the [enter] key. This will open the “ports.conf” in the PICO NANO file editor. Use your down arrow to get to the line below “Listen 80” and type: “Listen 443”, but DO NOT hit the key this time.
- This time, hold down the CTRL key and press the “X” key. This will ask you if you want to save the file. Press the “Y” key.
- You will then be prompted to enter a path to save the file. Leave the default path and file in place and hit the key. You will be returned to the # Command Prompt.
- Code:
test:~# pico /sites-avaiable/sslthen press the [enter] key. This will open the “ssl” file in the PICO NANO file editor. Use your down arrow to get to navigate the document.
- Starting with the “NameVirtualHost *” line, edit the file to read as follows:
- Code:
NameVirtualHost *:443ServerAdmin $USERNAME@YOURSERVERNAME.com
- Then scroll to the bottom of the screen and find the “” line. Add a lines above it that reads as follows:
- Code:
SSLEngine On
SSLCertificateFile /etc/apache2/ssl/apache.pem - Now hold down the CTRL key and press the “X” key. This will ask you if you want to save the file. Press the “Y” key. You will then be prompted to enter a path to save the file. Leave the default path and file in place and hit the key. You will be returned to the # Command Prompt.
- Code:
test:~# cdthen press the [enter] key. This will take you back to the “root” directory.
- Code:
test:~# /etc/init.d/apache2 restartthen press the [enter] key. This will restart the Apache2 server, and enforce the new modifications you just made.
- Bring up a web browser and go to the IP Address of the machine you are working on: (“http://localhost/” if you or working locally or “http://0.0.0.0” if you are working remote.) Hit the [enter] key. You should get a screen that says “It Works!” on it.
- In the same web browser change the address to “https://localhost/” or “https://0.0.0.0” in the address bar and hit the [enter] key. You should get a popup asking about the “Self Signed” Security Key.
- Accept the Certificate.
- Then you will probably get a screen that asks if you want to display the non-secure content.
- Accept it as well.
- Now you will get a screen that says “It Works!” on it.
- Portions of this guide was taken from an article available online here.
- Congratulations, you have a fully functional HTTP & HTTPS web server!
Filed under: Computers, Linux-Unix, Software | No Comments »