-
October 31st, 2018, 12:15
#1
سوال درباره نصب cacti و پیش نیازهای نصب php مانند php-iconv
سلام دوستان میخواهیم cacti را روی centos7 نصب کنیم. یه سری پیش نیاز باید نصب بشه اما وقتی دستور yum install میزنیم ارور میده این پکیجها موجود نیست. هر چی مخزن بود هم قرار رفته اما نصب نمیشه. به چه طریق اینها باید نصب شوند یا مخزنی که ای پکیجها را داشته باشه لطف می کنید؟ ممنون
yum install php-mysql php-pear php-common php-gd php-devel php php-mbstring php-cli php-snmp
No package php-pear available.
No package php-common available.
No package php-gd available.
No package php-devel available.
No package php available.
No package php-mbstring available.
No package php-cli available.
No package php-mysql available
--> Finished Dependency Resolution
Error: Package: cacti-1.1.38-2.el7.noarch (epel)
Requires: php-iconv
Error: Package: cacti-1.1.38-2.el7.noarch (epel)
Requires: php-spl
Error: Package: cacti-1.1.38-2.el7.noarch (epel)
Requires: php-pdo_mysql
Error: Package: cacti-1.1.38-2.el7.noarch (epel)
Requires: php-json
Error: Package: cacti-1.1.38-2.el7.noarch (epel)
Requires: php-intl
Error: Package: cacti-1.1.38-2.el7.noarch (epel)
Requires: php-posix
Error: Package: cacti-1.1.38-2.el7.noarch (epel)
Requires: php-snmp
Error: Package: cacti-1.1.38-2.el7.noarch (epel)
Requires: php-filter
Error: Package: cacti-1.1.38-2.el7.noarch (epel)
Requires: php-openssl
Error: Package: cacti-1.1.38-2.el7.noarch (epel)
Requires: php-xml
Error: Package: cacti-1.1.38-2.el7.noarch (epel)
Requires: php-sockets
Error: Package: cacti-1.1.38-2.el7.noarch (epel)
Requires: php-session
Error: Package: cacti-1.1.38-2.el7.noarch (epel)
Requires: php-mbstring
Error: Package: cacti-1.1.38-2.el7.noarch (epel)
Requires: php-simplexml
Error: Package: cacti-1.1.38-2.el7.noarch (epel)
Requires: php-imap
Error: Package: cacti-1.1.38-2.el7.noarch (epel)
Requires: php-reflection
Error: Package: cacti-1.1.38-2.el7.noarch (epel)
Requires: php-ctype
Error: Package: cacti-1.1.38-2.el7.noarch (epel)
Requires: php-pdo
Error: Package: cacti-1.1.38-2.el7.noarch (epel)
Requires: php(language) >= 5.4
Error: Package: cacti-1.1.38-2.el7.noarch (epel)
Requires: /usr/bin/php
Error: Package: cacti-1.1.38-2.el7.noarch (epel)
Requires: php-ldap
Error: Package: cacti-1.1.38-2.el7.noarch (epel)
Requires: php-gd
Error: Package: cacti-1.1.38-2.el7.noarch (epel)
Requires: php-pcntl
Error: Package: cacti-1.1.38-2.el7.noarch (epel)
Requires: httpd
Error: Package: cacti-1.1.38-2.el7.noarch (epel)
Requires: php-zlib
Error: Package: cacti-1.1.38-2.el7.noarch (epel)
Requires: php-date
Error: Package: cacti-1.1.38-2.el7.noarch (epel)
Requires: php-dom
You could try using --skip-broken to work around the problem
You could try running: rpm -Va --nofiles --nodigest
.
-
-
October 31st, 2018 12:15
# ADS
-
November 1st, 2018, 13:02
#2
پاسخ : سوال درباره نصب cacti و پیش نیازهای نصب php مانند php-iconv
-
-
November 1st, 2018, 13:15
#3
عضو انجمن
پاسخ : سوال درباره نصب cacti و پیش نیازهای نصب php مانند php-iconv
این مخزن را برای Centos 7 نصب کنید :
کد:
rpm -Uvh https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm
سپس
و شروع به نصب کنید .
مشکل باید برطرف شود .
اگر برطرف نشد ممکن است مخزن هایی که نصب کردید دچار مشکل باشند و باید سرور چک شود
-
تعداد تشکر ها از rahyarco به دلیل پست مفید
-
November 1st, 2018, 14:12
#4
پاسخ : سوال درباره نصب cacti و پیش نیازهای نصب php مانند php-iconv
خیلی ممنون. قبلا اضافه شده بود. دوباره این دستورات را زدم اما باز هم چند تا پکیجش نصب نشدند ارور داد
--> Processing Dependency: php-date for package: cacti-1.1.38-2.el7.noarch
--> Processing Dependency: php-ctype for package: cacti-1.1.38-2.el7.noarch
--> Processing Dependency: httpd for package: cacti-1.1.38-2.el7.noarch
--> Processing Dependency: /usr/bin/php for package: cacti-1.1.38-2.el7.noarch
--> Processing Dependency: /usr/bin/php for package: cacti-1.1.38-2.el7.noarch
--> Finished Dependency Resolution
Error: Package: cacti-1.1.38-2.el7.noarch (epel)
Requires: php-iconv
Error: Package: cacti-1.1.38-2.el7.noarch (epel)
Requires: php-spl
Error: Package: cacti-1.1.38-2.el7.noarch (epel)
Requires: php-pdo_mysql
Error: Package: cacti-1.1.38-2.el7.noarch (epel)
Requires: php-json
Error: Package: cacti-1.1.38-2.el7.noarch (epel)
Requires: php-intl
Error: Package: cacti-1.1.38-2.el7.noarch (epel)
Requires: php-posix
Error: Package: cacti-1.1.38-2.el7.noarch (epel)
Requires: php-snmp
Error: Package: cacti-1.1.38-2.el7.noarch (epel)
Requires: php-filter
Error: Package: cacti-1.1.38-2.el7.noarch (epel)
Requires: php-openssl
Error: Package: cacti-1.1.38-2.el7.noarch (epel)
Requires: php-xml
Error: Package: cacti-1.1.38-2.el7.noarch (epel)
Requires: php-sockets
Error: Package: cacti-1.1.38-2.el7.noarch (epel)
Requires: php-session
Error: Package: cacti-1.1.38-2.el7.noarch (epel)
Requires: php-mbstring
Error: Package: cacti-1.1.38-2.el7.noarch (epel)
Requires: php-simplexml
Error: Package: cacti-1.1.38-2.el7.noarch (epel)
Requires: php-imap
Error: Package: cacti-1.1.38-2.el7.noarch (epel)
Requires: php-reflection
Error: Package: cacti-1.1.38-2.el7.noarch (epel)
Requires: php-ctype
Error: Package: cacti-1.1.38-2.el7.noarch (epel)
Requires: php-pdo
Error: Package: cacti-1.1.38-2.el7.noarch (epel)
Requires: php(language) >= 5.4
Error: Package: cacti-1.1.38-2.el7.noarch (epel)
Requires: /usr/bin/php
Error: Package: cacti-1.1.38-2.el7.noarch (epel)
Requires: php-ldap
Error: Package: cacti-1.1.38-2.el7.noarch (epel)
Requires: php-gd
Error: Package: cacti-1.1.38-2.el7.noarch (epel)
Requires: php-pcntl
Error: Package: cacti-1.1.38-2.el7.noarch (epel)
Requires: httpd
Error: Package: cacti-1.1.38-2.el7.noarch (epel)
Requires: php-zlib
Error: Package: cacti-1.1.38-2.el7.noarch (epel)
Requires: php-date
Error: Package: cacti-1.1.38-2.el7.noarch (epel)
Requires: php-dom
You could try using --skip-broken to work around the problem
You could try running: rpm -Va --nofiles --nodigest
-
-
November 1st, 2018, 14:31
#5
عضو انجمن
پاسخ : سوال درباره نصب cacti و پیش نیازهای نصب php مانند php-iconv

نوشته اصلی توسط
sabaz
خیلی ممنون. قبلا اضافه شده بود. دوباره این دستورات را زدم اما باز هم چند تا پکیجش نصب نشدند ارور داد
--> Processing Dependency: php-date for package: cacti-1.1.38-2.el7.noarch
--> Processing Dependency: php-ctype for package: cacti-1.1.38-2.el7.noarch
--> Processing Dependency: httpd for package: cacti-1.1.38-2.el7.noarch
--> Processing Dependency: /usr/bin/php for package: cacti-1.1.38-2.el7.noarch
--> Processing Dependency: /usr/bin/php for package: cacti-1.1.38-2.el7.noarch
--> Finished Dependency Resolution
Error: Package: cacti-1.1.38-2.el7.noarch (epel)
Requires: php-iconv
Error: Package: cacti-1.1.38-2.el7.noarch (epel)
Requires: php-spl
Error: Package: cacti-1.1.38-2.el7.noarch (epel)
Requires: php-pdo_mysql
Error: Package: cacti-1.1.38-2.el7.noarch (epel)
Requires: php-json
Error: Package: cacti-1.1.38-2.el7.noarch (epel)
Requires: php-intl
Error: Package: cacti-1.1.38-2.el7.noarch (epel)
Requires: php-posix
Error: Package: cacti-1.1.38-2.el7.noarch (epel)
Requires: php-snmp
Error: Package: cacti-1.1.38-2.el7.noarch (epel)
Requires: php-filter
Error: Package: cacti-1.1.38-2.el7.noarch (epel)
Requires: php-openssl
Error: Package: cacti-1.1.38-2.el7.noarch (epel)
Requires: php-xml
Error: Package: cacti-1.1.38-2.el7.noarch (epel)
Requires: php-sockets
Error: Package: cacti-1.1.38-2.el7.noarch (epel)
Requires: php-session
Error: Package: cacti-1.1.38-2.el7.noarch (epel)
Requires: php-mbstring
Error: Package: cacti-1.1.38-2.el7.noarch (epel)
Requires: php-simplexml
Error: Package: cacti-1.1.38-2.el7.noarch (epel)
Requires: php-imap
Error: Package: cacti-1.1.38-2.el7.noarch (epel)
Requires: php-reflection
Error: Package: cacti-1.1.38-2.el7.noarch (epel)
Requires: php-ctype
Error: Package: cacti-1.1.38-2.el7.noarch (epel)
Requires: php-pdo
Error: Package: cacti-1.1.38-2.el7.noarch (epel)
Requires: php(language) >= 5.4
Error: Package: cacti-1.1.38-2.el7.noarch (epel)
Requires: /usr/bin/php
Error: Package: cacti-1.1.38-2.el7.noarch (epel)
Requires: php-ldap
Error: Package: cacti-1.1.38-2.el7.noarch (epel)
Requires: php-gd
Error: Package: cacti-1.1.38-2.el7.noarch (epel)
Requires: php-pcntl
Error: Package: cacti-1.1.38-2.el7.noarch (epel)
Requires: httpd
Error: Package: cacti-1.1.38-2.el7.noarch (epel)
Requires: php-zlib
Error: Package: cacti-1.1.38-2.el7.noarch (epel)
Requires: php-date
Error: Package: cacti-1.1.38-2.el7.noarch (epel)
Requires: php-dom
You could try using --skip-broken to work around the problem
You could try running: rpm -Va --nofiles --nodigest
خب به نظر می رسد چون مخزن های زیادی نصب کردید دچار مشکل شده اید . اگر می توانید بهتر است سیستم عامل دوباره نصب شود .
و فقط یک بار کد های زیر را بزنید و ریستارت کنید . سپس شروع به نصب ...
کد:
rpm -Uvh https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm
yum update -y
اگر نمی توانید بهتر است ابتدا cacti سپس همه php ها را کلاً پاک کنید
کد:
yum remove cacti
yum remove php* -y
سپس مخزن هایی که تا به الان نصب کردید را همه را پاک کنید .
اگر به جز این سه تا مورد دیگری هم نصب کردید باید آن را پاک کنید .
کد:
yum remove webtatic-release epel-release remi-release
کد زیر را بزنید :
خب اگر همه مخزن ها پاک شده باشند
حالا یک بار ریست کنید .
سپس دوباره کد زیر را بزنید :
کد:
rpm -Uvh https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm
ابتدا php ها و دیتابیس را نصب کنید و تنظیم کنید سپس در انتها cacti را نصب کنید .
-
تعداد تشکر ها از rahyarco به دلیل پست مفید
-
November 1st, 2018, 20:59
#6
پاسخ : سوال درباره نصب cacti و پیش نیازهای نصب php مانند php-iconv
تشکر این ارورها را میده. توی nano /etc/my.cnf این موارد را اضافه کردم. مثلا به این شکل اما فرقی نکرد، امکان نصب کترل پنل هم وجود نداره
innodb_file_per_table=ON
max_heap_table_size=98m
MySQL TimeZone Support
[COLOR=red !important]ERROR: Your Cacti database login account does not have access to the MySQL TimeZone database. Please provide the Cacti database account "select" access to the "time_zone_name" table in the "mysql" database, and populate MySQL's TimeZone information before proceeding.
[/COLOR]
version |
5.1.73 |
>= 5.6 |
MySQL 5.6+ and MariaDB 10.0+ are great releases, and are very good versions to choose. Make sure you run the very latest release though which fixes a long standing low level networking issue that was casuing spine many issues with reliability. |
collation_server |
latin1_swedish_ci |
utf8mb4_unicode_ci |
When using Cacti with languages other than English, it is important to use the utf8mb4_unicode_ci collation type as some characters take more than a single byte. |
character_set_client |
latin1
|
utf8mb4 |
When using Cacti with languages other than English, it is important ot use the utf8mb4 character set as some characters take more than a single byte. |
max_connections |
151 |
>= 100 |
Depending on the number of logins and use of spine data collector, MySQL will need many connections. The calculation for spine is: total_connections = total_processes * (total_threads + script_servers + 1), then you must leave headroom for user connections, which will change depending on the number of concurrent login accounts. |
max_heap_table_size |
16M |
>=98M |
If using the Cacti Performance Booster and choosing a memory storage engine, you have to be careful to flush your Performance Booster buffer before the system runs out of memory table space. This is done two ways, first reducing the size of your output column to just the right size. This column is in the tables poller_output, and poller_output_boost. The second thing you can do is allocate more memory to memory tables. We have arbitrarily chosen a recommended value of 10% of system memory, but if you are using SSD disk drives, or have a smaller system, you may ignore this recommendation or choose a different storage engine. You may see the expected consumption of the Performance Booster tables under Console -> System Utilities -> View Boost Status. |
max_allowed_packet |
1048576 |
>= 16777216 |
With Remote polling capabilities, large amounts of data will be synced from the main server to the remote pollers. Therefore, keep this value at or above 16M. |
tmp_table_size |
16M
|
>= 64M |
When executing subqueries, having a larger temporary table size, keep those temporary tables in memory. |
join_buffer_size |
0.125M
|
>= 64M |
When performing joins, if they are below this size, they will be kept in memory and never written to a temporary file. |
innodb_file_per_table |
OFF |
ON |
When using InnoDB storage it is important to keep your table spaces separate. This makes managing the tables simpler for long time users of MySQL. If you are running with this currently off, you can migrate to the per file storage by enabling the feature, and then running an alter statement on all InnoDB tables. |
innodb_buffer_pool_size |
8M |
>=490M |
InnoDB will hold as much tables and indexes in system memory as is possible. Therefore, you should make the innodb_buffer_pool large enough to hold as much of the tables and index in memory. Checking the size of the /var/lib/mysql/cacti directory will help in determining this value. We are recommending 25% of your systems total memory, but your requirements will vary depending on your systems size. |
innodb_doublewrite |
ON
|
OFF |
With modern SSD type storage, this operation actually degrades the disk more rapidly and adds a 50% overhead on all write operations. |
innodb_additional_mem_pool_size |
1M |
>= 80M |
This is where metadata is stored. If you had a lot of tables, it would be useful to increase this. |
ویرایش توسط sabaz : November 1st, 2018 در ساعت 21:10
-