Difference between revisions of "Web Development"
Adelo Vieira (talk | contribs) (→Instalación de MySQL) |
Adelo Vieira (talk | contribs) |
||
Line 102: | Line 102: | ||
http://domain_name_or_IP/phpmyadmin | http://domain_name_or_IP/phpmyadmin | ||
http://localhost/phpmyadmin | http://localhost/phpmyadmin | ||
+ | |||
+ | ===Instalación de PHP=== | ||
+ | https://www.linode.com/docs/web-servers/lamp/install-lamp-stack-on-ubuntu-16-04 |
Revision as of 20:56, 19 September 2017
10 Best Web Development Tutorials For Beginners: https://www.upwork.com/blog/2014/03/10-best-web-development-tutorials-beginners/
Contents
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
Instalación de PhpMyAdmin
sudo apt-get installphpmyadmin
Lors de l’installation, quelques questions sont posées afin de configurer le système correctement:
- Pour la sélection du serveur nous avons choisi Apache 2.
- Nous avons sélectionné “oui” lorsqu’il nous a demandé si nous souhaitons utiliser dbconfig-commun pour
mettre en place la base de données.
- Nous avons ensuite entré les mots de passe de notre administrateur de base de données et pour phpMyadmin.
Le fichier de configuration de phpMyadmin sera ajouté dans le répertoire
/etc/apache2/conf-enabled/
Nous avons ensuite activé l’extension php5-mcrypt :
sudo php5enmod mcrypt (Esta parte no la puede llevar a cabo la última vez que lo instalé. Sin embargo parece funcionar bien)
A la fin il est nécessaire de redémarrer Apache pour que les modifications soient reconnues:
sudo service apache2 restart
L’accès au logiciel phpMyAdmin se fait en visitant notre nom de domaine ou adresse IP publique du serveur :
http://domain_name_or_IP/phpmyadmin http://localhost/phpmyadmin
Instalación de PHP
https://www.linode.com/docs/web-servers/lamp/install-lamp-stack-on-ubuntu-16-04