centos7

How to update PHP in Cent OS 6.8?

扶醉桌前 提交于 2020-01-05 06:52:50
问题 I try to update PHP 5.5 to up using command: sudo rpm -Uvh https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm Retrieving https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm warning: /var/tmp/rpm-tmp.4xrPQL: Header V3 RSA/SHA256 Signature, key ID 352c64e5: NOKEY error: Failed dependencies: epel-release = 6 is needed by (installed) remi-release-6.8-1.el6.remi.noarch epel-release = 6 is needed by (installed) ius-release-1.0-14.ius.centos6.noarch How can I

Docker CentOS 7 - cron not working in local machine

二次信任 提交于 2020-01-05 02:14:44
问题 In my VPS, I have created a docker image containing cron running as entry command. I also have a sample cron file that says it should execute the command every 5 minutes. Dockerfile: FROM centos:centos7 MAINTAINER Lysender <foo@example.com> # Install packages RUN yum -y update && yum clean all RUN yum -y install epel-release && yum clean all RUN yum -y install git \ bind-utils \ pwgen \ psmisc \ net-tools \ hostname \ curl \ curl-devel \ sqlite \ cronie \ libevent \ gearmand \ libgearman \

Cannot Connect to informix through ODBC on linux machine

别等时光非礼了梦想. 提交于 2020-01-04 04:20:12
问题 I am woking on a virtual machine operating CentOS 7, and I am trying to connect to an Informix database using ODBC (unixODBC) through some php. I am using php7.0 and I have installed the unixODBC-2.3.7 as well as installed the informix sdk package (iif.12.10.FC12DE.linux-x86_64). I have configures the odbc.ini and odbcinst.ini as such: odbcinst.ini: [ODBC Drivers] IBM INFORMIX ODBC DRIVER=Installed [IBM INFORMIX ODBC DRIVER] Driver=/opt/IBM/Informix_Software_Bundle/lib/cli/iclis09b.so Setup=

Fiware: can not start cygnus as service

99封情书 提交于 2020-01-04 04:08:14
问题 I installed cygnus using RPMs on fiware image CentOS-7-x64 and I can't start it as a service, Here is my logs: [centos@cygnus-mongo conf]$ sudo service cygnus start Starting cygnus (via systemctl): Job for cygnus.service failed. See 'systemctl status cygnus.service' and 'journalctl -xn' for details. [FAILED] [centos@cygnus-mongo conf]$ sudo journalctl -xn -- Logs begin at mer. 2015-10-07 07:48:29 UTC, end at mer. 2015-10-07 10:02:35 UTC. -- oct. 07 10:02:20 cygnus-mongo.novalocal su[5700]:

chown directory in bash

帅比萌擦擦* 提交于 2020-01-03 05:48:20
问题 I am trying to chown a home directory test for an bash script. I need this functionality because of syncthing which is not syncing the ownerships. #!/bin/bash user=test "chown $user:$user /home/$user" When I use the above script, I get a message "test.sh: line 5: chown test:test ~/home/test/: No such file or directory " Output of ls -l /home/ |grep test drwx------ 5 pwresettest 1005 121 2. Nov 04:23 pwresettest drwx------ 14 test 1001 4096 29. Okt 05:41 test When I am using the command on the

Cron is setup correct (I think) but is not running

[亡魂溺海] 提交于 2020-01-03 05:22:11
问题 I have set some commands in my crontab, but it seems like they are not executed. PHP version is 7+ CentOS 7 This is my list when I run "crontab -u username -l" 45 0 * * * username /usr/bin/php /var/www/production/site/scripts/process1.php */2 * * * * username /usr/bin/php /var/www/production/site/scripts/process2.php 25 * * * * username /usr/bin/php /var/www/production/api/scripts/process3.php username is an existing user and has rights to the PHP files. Same results when I use the root user.

Inconsistent systemd startup of freeswitch

纵饮孤独 提交于 2020-01-03 01:52:32
问题 I have two problems running freeswitch from systemd : EDIT 2 - I have moved the slow start up question to here (Freeswitch pauses on check_ip at boot on centos 7.1) as although they may be related it's probably good as a standalone. EDIT - I have noticed something else. Look at these next lines captured from the terminal output when running it from there. The gap is 4 minutes but it has been around 10 minutes before. I noticed it because I was trying to find out why port 8021 was taking

Inconsistent systemd startup of freeswitch

橙三吉。 提交于 2020-01-03 01:52:09
问题 I have two problems running freeswitch from systemd : EDIT 2 - I have moved the slow start up question to here (Freeswitch pauses on check_ip at boot on centos 7.1) as although they may be related it's probably good as a standalone. EDIT - I have noticed something else. Look at these next lines captured from the terminal output when running it from there. The gap is 4 minutes but it has been around 10 minutes before. I noticed it because I was trying to find out why port 8021 was taking

Centos7 docker-py doesn't seem to be installed

血红的双手。 提交于 2020-01-01 08:25:09
问题 I installed Centos7 minimal and then: ansible, docker, pip and using pip I installed docker-py. Versions: - Docker version 1.6.0, build 8aae715/1.6.0 - ansible 1.9.1 - docker_py-1.2.2 Trying to run a playbook, for example - name: redis container docker: name: myredis image: redis state: started i get msg: docker-py doesn't seem to be installed, but is required for the Ansible Docker module. I can't see the problem. Is it the CentOS, docker and ansible version? PS: I disabled the firewalld and

Failed to open stream on file_put_contents in PHP on CentOS 7

|▌冷眼眸甩不掉的悲伤 提交于 2020-01-01 05:49:07
问题 I know this is a common bug with many threads but I'm tired of searching and I still haven't solved it. When I try to run the function file_put_contents I get the following error: Warning: file_put_contents(test.txt): failed to open stream: Permission denied in /var/www/html/nurses/adminWriter.php on line 29 I've already done the most common answer, change the permissions of the nurses folder and the test.txt file to 777. That didn't work. I'm currently on a fresh install of the latest CentOS