Documenti di Didattica
Documenti di Professioni
Documenti di Cultura
Nota: Debe ingresar como usuario “root” para ejecutar los comandos.
- http://www-us.apache.org/dist/apr/
apr-1.6.3.tar.gz
apr-util-1.6.1.tar.gz
- http://vault.centos.org/6.8/os/x86_64/Packages/
mysql-5.1.73-7.el6.x86_64.rpm
mysql-libs-5.1.73-7.el6.x86_64.rpm
perl-DBI-1.609-4.el6.x86_64.rpm
perl-DBD-MySQL-4.013-3.el6.x86_64.rpm
mysql-server-5.1.73-7.el6.x86_64.rpm
zlib-devel-1.2.3-29.el6.x86_64.rpm
libxml2-devel-2.7.6-21.el6.x86_64.rpm
libpng-devel-1.2.49-2.el6_7.x86_64.rpm
libjpeg-turbo-devel-1.2.1-3.el6_5.x86_64.rpm
freetype-devel-2.3.11-17.el6.x86_64.rpm
bzip2-devel-1.0.5-7.el6_0.x86_64.rpm
libidn-devel-1.18-2.el6.x86_64.rpm
autoconf-2.63-5.1.el6.noarch.rpm
automake-1.11.1-4.el6.noarch.rpm
libcurl-devel-7.19.7-52.el6.x86_64.rpm
- http://php.net/get/php-5.6.34.tar.gz/from/a/mirror
php-5.6.34.tar.gz
- http://www-eu.apache.org/dist/httpd/
httpd-2.4.32.tar.gz
- https://www.phpmyadmin.net/downloads/
phpMyAdmin-4.7.9-all-languages.tar.gz
1
SERVIDOR DE BASE DE DATOS MySQL
cd /root/Downloads
rpm -ivh mysql-5.1.73-7.el6.x86_64.rpm
rpm -ivh mysql-libs-5.1.73-7.el6.x86_64.rpm
rpm -ivh perl-DBI-1.609-4.el6.x86_64.rpm
rpm -ivh perl-DBD-MySQL-4.013-3.el6.x86_64.rpm
rpm -ivh mysql-server-5.1.73-7.el6.x86_64.rpm
which will also give you the option of removing the test databases and
anonymous user created by default. This is strongly recommended for
production servers.
[ OK ]
Starting mysqld: [ OK ]
mysql -u root -p
Enter password:
mysql-server-5.1.73-5.el6_6.x86_64
mysql-libs-5.1.73-5.el6_6.x86_64
mysql-5.1.73-5.el6_6.x86_64
wget https://dl.fedoraproject.org/pub/epel/epel-release-latest
6.noarch.rpm && rpm -Uvh epel-release-latest-6.noarch.rpm
nano /etc/yum.repos.d/remi.repo
12. Debajo de la sección que se parece a [remi] haga los siguientes cambios
resaltado:
[remi]
name=Remi's RPM repository for Enterprise Linux 6 - $basearch
#baseurl=http://rpms.remirepo.net/enterprise/6/remi/$basearch/
mirrorlist=http://rpms.remirepo.net/enterprise/6/remi/mirror
enabled=1
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-remi
mysql-5.5.59-1.el6.remi.x86_64
mysql-libs-5.5.59-1.el6.remi.x86_64
compat-mysql51-5.1.73-1.el6.remi.x86_64
mysql-server-5.5.59-1.el6.remi.x86_64
mysql -u root -p
Enter password:
1. Instalar expat-devel
cd /root/Downloads
tar xzvf apr-1.6.3.tar.gz –C /usr/local
cd /usr/local
mv apr-1.6.3 apr
cd /usr/local/apr
./configure
make
make install
cd /root/Downloads
tar xzvf apr-util-1.6.1.tar.gz –C /usr/local
cd /usr/local
mv apr-util-1.6.1 apr-util
cd /usr/local/apr-util
./configure --with-apr=/usr/local/apr
make
make install
6. Instalar pcre-devel
Paquete APACHE
cd /root/Downloads
tar xzvf httpd-2.4.32.tar.gz -C /usr/local
cd /usr/local/httpd-2.4.32/
./configure --prefix=/usr/local/apache --with-apr=/usr/local/apr/ --enable-so
make
make install
/usr/local/apache/bin/apachectl start
http://localhost
cd /root/Downloads
rpm -ivh zlib-devel-1.2.3-29.el6.x86_64.rpm
rpm -ivh libxml2-devel-2.7.6-21.el6.x86_64.rpm
rpm -ivh libpng-devel-1.2.49-2.el6_7.x86_64.rpm
rpm -ivh libjpeg-turbo-devel-1.2.1-3.el6_5.x86_64.rpm
rpm -ivh freetype-devel-2.3.11-17.el6.x86_64.rpm
rpm -ivh bzip2-devel-1.0.5-7.el6_0.x86_64.rpm
rpm -ivh libidn-devel-1.18-2.el6.x86_64.rpm
rpm -ivh autoconf-2.63-5.1.el6.noarch.rpm
rpm -ivh automake-1.11.1-4.el6.noarch.rpm
rpm -ivh libcurl-devel-7.19.7-52.el6.x86_64.rpm
cd /root/Downloads
tar xzvf php-5.6.34.tar.gz -C /usr/local
cd /usr/local/php-5.6.34
make
make install
cp php.ini-development /usr/local/lib/php.ini
cd /usr/local/apache/conf
gedit httpd.conf
a. Modifique la línea:
5
#ServerName www.example.com
ServerName 127.0.0.1
<IfModule dir_module>
DirectoryIndex index.html
</IfModule>
<IfModule dir_module>
DirectoryIndex index.html index.php default.html
</IfModule>
<FilesMatch "\.ph(p[2-6]?|tml)$">
SetHandler application/x-httpd-php
</FilesMatch>
<FilesMatch "\.phps$">
SetHandler application/x-httpd-php-source
</FilesMatch>
/usr/local/apache/bin/apachectl start
cd /usr/local/apache/htdocs
touch info.php
gedit info.php
6
<?php
phpinfo();
?>
http://127.0.0.1/info.php
cd /root/Downloads
tar xzvf phpMyAdmin-4.7.9-all-languages.tar.gz –C /usr/local/apache/htdocs
cd /usr/local/apache/htdocs
mv phpMyAdmin-4.7.9-all-languages phpmyadmin
http://127.0.0.1/phpmyadmin
Usuario: root
Password: centos