Sunteți pe pagina 1din 2

yum -y install mysql mysql-server

chkconfig --levels 235 mysqld on


/etc/init.d/mysqld start
mysql_secure_installation
yum -y install httpd
chkconfig --levels 235 httpd on
/etc/init.d/httpd start
yum -y install php
/etc/init.d/httpd restart
vi /var/www/html/info.php

<?php
phpinfo();
?>
yum search php
yum -y install php-mysql
yum -y install php-gd php-imap php-ldap php-odbc php-pear php-xml php-xmlrpc php-mbstring php-mcrypt php-mssql php-snmp php-soap php-tidy
curl curl-devel
yum -y install php-pecl-apc
/etc/init.d/httpd restart
rpm --import http://dag.wieers.com/rpm/packages/RPM-GPG-KEY.dag.txt
Para 64bits
yum -y install http://pkgs.repoforge.org/rpmforge-release/rpmforge-release-0.5.3-1.el6.rf.x86_64.rpm
Para 32bits
yum -y install http://pkgs.repoforge.org/rpmforge-release/rpmforge-release-0.5.3-1.el6.rf.i686.rpm
yum -y install phpmyadmin
vi /etc/httpd/conf.d/phpmyadmin.conf

#
#
#

Web application to manage MySQL

#<Directory "/usr/share/phpmyadmin">
# Order Deny,Allow
# Deny from all
# Allow from 127.0.0.1
#</Directory>
Alias /phpmyadmin /usr/share/phpmyadmin
Alias /phpMyAdmin /usr/share/phpmyadmin
Alias /mysqladmin /usr/share/phpmyadmin
vi /usr/share/phpmyadmin/config.inc.php

[...]
/* Authentication type */
$cfg['Servers'][$i]['auth_type'] = 'http';
[...]
/etc/init.d/httpd restart

INSTALACION DE ASTERISK
yum update y
sed -i s/SELINUX=enforcing/SELINUX=disabled/g /etc/selinux/config
yum install -y make wget openssl-devel ncurses-devel newt-devel libxml2-devel kernel-devel gcc gcc-c++ sqlite-devel
libuuid-devel
cd /usr/src/
wget http://downloads.asterisk.org/pub/telephony/dahdi-linux-complete/dahdi-linux-complete-current.tar.gz
wget http://downloads.asterisk.org/pub/telephony/libpri/libpri-1.4-current.tar.gz
wget http://downloads.asterisk.org/pub/telephony/asterisk/asterisk-11-current.tar.gz
tar zxvf dahdi-linux-complete*
tar zxvf libpri*
tar zxvf asterisk*
cd /usr/src/dahdi-linux-complete*
make && make install && make config
cd /usr/src/libpri*
make && make install
cd /usr/src/asterisk*
./configure --libdir=/usr/lib64 && make menuselect && make && make install
make samples
make config
service dahdi start
service asterisk start
asterisk -rvvv

S-ar putea să vă placă și