Page 1 of 1

Установка tidy-php

Posted: Sun Apr 10, 2016 12:48 pm
by Sankaboy
Добрый день.
Пожалуйста, помогите установить tidy на сервер с Centos realise 6.6 Final x86_x64, админка VestaCP.

При выполнении команды:
[root@ ~]# yum install -y php-tidy
Выдает:

Code: Select all

Loaded plugins: fastestmirror
Setting up Install Process
Loading mirror speeds from cached hostfile
 * base: mirror1.babylon.network
 * epel: mirror1.babylon.network
 * extras: mirror1.babylon.network
 * updates: mirror1.babylon.network
Resolving Dependencies
--> Running transaction check
---> Package php-tidy.x86_64 0:5.3.3-46.el6_7.1 will be installed
--> Processing Dependency: php-common(x86-64) = 5.3.3-46.el6_7.1 for package: php-tidy-5.3.3-46.el6_7.1.x86_64
--> Finished Dependency Resolution
Error: Package: php-tidy-5.3.3-46.el6_7.1.x86_64 (updates)
           Requires: php-common(x86-64) = 5.3.3-46.el6_7.1
           Installed: php-common-5.4.43-1.el6.remi.x86_64 (@remi)
               php-common(x86-64) = 5.4.43-1.el6.remi
           Available: php-common-5.3.3-40.el6_6.x86_64 (base)
               php-common(x86-64) = 5.3.3-40.el6_6
           Available: php-common-5.3.3-46.el6_6.x86_64 (updates)
               php-common(x86-64) = 5.3.3-46.el6_6
           Available: php-common-5.3.3-46.el6_7.1.x86_64 (updates)
               php-common(x86-64) = 5.3.3-46.el6_7.1
 You could try using --skip-broken to work around the problem
 You could try running: rpm -Va --nofiles --nodigest
Версия пхп на сервере:
PHP 5.4.43 (cli) (built: Jul 8 2015 12:08:50)

Обновлять пхп не буду. Т.к. сам я тупой в юзании сервера, а если еще новую версию пхп наложить, то мб сервер ляжет и не в моих силах будет исправлять директории или частично работающую новую версию пхп.

С нетерпением жду ответа.
С уважением!

Re: Установка tidy-php

Posted: Sun Apr 10, 2016 9:22 pm
by Sankaboy
После установки и "удаления" tidy-php перестал открываться phpmyadmin.
Раньше он открывался по ссылке: http://ИП_АДРЕСС/phpmyadmin/
Сейчас phpmyadmin нету. Как исправить это дело?

Этих файлов нет:
/etc/phpMyAdmin/config.inc.php
/etc/httpd/conf.d/phpMyAdmin.conf

Этот /etc/httpd/conf.d/phpMyAdmin.conf я создал с текстом:

Code: Select all

Alias /phpMyAdmin /usr/share/phpMyAdmin
Alias /phpmyadmin /usr/share/phpMyAdmin

<Directory /usr/share/phpMyAdmin/>
   Order Deny,Allow
   Deny from All
   Allow from All
</Directory>

<Directory /usr/share/phpMyAdmin/scripts/>
   Order Deny,Allow
   Deny from All
   Allow from All
</Directory>

# This directory does not require access over HTTP - taken from the original
# phpMyAdmin upstream tarball
#
<Directory /usr/share/phpMyAdmin/libraries/>
    Order Deny,Allow
    Deny from All
    Allow from None
</Directory>

# This configuration prevents mod_security at phpMyAdmin directories from
# filtering SQL etc.  This may break your mod_security implementation.
#
#<IfModule mod_security.c>
#    <Directory /usr/share/phpMyAdmin/>
#        SecRuleInheritance Off
#    </Directory>
#</IfModule>
Теперь ссылка http://ИП_АДРЕСС/phpmyadmin/ выдала ошибку 404. А раньше открывала один из моих сайтов.

Вот эта директория /usr/share/phpMyAdmin отсутствует.

В логах /var/log/httpd/error_log постоянно это крутится:

Code: Select all

[Mon Apr 11 00:14:28 2016] [notice] mod_ruid2/0.9.8 enabled
[Mon Apr 11 00:14:28 2016] [notice] Apache/2.2.15 (Unix) DAV/2 mod_fcgid/2.3.9 PHP/5.4.43 mod_ssl/2.2.15 OpenSSL/1.0.0-fips configured -- resuming normal operations
[Mon Apr 11 00:16:55 2016] [notice] caught SIGTERM, shutting down
[Mon Apr 11 00:16:56 2016] [notice] suEXEC mechanism enabled (wrapper: /usr/sbin/suexec)
[Mon Apr 11 00:16:56 2016] [notice] Digest: generating secret for digest authentication ...
[Mon Apr 11 00:16:56 2016] [notice] Digest: done
[Mon Apr 11 00:16:56 2016] [notice] mod_ruid2/0.9.8 enabled
[Mon Apr 11 00:16:56 2016] [notice] Apache/2.2.15 (Unix) DAV/2 mod_fcgid/2.3.9 PHP/5.4.43 mod_ssl/2.2.15 OpenSSL/1.0.0-fips configured -- resuming normal operations
В других логах ничего страшного не увидел. Обычные ошибки отсутствия картинок и т.д.

Мне кажется устанавливая и удаляя tidy-php я удалил myphpadmin.
Но при установке пишет:

Code: Select all

[root@ ~]# yum install phpmyadmin
Loaded plugins: fastestmirror
Setting up Install Process
Loading mirror speeds from cached hostfile
 * base: mirror1.babylon.network
 * epel: mirror1.babylon.network
 * extras: mirror1.babylon.network
 * updates: mirror1.babylon.network
Resolving Dependencies
--> Running transaction check
---> Package phpMyAdmin.noarch 0:4.0.10.15-1.el6 will be installed
--> Processing Dependency: php-tcpdf-dejavu-sans-fonts for package: phpMyAdmin-4.0.10.15-1.el6.noarch
--> Processing Dependency: php-tcpdf for package: phpMyAdmin-4.0.10.15-1.el6.noarch
--> Running transaction check
---> Package php-tcpdf.noarch 0:6.2.11-1.el6 will be installed
--> Processing Dependency: php-tidy for package: php-tcpdf-6.2.11-1.el6.noarch
---> Package php-tcpdf-dejavu-sans-fonts.noarch 0:6.2.11-1.el6 will be installed
--> Running transaction check
---> Package php-tidy.x86_64 0:5.3.3-46.el6_7.1 will be installed
--> Processing Dependency: php-common(x86-64) = 5.3.3-46.el6_7.1 for package: php-tidy-5.3.3-46.el6_7.1.x86_64
--> Finished Dependency Resolution
Error: Package: php-tidy-5.3.3-46.el6_7.1.x86_64 (updates)
           Requires: php-common(x86-64) = 5.3.3-46.el6_7.1
           Installed: php-common-5.4.43-1.el6.remi.x86_64 (@remi)
               php-common(x86-64) = 5.4.43-1.el6.remi
           Available: php-common-5.3.3-40.el6_6.x86_64 (base)
               php-common(x86-64) = 5.3.3-40.el6_6
           Available: php-common-5.3.3-46.el6_6.x86_64 (updates)
               php-common(x86-64) = 5.3.3-46.el6_6
           Available: php-common-5.3.3-46.el6_7.1.x86_64 (updates)
               php-common(x86-64) = 5.3.3-46.el6_7.1
 You could try using --skip-broken to work around the problem
 You could try running: rpm -Va --nofiles --nodigest
В общем наделал грехов. Теперь не разгребусь. Хорошо, что сайты еще работают и вроде бы никакая информация не потерялась.

Re: Установка tidy-php

Posted: Mon Apr 11, 2016 9:55 pm
by Sankaboy
/var/log/mysqld.log:

Code: Select all

160411  8:49:37 [Warning] IP address '162.247.132.2' could not be resolved: Temporary failure in name resolution
160411  8:49:38 [Warning] IP address '162.247.132.2' could not be resolved: Temporary failure in name resolution
160411  8:49:38 [Warning] IP address '162.247.132.2' could not be resolved: Temporary failure in name resolution
160411  8:49:38 [Warning] IP address '162.247.132.2' could not be resolved: Temporary failure in name resolution
160411  8:49:39 [Warning] IP address '162.247.132.2' could not be resolved: Temporary failure in name resolution
160411  8:49:39 [Warning] IP address '162.247.132.2' could not be resolved: Temporary failure in name resolution
160411  8:49:40 [Warning] IP address '162.247.132.2' could not be resolved: Temporary failure in name resolution
160411  8:49:40 [Warning] IP address '162.247.132.2' could not be resolved: Temporary failure in name resolution
160411  8:49:41 [Warning] IP address '162.247.132.2' could not be resolved: Temporary failure in name resolution
160411  8:49:41 [Warning] IP address '162.247.132.2' could not be resolved: Temporary failure in name resolution
160411  8:49:42 [Warning] IP address '162.247.132.2' could not be resolved: Temporary failure in name resolution
160411  8:49:42 [Warning] IP address '162.247.132.2' could not be resolved: Temporary failure in name resolution
160411 10:27:58 [Warning] IP address '118.244.151.79' could not be resolved: Name or service not known
160411 11:34:53 [Warning] IP address '101.254.101.195' could not be resolved: Name or service not known
160411 18:11:08 [Warning] IP address '199.188.83.52' has been resolved to the host name '199.188.83.52.pool.hargray.net', which resembles IPv4-address itself.

Re: Установка tidy-php

Posted: Tue Apr 12, 2016 9:41 pm
by Sankaboy
Проблема решена!

Re: Установка tidy-php

Posted: Fri Apr 22, 2016 1:46 pm
by skurudo
Sankaboy wrote:Проблема решена!
Ход мыслей мне понравился, но вот финал без развязки - загадочный.