- sudo apt-get install mysql-server
- mysql_secure_installation
- mysql -uroot -p
- SHOW DATABASES;
+——————–+
| Database |
+——————–+
| information_schema |
| mysql |
| performance_schema |
+——————–+
3 rows in set (0.00 sec) - QUIT
Bye!
- SHOW DATABASES;
- según la versión,
- sudo apt-get install php5-mysql
- sudo apt install php7.0-mysql
- luego, se reinicia el servidor apache:
sudo systemctl restart apache2.service
Etiqueta: apt-get
APT package handling utility — command-line interface
php: instalación y configuración
- sudo apt-get install php5
- sudo a2enmod php5
Enabling module php5.
To activate the new configuration, you need to run: service apache2 restart - luego, se reinicia el servidor:
sudo service apache2 restart
o
sudo systemctl restart apache2.service
esto debería valer.
- los archivos de configuración del módulo de php5 para apache2 se encuentran en
- /etc/apache2/mods-available/php5.conf
apache2: instalación y configuración
instalación y configuración
- sudo apt-get install apache2
- sudo nano /etc/apache2/apache2.conf
Timeout 30
MaxKeepAliveRequests 25 - sudo nano /etc/apache2/ports.conf
ServerName RB
Listen 192.168.1.7:9700 - luego, se crea el archivo RB.conf:
sudo cp /etc/apache2/sites-available/{000-default.conf,RB.conf}
sudo touch /etc/apache2/sites-available/RB.conf
- sudo nano /etc/apache2/sites-available/RB.conf
<VirtualHost 192.168.1.7:9700> ServerName RB ServerAdmin ernesto@poderna.com DocumentRoot /media/web/ <Directory /media/web/> Options Indexes FollowSymLinks MultiViews AllowOverride none Order allow,deny Allow from all </Directory> ErrorLog /media/web/log/error.log CustomLog /media/web/log/access.log
APT + repositorios
Puesto al día el 22 de diciembre de 2023.
apt o apt-get
APT vale por Advanced Package Tool , el gestor de paquetes de Debian, y se sirve ahora (enero de 2021) del comando apt
donde antes se servía de apt-get
.
actualización del sistema
sudo apt update
sudo apt upgrade
donde
man apt
update is used to download package information from all configured sources.