1.7 KiB
1.7 KiB
1 Requisitos para instalar
Si instala todo lo aqui expuesto tendra ya todo para instalacion de el osposweb:
- mariadb (manejador y servidor DB que hara de pivote)
yum install mariadb-server mariadb
- php5 (junto con gd, mcrypt, mysql, curl, xml, intl)
yum install php php-mcrypt php-cli php-gd php-curl php-mysql php-cgi php-zip php-intl
- apache2 (servidor web usar lastimosamente)
apt-get install httpd
Decargar el ospos desde el oficial o desde el clone de gitlab osposweb:
2 Configurar tu entorno
Habilitar los servicios de mysql y apache:
systemctl enable mariadb;systemctl enable httpd
Crear el usuario y accesos para el ospos
CREATE USER 'ospos'@'%'
IDENTIFIED BY PASSWORD 'ospos.1';
GRANT
USAGE ON * . * TO 'ospos'@'%'
IDENTIFIED BY PASSWORD 'ospos.1' WITH MAX_QUERIES_PER_HOUR 0 MAX_CONNECTIONS_PER_HOUR 0 MAX_UPDATES_PER_HOUR 0 MAX_USER_CONNECTIONS 0 ;
GRANT
ALL PRIVILEGES ON * . * TO 'ospos'@'%'
WITH GRANT OPTION ;
3 Mariadb
yum install mariadb mariadb-server
mysql_secure_installation
Enter current password for root (enter for none):
OK, successfully used password, moving on...
Change the root password? [Y/n] Y
New password:
Re-enter new password:
Password updated successfully!
Reloading privilege tables..
... Success!
Remove anonymous users? [Y/n] Y
... Success!
Disallow root login remotely? [Y/n] Y
... Success!
Remove test database and access to it? [Y/n] Y
- Dropping test database...
... Success!
- Removing privileges on test database...
... Success!
Reload privilege tables now? [Y/n] Y
... Success!
Cleaning up...
service mariadb restart
Redirecting to /bin/systemctl restart mariadb.service