Difference between revisions of "Web Development"

From Sinfronteras
Jump to: navigation, search
(Instalación de Apache)
Line 49: Line 49:
 
Si tout s’est bien passé, vous verrez la page web d’Apache qui est configurée par défaut dans votre système
 
Si tout s’est bien passé, vous verrez la page web d’Apache qui est configurée par défaut dans votre système
 
(Ubuntu 14.04 dans notre cas).
 
(Ubuntu 14.04 dans notre cas).
 +
 +
===Instalación de MySQL===
 +
https://www.digitalocean.com/community/tutorials/how-to-install-mysql-on-ubuntu-16-04
 +
 +
'''Step 1 — Installing MySQL:'''
 +
sudo apt-get update
 +
sudo apt-get install mysql-server
 +
 +
'''Step 2 — Configuring MySQL:'''
 +
sudo mysql_secure_installation
 +
 +
To initialize the MySQL data directory, you would use:
 +
mysql_install_db (for versions before 5.7.6)
 +
mysqld --initialize (for 5.7.6 and later)
 +
 +
However, if you installed MySQL from the Debian distribution, like in Step 1, the data directory was initialized automatically; you don't have to do anything. If you try running the command anyway, you'll see the following error:
 +
 +
'''Step 3 — Testing MySQL:'''
 +
 +
Regardless of how you installed it, MySQL should have started running automatically. To test this, check its status:
 +
systemctl status mysql.service
 +
 +
If MySQL isn't running, you can start it with:
 +
sudo systemctl start mysql.
 +
 +
For an additional check, you can try connecting to the database using the mysqladmin tool:
 +
mysqladmin -p -u root version

Revision as of 21:43, 19 September 2017

10 Best Web Development Tutorials For Beginners: https://www.upwork.com/blog/2014/03/10-best-web-development-tutorials-beginners/

Instalación de los programas necesario para el Desarrollo Web

Web server solution stack package

Estos Stack package permiten instalar y configurar de una forma compacta, los programas necesarios para Desarrollo Web. Por supuesto, también podemos instalar y configurar los programas por separado (A Web server: Apache ; Serveur de base de données: MySql (mysql-server) ; PHP)

XAMPP

https://www.apachefriends.org/index.html

XAMPP is a free and open source cross-platform (Windows, Linux, MacOS) server solution stack package developed by Apache Friends. Consisting mainly of:

  • X as an ideographic letter referring to cross‑platform: Windows, Linux, MacOS
  • A Apache or its expanded form, Apache HTTP Server
  • M MariaDB (formerly: MySQL)
  • P PHP
  • P Perl

Once the sever is running we need to put all our Web pages in the folder location specified by Document Root. Normally will be:

C:\xampp\htdocs
LAMP Stack

https://www.linode.com/docs/web-servers/lamp/install-lamp-stack-on-ubuntu-16-04

A LAMP (Linux, Apache, MySQL, PHP) stack is a common, free and open-source web stack used for hosting web content in a Linux environment.

Quick Install Using Tasksel

Instead of installing Apache, MySQL, and PHP separately, tasksel offers a convenient way to get a LAMP stack running quickly.

Install tasksel if not already installed by default.

sudo apt install tasksel

Use tasksel to install the LAMP stack.

sudo tasksel install lamp-server

Enter the prompt for a MySQL root password. See the steps below for Apache configurations, creating a virtual host, and installation of PHP modules for Wordpress installation.

Instalación de Apache

https://www.linode.com/docs/web-servers/lamp/install-lamp-stack-on-ubuntu-16-04

sudo apt-get install apache2

Vous pouvez faire un contrôle sur place pour vérifier que tout s’est déroulé comme prévu en visitant l’adresse IP publique de votre serveur dans votre navigateur Web: https://www.digitalocean.com/community/tutorials/how-to-install-linux-apache-mysql-php-lamp-stack-on-ubuntu-14-04

http://your_server_IP_address
http://localhost

Si tout s’est bien passé, vous verrez la page web d’Apache qui est configurée par défaut dans votre système (Ubuntu 14.04 dans notre cas).

Instalación de MySQL

https://www.digitalocean.com/community/tutorials/how-to-install-mysql-on-ubuntu-16-04

Step 1 — Installing MySQL:

sudo apt-get update
sudo apt-get install mysql-server

Step 2 — Configuring MySQL:

sudo mysql_secure_installation

To initialize the MySQL data directory, you would use:

mysql_install_db (for versions before 5.7.6)
mysqld --initialize (for 5.7.6 and later)

However, if you installed MySQL from the Debian distribution, like in Step 1, the data directory was initialized automatically; you don't have to do anything. If you try running the command anyway, you'll see the following error:

Step 3 — Testing MySQL:

Regardless of how you installed it, MySQL should have started running automatically. To test this, check its status:

systemctl status mysql.service

If MySQL isn't running, you can start it with:

sudo systemctl start mysql.

For an additional check, you can try connecting to the database using the mysqladmin tool:

mysqladmin -p -u root version