centos

Centos 7 install TeamViewer

Установка TeamViewer на Centos 7 Для начало устанавливаем зависимости
sudo yum install -y glibc alsa-lib freetype libICE libSM libX11 libXau \
libXdamage libXext libXfixes libXi libXrandr libXrender libXtst libgcc libuuid libxcb \
zlib qt5-qtdeclarative qt5-qtquickcontrols qt5-qtwebkit qt5-qtx11extras
Теперь устанавливаем для x64
sudo rpm -Uvh https://download.teamviewer.com/download/linux/teamviewer.x86_64.rpm
Для x86
sudo rpm -Uvh https://download.teamviewer.com/download/linux/teamviewer.i686.rpm
VN:F [1.9.22_1171]
Rating: 0.0/10 (0 votes cast)
VN:F [1.9.22_1171]
Rating: 0 (from 0 votes)

CentOS 6.3 php-mcrypt Unable to load dynamic library

Столкнулся с данной проблемой после установки модуля php-mcrypt, после установки в выводе стали появляться следующие сообщения.
PHP Warning:  PHP Startup: Unable to load dynamic library ‘/usr/lib64/php/modules/module.so’ — /usr/lib64/php/modules/module.so: cannot open shared object file: No such file or directory in Unknown on line 0
или
PHP Warning: PHP Startup: Unable to load dynamic library ‘/usr/lib/php/modules/module.so’ — /usr/lib/php/modules/module.so: cannot open shared object file: No such file or directory in Unknown on line 0
открываем и редактируем /etc/php.d/mcrypt.ini было
; Enable mcrypt extension module
extension=module.so
стало
; Enable mcrypt extension module
;extension=module.so
extension=mcrypt.so
VN:D [1.9.22_1171]
Rating: 10.0/10 (3 votes cast)
VN:D [1.9.22_1171]
Rating: +5 (from 5 votes)

Centos установка FreePBX в VirtualHost (suphp)

Убил день на поиски решения ISPconfig+Asterisk+FreePBX решил записать решение. Скачиваем и устанвливаем
wget ftp://fr2.rpmfind.net/linux/dag/redhat/el5/en/i386/dag/RPMS/mod_suphp-0.7.1-1.el5.rf.i386.rpm
rpm -i mod_suphp-0.7.1-1.el5.rf.i386.rpm
mkdir /var/lib/php/session_freebpx
chown asterisk:asterisk /var/lib/php/session_freebpx
Содержимое файла /etc/httpd/conf.d/suphp.conf
LoadModule suphp_module modules/mod_suphp.so
Содержимое /etc/suphp.conf
[global]
logfile=/var/log/httpd/suphp_log
loglevel=info
webserver_user=apache
docroot=/
env_path=/bin:/usr/bin
umask=0022
min_uid=500
min_gid=500
 
; Security options
allow_file_group_writeable=false
allow_file_others_writeable=false
allow_directory_group_writeable=false
allow_directory_others_writeable=false
 
;Check wheter script is within DOCUMENT_ROOT
check_vhost_docroot=true
 
;Send minor error messages to browser
errors_to_browser=false
;handle_userdir=true
 
[handlers]
;Handler for php-scripts
;x-httpd-php=php:/usr/bin/php
x-httpd-php=php\:/usr/bin/php-cgi
 
;Handler for CGI-scripts
x-suphp-cgi=execute:!self
Содержимое файла /etc/httpd/conf.d/freepbx.conf
Listen 8100
NameVirtualHost *:8100
<VirtualHost *:8100>
ServerAdmin moc.niamodym@ti
ServerName freepbx.mydomain.com
DirectoryIndex index.php
DocumentRoot /var/www/freepbx
suPHP_Engine on
suPHP_UserGroup asterisk asterisk
suPHP_ConfigPath /etc
AddHandler x-httpd-php .php .php3 .php4 .php5
suPHP_AddHandler x-httpd-suphp x-httpd-php
php_value session.save_path ‘/var/lib/php/session_freebpx’
<Directory /var/www/freepbx>
Options Indexes FollowSymLinks MultiViews
AllowOverride All
Order allow,deny
Allow from All
</Directory>
ErrorLog /var/log/httpd/error_log
# ErrorLog /var/log/apache2/freepbx-error.log
LogLevel warn
# CustomLog /var/log/apache2/access.log combined
</VirtualHost>
Перегружаем httpd
/etc/init.d/httpd restart
VN:D [1.9.22_1171]
Rating: 10.0/10 (1 vote cast)
VN:D [1.9.22_1171]
Rating: +1 (from 1 vote)

Centos установка RPMforge и EPEL

Скрипт автоматической установки RPMforge и EPEL скачать можно здесь install_EPEL_RPMforge.sh
#!/bin/bash
 
ver=`cat /etc/redhat-release | sed -e "s/.*release \(.\).*/\1/"`;
x64=`uname -a | grep "x86_64" | wc -l`;
 
rpm --import http://dl.fedoraproject.org/pub/epel/RPM-GPG-KEY-EPEL
rpm --import http://apt.sw.be/RPM-GPG-KEY.dag.txt
 
if [ "$ver" = "5" ] && [ "$x64" = "0" ]; then
echo "
Install epel rpmforge Centos 5 x86
"
wget -O /tmp/rpmforge.rpm http://packages.sw.be/rpmforge-release/rpmforge-release-0.5.2-2.el5.rf.i386.rpm
rpm -Uvh http://dl.fedoraproject.org/pub/epel/5/i386/epel-release-5-4.noarch.rpm
rpm -i /tmp/rpmforge.rpm
 
fi
 
if [ "$ver" = "5" ] && [ "$x64" = "1" ]; then
echo "
Install epel rpmforge Centos 5 x64
"
wget -O /tmp/rpmforge.rpm http://packages.sw.be/rpmforge-release/rpmforge-release-0.5.2-2.el5.rf.x86_64.rpm
rpm -Uvh http://dl.fedoraproject.org/pub/epel/5/x86_64/epel-release-5-4.noarch.rpm
rpm -i /tmp/rpmforge.rpm
 
fi
 
if [ "$ver" = "6" ] && [ "$x64" = "1" ]; then
echo "
Install epel rpmforge Centos 6 x64
"
wget -O /tmp/rpmforge.rpm http://packages.sw.be/rpmforge-release/rpmforge-release-0.5.2-2.el6.rf.x86_64.rpm
rpm -Uvh http://dl.fedoraproject.org/pub/epel/6/x86_64/epel-release-6-7.noarch.rpm
rpm -i /tmp/rpmforge.rpm
 
fi
 
if [ "$ver" = "6" ] && [ "$x64" = "0" ]; then
echo "
Install epel rpmforge Centos 6 x86
"
wget -O /tmp/rpmforge.rpm http://packages.sw.be/rpmforge-release/rpmforge-release-0.5.2-2.el6.rf.i686.rpm
rpm -Uvh http://dl.fedoraproject.org/pub/epel/6/i386/epel-release-6-8.noarch.rpm 
rpm -i /tmp/rpmforge.rpm
 
fi
VN:D [1.9.22_1171]
Rating: 10.0/10 (1 vote cast)
VN:D [1.9.22_1171]
Rating: +1 (from 1 vote)

Login

Рубрики

Праздники

Армейские праздники

Счетчики

Яндекс.Метрика