The installer LAMPP / Wordpress
Wat is LAMP
1. Types of installations:
1.1 Installation via tasksel:
1.2 installatie via synaptic package manager:
1.3 Installation via terminal:
Wat is WordPress
2. Word Press
2.1.1 Install
Additional
3. Webmin
3.1 Move to / opt
3.2 Installing webmin
Wat is LAMP
Lamp is a software bundle that is often used to create dynamic websites.
De software is gratis en open source.
It consists of Linux, Apache, MySQL en PHP, hence the acronym lampp.
In addition, Linux is the operating system, Apache de webserver, MySQL database in PHP scripttaaal.
1. types of installations :
I use Ubuntu as the operating system 12.04LTS (long term support).
Could install lampp via tasksel or synaptic package manager, I still prefer a manual installation.
This is faster and thus I use commands.
1.1 Installation via tasksel:
Via terminal: sudo apt-get install tasksel
Tasksel Ubuntu is a tool that is installed on your system with multiple related packages. |
If I have, then I'm going to install LAMP installed this, This command installs the necessary software for the Apache web server including PHP and a MySQL database system.
via terminal: sudo tasksel install lamp-server
With the command sudo tasksel I see which options are installed, these have an asterisk before their name.
1.2 installatie via synaptic package manager:
Synaptic package manager is a graphical management tool apt, it offers the same features as the sudo apt-get command.
This manager is standard on Ubuntu.
1.3 Installation via terminal
First I start with MySQL
Via terminal: sudo apt-get install mysql-server mysql-client
Terminal begins downloading packets, some time later'm getting asked me for a password.
Via terminal: sudo apt-get install apache2
Apache is installed, to test I open the browser following URL : http://localhost
Via terminal: sudo apt-get install php5 libapache2-mod-php5
This package provides the PHP5 module for the Apache web server 2
After installing this 3 cases, the server must be restarted using the following command.
Via terminal: sudo /etc/init.d/apache2 restart
It works nice to manage my website under / home / username, do I have to adjust a few things. Apache reads its files namely from / var / www.
I'm going to change this:
Via terminal: cd / home / username
By using the command pwd I see in which directory I Stand.
Because Apache reads its files from / var / www, I'm in my home directory create a directory / www.
Then I go home and modify permissions of my user, mainly to the error code 403 To avoid.Create directory:
Via terminal: sudo mkdir www (in huidige directory)
Customizing rights:
Via terminal: sudo chmod 755 www (in huidige directory)
Sudo chmod 755 /home / username
Sudo chmod 755 /home
Double check whether permissions are correct,
Via terminal: stat –c ‘%a’ /home/gebruikersnaam/www
stat –c ‘%a’ /home/gebruikersnaam
stat –c ‘%a’ /home/gebruikersnaam
as previously mentioned reading apache are files in / var / www, I created a folder in my home directory.
Because I get to customize the path in / etc / apache2 / site-enabled / 000-default apache so are the files from my home directory is.After I made this change should I restart apache.
Via terminal: sudo /etc/init.d.apache2 restart
Because WordPress surely makes extensive use of PHP must add a number of modules to be installed.
apt-get install php5-mysql php5-curl php5-gd php5-intl php-pear php5-imagick php5-imap php5-mcrypt php5-memcache php5-ming php5-ps php5-pspell php5-recode php5-snmp php5-sqlite php5-tidy php5-xmlrpc php5-xsl
then the server must be restarted again.
Wat is WordPress
2. WordPress
WordPress is free blog software, which makes use of the PHP programming language.
All content is stored in a MySQL database, WordPress is a content management system (CMS) allowing the user without technical knowledge and a relatively simple way to manage a small or medium website.
2.1 Installing WordPress
2.1.1 Install
for installing WordPress, I first make sure that in the directory / home / username / www stand.
Herein WordPress geiinstalleerd.
In terminal: sudo wget http://wordpress.org/latest.zip
GNU Wget or just Wget is a computer program that content from web servers ophaalt.Het supports download via HTTP, HTTPS and FTP protocols.
In terminal: sudo unzip latest.zip
After this I'm going to have carried connect to my MySQL to create a database for WordPress.
In terminal: mysql –uroot –pPASSWORD -hlocalhost (-u-p-h = user, pass word, host)
it opens in my terminal MySQL, I go into my MySQL create a database with the following command:
create database wordpress; Here are the problems started, I got errors when creating the database.
To start the installation of wordpress I need to http://localhost/wordpress/wp-admin/install.php there he was able to tell me that there was probably no database available.
It could be that my user has no rights or under a name other than localhost.
Do me a terminal opened with the following: sudo apt-get install phpmyadmin.
Open a browser http://localhost/phpmyadmin and here in the graphical interface created a database, called wordpress.
Back tried to start the installation but still no success, turned out that in my /home/mythras/www/wordpress/wp-config-simple.php still had to fill out some information.
<?php
/**
* The base configurations of the WordPress.
*
* This file has the following configurations: MySQL settings, Table Prefix,
* Secret Keys, WordPress Language, and ABSPATH. You can find more information
* by visiting {@link http://codex.wordpress.org/Editing_wp-config.php Editing
* wp-config.php} Codex page. You can get the MySQL settings from your web host.
*
* This file is used by the wp-config.php creation script during the
* installation. You don’t have to use the web site, you can just copy this file
* to “wp-config.php” and fill in the values.
*
* @package WordPress
*/
// ** MySQL settings – You can get this info from your web host ** //
/** The name of the database for WordPress */
define(‘DB_NAME’, ‘database_name_here’); name of my database (wordpress)
/** MySQL database username */
define(‘DB_USER’, ‘username_here’); username (root)
/** MySQL database password */
define(‘DB_PASSWORD’, ‘password_here’); the password (lol)
/** MySQL hostname */
define(‘DB_HOST’, ‘localhost’);
/** Database Charset to use in creating database tables. */
define(‘DB_CHARSET’, ‘utf8′);
/** The Database Collate type. Don’t change this if in doubt. */
define(‘DB_COLLATE’, ");
With install phpmyadmin was my 2and problem once the pathway,, restart apache.
At every restart I got the following error:
mythras@ubuntu:~$ sudo /etc/init.d/apache2 restart
Restarting web server apache2
apache2: Could not reliably determine the server’s fully qualified domain name, using 127.0.1.1 for ServerName
… waiting apache2: Could not reliably determine the server’s fully qualified domain name, using 127.0.1.1 for ServerName
I subsequently modified the httpd.conf under etc / apache2 / httpd.conf be found.
Got a blank page where I have answered the server name localhost and picked sleep.
This adaptation browser back open http://localhost/wordpress/wp-admin/install.php
Some data such as site name, user name and password to be inserted in.
WordPress is ready to be developed further.
Additional
3. Webmin
Webmin is a web-based tool that lets you control your computer remotely. It works through the apache web server and can be accessed from all computer. It is ideal and quick to perform an operation on a PC that is not on the same location. It is advised to run via secure http (https).
Webmin can be downloaded at http://www.webmin.com/ in the form of a file .tar.gz.
The reason I hereby sting is not so much the reason to explain what Webmin is above all how I .tar.gz files must extract and install.
After the file webmin-1.630.tar.gz I downloaded this state under the directory / home / Mithras / Dowloads.
3.1 Move to / opt
/ Usr has many program files. Usually these are much smaller program files without really interrelatedness. Your computer may also prevent larger software installations. Such as office suite or an Oracle database. The / opt is typically the place where you will find this software.
That's why I'm going to move to Webmin / opt using the following command:
In terminal: sudo mv webmin-1.630.tar.gz /opt
With this command I extract .tar.gz files:
In terminal: sudo -zxvf webmin-1.630.tar.gzp
3.2 Installing webmin
To install webmin:
In terminal: sudo ./setup.sh
further I get asked a series of questions make webmin in te, Now Webmin is installed can I access it through my browser to http://ubuntu:10000 or simply http:// localhost:10000 go.
Through this way I can install almost any .tar.gz files.