CentOS Install dotProject
dotProject en CentOS 5.5 Linux dotProject M$Project OpenSource
Actualizar CENTOS
# yum -y update
1. Instalar Apache ,MySQL ,PHP ,phpMyAdmin
# yum -y install mysql mysql-server # Instalando MySQL5
# chkconfig --levels 235 mysqld on
# service mysqld start
# mysqladmin -u root password yourrootsqlpassword
# yum install httpd # Instalando Apache2
# chkconfig --levels 235 httpd on
# service httpd start
# yum install php # Instalando PHP5
# service httpd restart
Creamos un archivo para verificar si esta instalado correctamente el PHP
# vi /var/www/html/index.php # php
< ?php
phpinfo();
?>
# yum search php # Buscamos PHP
# yum install php-mysql php-gd php-imap php-ldap php-odbc php-pear php-xml php-xmlrpc # Instalar extension es
# service httpd restart
# yum install phpmyadmin # phpMyAdmin
# vi /etc/httpd/conf.d/phpmyadmin.conf # Deny from all Allow from all
#
# Web application to manage MySQL
#
Order Deny,Allow
Allow from all
Allow from 127.0.0.1
Alias /phpmyadmin /usr/share/phpmyadmin
Alias /phpMyAdmin /usr/share/phpmyadmin
Alias /mysqladmin /usr/share/phpmyadmin
# vi /usr/share/phpmyadmin/config.inc.php # cookie http
[...]
/* Authentication type */
$cfg['Servers'][$i]['auth_type'] = 'http';
[...]
# service httpd restart # apache
http://IP/phpmyadmin/ # Browse root mysql
2. dotproject
http://of.openfoundry.org/projects/238/download
Descomprimir y copiar /var/www/html/dotproject
# cd /var/www/html/dotproject/files
# mkdir temp
# cd /var/www/html/dotproject/includes/
# cp config-dist.php config.php
# cd /var/www/html
# chown -R root.root dotproject
# chown apache.apache dotproject/includes/config.php
# chown apache.apache dotproject/files
# chown apache.apache dotproject/files/temp
# chown apache.apache dotproject/locales/en
# cd /var/www/html/dotproject/includes/
# chmod 777 config.php
Editar el archivo config.php y modificar el usuario y el password para continuar con la instalaciòn.
# vi config.php
$dPconfig['dbuser'] = 'root'; // Change to match your MySQL Username
$dPconfig['dbpass'] = 'seguridad'; // Change to match your MySQL Password
Modificar el archivo php.ini, para cargar de archivos y tamaño de memoria.
# vi /etc/php.ini # PHP
session.auto_start = 1 # 0 1
memory_limit = 32M # 16M 32M run
file_uploads = On #
upload_max_filesize = 100M #
max_execution_time = 300 # 30 5 (drop)
max_input_time = 600 # 60 10 ()
# service httpd restart # apache php
httpd: [ OK ]
httpd: [ OK ]
Activar Mysql si es la primera Vez
service mysqld restart
chkconfig mysqld on
mysqladmin -u root password 'clave'
Ingresar a mysql
mysql -u root – p
Digitar password
En Mysql creamos el usuario root
CREATE USER 'root'@'%' IDENTIFIED BY 'clave';
Proporcionamos todos los privilegios a este usuario.
CREATE ALL PRIVILEGES ON *.* TO 'root'@'%' IDENTIFIED BY 'clave' WITH GRANT OPTION;
FLUSH PRIVILEGES;
Vamos a crear la BAse De Datos
# mysql -p # MySQL
Enter password:
Welcome to the MySQL monitor. Commands end with ; or \g.
Your MySQL connection id is 13
Server version: 5.0.77 Source distribution
Type 'help;' or '\h' for help. Type '\c' to clear the buffer.
mysql> CREATE DATABASE dotproject; # dotproject (Web Create)
Query OK, 1 row affected (0.00 sec)
mysql> GRANT ALL PRIVILEGES ON dotproject.* TO dotproject@localhost IDENTIFIED BY "YOUR-PASSWORD" WITH GRANT OPTION; # dotproject DB user
Query OK, 0 rows affected (0.00 sec)
http://YourIP/dotproject/install # Web
# rm -rf /var/www/html/dotproject/install #
# chmod 644 /var/www/html/dotproject/includes/config.php #
http://YourIP/dotproject/ # /admin/passwd
Reference :
http://www.dotproject.net/
http://of.openfoundry.org/projects/238/download
http://rhyous.com/2009/11/22/how-to-install-dotproject-2-1-2-on-freebsd-7-2-with-apache-2-2-php5-and-mysql-5-1-server/
Actualizar CENTOS
# yum -y update
1. Instalar Apache ,MySQL ,PHP ,phpMyAdmin
# yum -y install mysql mysql-server # Instalando MySQL5
# chkconfig --levels 235 mysqld on
# service mysqld start
# mysqladmin -u root password yourrootsqlpassword
# yum install httpd # Instalando Apache2
# chkconfig --levels 235 httpd on
# service httpd start
# yum install php # Instalando PHP5
# service httpd restart
Creamos un archivo para verificar si esta instalado correctamente el PHP
# vi /var/www/html/index.php # php
< ?php
phpinfo();
?>
# yum search php # Buscamos PHP
# yum install php-mysql php-gd php-imap php-ldap php-odbc php-pear php-xml php-xmlrpc # Instalar extension es
# service httpd restart
# yum install phpmyadmin # phpMyAdmin
# vi /etc/httpd/conf.d/phpmyadmin.conf # Deny from all Allow from all
#
# Web application to manage MySQL
#
Order Deny,Allow
Allow from all
Allow from 127.0.0.1
Alias /phpmyadmin /usr/share/phpmyadmin
Alias /phpMyAdmin /usr/share/phpmyadmin
Alias /mysqladmin /usr/share/phpmyadmin
# vi /usr/share/phpmyadmin/config.inc.php # cookie http
[...]
/* Authentication type */
$cfg['Servers'][$i]['auth_type'] = 'http';
[...]
# service httpd restart # apache
http://IP/phpmyadmin/ # Browse root mysql
2. dotproject
http://of.openfoundry.org/projects/238/download
Descomprimir y copiar /var/www/html/dotproject
# cd /var/www/html/dotproject/files
# mkdir temp
# cd /var/www/html/dotproject/includes/
# cp config-dist.php config.php
# cd /var/www/html
# chown -R root.root dotproject
# chown apache.apache dotproject/includes/config.php
# chown apache.apache dotproject/files
# chown apache.apache dotproject/files/temp
# chown apache.apache dotproject/locales/en
# cd /var/www/html/dotproject/includes/
# chmod 777 config.php
Editar el archivo config.php y modificar el usuario y el password para continuar con la instalaciòn.
# vi config.php
$dPconfig['dbuser'] = 'root'; // Change to match your MySQL Username
$dPconfig['dbpass'] = 'seguridad'; // Change to match your MySQL Password
Modificar el archivo php.ini, para cargar de archivos y tamaño de memoria.
# vi /etc/php.ini # PHP
session.auto_start = 1 # 0 1
memory_limit = 32M # 16M 32M run
file_uploads = On #
upload_max_filesize = 100M #
max_execution_time = 300 # 30 5 (drop)
max_input_time = 600 # 60 10 ()
# service httpd restart # apache php
httpd: [ OK ]
httpd: [ OK ]
Activar Mysql si es la primera Vez
service mysqld restart
chkconfig mysqld on
mysqladmin -u root password 'clave'
Ingresar a mysql
mysql -u root – p
Digitar password
En Mysql creamos el usuario root
CREATE USER 'root'@'%' IDENTIFIED BY 'clave';
Proporcionamos todos los privilegios a este usuario.
CREATE ALL PRIVILEGES ON *.* TO 'root'@'%' IDENTIFIED BY 'clave' WITH GRANT OPTION;
FLUSH PRIVILEGES;
Vamos a crear la BAse De Datos
# mysql -p # MySQL
Enter password:
Welcome to the MySQL monitor. Commands end with ; or \g.
Your MySQL connection id is 13
Server version: 5.0.77 Source distribution
Type 'help;' or '\h' for help. Type '\c' to clear the buffer.
mysql> CREATE DATABASE dotproject; # dotproject (Web Create)
Query OK, 1 row affected (0.00 sec)
mysql> GRANT ALL PRIVILEGES ON dotproject.* TO dotproject@localhost IDENTIFIED BY "YOUR-PASSWORD" WITH GRANT OPTION; # dotproject DB user
Query OK, 0 rows affected (0.00 sec)
http://YourIP/dotproject/install # Web
# rm -rf /var/www/html/dotproject/install #
# chmod 644 /var/www/html/dotproject/includes/config.php #
http://YourIP/dotproject/ # /admin/passwd
Asegurando dotProject
- Es recomendado eliminar la carpeta install
- Se recomienda cambiar el password del Administrador (admin)
- Se recomienda utilizar conexiones Encriptadas - SSL cuando utilice dotProject via Internet.
- Se debe forzar el uso SSL para todos las conecciones agregando las siguientes lineas en el siguiente archivo /etc/httpd/conf/http.conf
Alias /dotproject /var/www/html/dotproject/
<Directory /var/www/html/dotproject>
SSLRequireSSL on
AllowOverride All
AddHandler cgi-script .pl
Options ExecCGI Includes FollowSymlinks
Order Allow,Deny
Allow from All
</Directory>
Reference :
http://www.dotproject.net/
http://of.openfoundry.org/projects/238/download
http://rhyous.com/2009/11/22/how-to-install-dotproject-2-1-2-on-freebsd-7-2-with-apache-2-2-php5-and-mysql-5-1-server/
No hay comentarios:
Publicar un comentario