Questions tagged [centos]

1

votes
1

answer
341

Views

PHP 7 on CentOS 7.4

I am trying to set up a web server to host Moodle on and I've been running into problems when trying to install PHP7. I am currently using VirtualBox to host CentOS 7.4. By default, CentOS comes packaged with PHP 5.4.16. Now, from what I have read, the options for upgrading and installing from scrat...
importedtea
1

votes
1

answer
258

Views

installing and running browsershots

I tried to install Brwoswershots (https://github.com/spatie/browsershot) and I did this exactly by following the instructions on github. Installing NodeJS and npm via yum Installing browswershoots via composer: composer require satie/browsershot crated a file with use Spatie\Browsershot\Browsersho...
Gregor Meier
1

votes
1

answer
385

Views

How to run docker inside centos 7 lxc?

I get this to work work Ubuntu using security.privileged and security.nesting just fine. However with centos7, the docker daemon fails when trying to pull the images. It can't even run hello-world. There is a cgroup violation that some folder doesn't exist. Anyways, are there any successful examples...
Hcabnettek
1

votes
1

answer
101

Views

Installing tomcat on windows using CHEF

I have an instance on amazon aws which is centos and working as chef workstation. Two nodes viz. centos and windows server 16 base are working as chef client on which I need to install tomcat server. Centos client is done but cant install tomcat on windows instance using different cookbook available...
1

votes
1

answer
31

Views

Getting Tomcat 7 to work on remote CentOS 7.5

I am trying to run a website (WAR-file)on a remote CentOS 7.5 VM. I have access to this VM through ssh connection with putty and am able to remote view desktop. The current problem is that even though Tomcat can start, when trying to wget or via browser to view the website a 'Connection refused' is...
RabbitBones22
1

votes
0

answer
102

Views

CentOS Mondo Rescue Error to Restore the iso: Kernel Panic

I am trying to create an image (.iso) of my installed CentOS 5.11 system, for this i am using the 'Mondo Rescue' with the command: mondoarchive -Oi -9 -L -d /tmp/centos_iso -I / -T /tmp/centos_iso -p centos_image -s 4480m -E '/tmp|/var/spool/squid|/var/log' The image is generated, and apparently is...
1

votes
1

answer
245

Views

CentOs Mail Server Limit per 30 Minutes

I am getting the Error 'Recipient address rejected: sorry, max 50 requests per 30 minutes (in reply to RCPT TO command))' in my '/var/log/maillog' log File. I know this is because I've sent to many Emails, but I would like to raise it to about 200. But i cant find the configuration file for my Mail...
user3241778
1

votes
0

answer
222

Views

Jenkins installation error on Centos7 - File contains no section headers

During my first installation of Jenkins on CentOS7, I've encountered this tough problem. File contains no section headers. file: file:///etc/yum.repos.d/jenkins.repo, line: 1 '--2018-05-25 10:51:24-- http://pkg.jenkins-ci.org/redhat/jenkins.repo\n' After Googling and searching related issues in S...
bbjoony
1

votes
0

answer
33

Views

PDO-ODBC (MS SQL) returns NULL results

I make the connection like so: $dbh = new PDO ('odbc:DRIVER=MSODBC17;SERVER=$hostname,$port;DATABASE=$dbname', '$username', '$pw'); Then query: $stmt = $dbh->prepare(' --QUERY HERE '); $stmt->execute(); And when I print it, it returns NULL //var_dump($stmt->fetch()); while ($row = $stmt->fetch()) {...
Borsn
1

votes
0

answer
53

Views

How would I minimise this code, so it doesn't have to be repeated?

I am currently working on a shell script that will act as an autoinstaller for Multicraft. I have written a snippet that checks to see if the OS is CentOS, and then decides what commands to use based off the version of CentOS in use. # Check server is CentOS if [ ! -f '/etc/redhat-release' ]; then e...
Joshua Quinlan
1

votes
1

answer
24

Views

what I need to do when change from ipv4 to ipv6

I have web server apache , nginx that running on centos , I want to change it to ipv6 . I found the below url . https://unix.stackexchange.com/quest...-on-centos-6-2 I just would like to confirm all thing that I need to do is just add/update the below to network config file ? no need to install any...
patrickchan
1

votes
0

answer
277

Views

install python setuptools on linux

I have machine without internet access, running on CentOS. So I want to install urllib3. I downloaded zip-archive from github, transferred it to my machine, unzip it, and try to execute python setup.py install . Then I have an error: ImportError: No module named setuptools. So I want to install set...
Andrew
1

votes
0

answer
130

Views

Django Connection to MySQL RuntimeError: populate() isn't reentrant

I have configured the sample Django application to be on virtualenv, with apache and mod_wsgi. This application will be running on a centos server. However, when I have changed my settings.py file to the mysql setting, I have received a 500 Internal error. Logs [wsgi:error] [pid 11556] Traceback (...
Darryl Ong
1

votes
0

answer
200

Views

metabase as service with oracle database

I tried Install Metabase as servicetutorial for Metabase Setup on CENTOS. Though i want to run metabase with oracle. [[email protected] MetaBase]$ pwd /home/bkmetabase/MetaBase [[email protected] MetaBase]$ ll total 119488 -rw-rw-r-- 1 bkmetabase bkmetabase 3975 Jun 6 07:52 logger_metabase.log -rw...
KumarDharm
1

votes
0

answer
732

Views

Error: No module named Elasticsearch

I am running a virtual environment on Google Cloud (CentOS). I've installed es_v as my virtual environment and followed these instructions to install elastic search. (es_v)$ which java /usr/bin/java (es_v)$ which python /var/www/my_project/elastic/es_v/bin/python (es_v)$ python --version Python 3.6...
Feyzi Bagirov
1

votes
1

answer
16

Views

nginx CentOS 7 can not reached via http

nginx configured on vps but default index.html not reached by public ip or domain name via http nginx config server { listen 80 default_server; server_name domainname.com; root /usr/share/nginx/html; index index.html; location / { } }
ak-j
1

votes
0

answer
109

Views

Installation of OpenStack PackStack in Centos 7

I am trying install openstack-packstack in Centos7. Whenever i give yum install openstack-packstack It throws two dependencies error Error: Package: python2-cryptography-2.1.4-1.e17.x86_64 (centos-openstack-queens) Requires: libcrypto.so.10(OPENSSL_1.0.2)(64bit) Error: Package: 1: openstack-packst...
Prabhaa
1

votes
0

answer
12

Views

Preperation Failed Error on Centos

I'm trying to use Gitlab-Runner with Docker running on Centos to do some CI shenanigans, but I keep getting the error ERROR: Preparation failed: error during connect: Get http://%2F%2F.%2Fpipe%2Fdocker_engine/v1.18/info: open //./pipe/docker_engine: The system cannot find the file specified. I...
Daniel
1

votes
1

answer
119

Views

centos 7 save rsyslog on local and remote simultaneously

I am administrator of postfix mail server with centos7. Today network administrator requests that all logs of email service must send to new log server that they run in network recently. Sending logs to log server done by rsyslog, but my problem is email logs in /var/log/maillog does not saves the l...
SMT
1

votes
0

answer
291

Views

Curl multi request error: Recv failure: Connection reset by peer

Before explaining my issues I already read this article but I think is not my case: CURL ERROR: Recv failure: Connection reset by peer - PHP Curl I have 2 servers, both centos 7.4 On the first server I create a curl multi request in a php file with 1000 , make the request to another php file in the...
Daniel lm
1

votes
0

answer
112

Views

What is the equivalent of linux-ftools on CentOS?

Is there an equivalent of linux-ftools on CentOS? I'm looking to identify which files are in the cache in a high-utilization situation (see the buff/cache column as follows): [~]# free -h total used free shared buff/cache available Mem: 31G 2.6G 5.9G...
rio197
1

votes
1

answer
139

Views

Flask / uWSGI / CentOS - updates do not work

to be honest i am a Noob if it comes to servers & maintenance. I followed exactly the following guide to create my first 'Hello There' page which worked out so far. https://www.digitalocean.com/community/tutorials/how-to-serve-flask-applications-with-uwsgi-and-nginx-on-centos-7 But after trying to u...
Stefan Müller
1

votes
0

answer
320

Views

LD_PRELOAD in docker

When I run docker as following: docker run -it -e LD_PRELOAD=/bin/xyz.so bash env It runs as expected, and the output is: HOSTNAME=2116ac3bae11 _BASH_VERSION=4.4 _BASH_LATEST_PATCH=23 PWD=/ HOME=/root _BASH_GPG_KEY=7C0135FB088AAF6C66C650B9BB5869F064EA74AB TERM=xterm SHLVL=0 PATH=/usr/local/sbin:/usr...
BezBran
1

votes
0

answer
82

Views

configure JPDA in tomcat 8

I have tomcat 8 on my centos server and the configuration of JPDA is (in catalina.sh): export JPDA_OPTS='-agentlib:jdwp=transport=dt_socket,address=8000,server=y,suspend=n' but after some minute of working with it (and connect to this port) the port was down with below error on catalina.out Listenin...
Elham_Jahani
1

votes
0

answer
56

Views

local to local connections with TIME_WAIT state in centos

I have centos7 host with 2 interfaces: lo: 127.0.0.1 eth0: 10.0.0.11 when I am looking for 'local to local' connections in netstat -apeen output or in /proc/net/tcp file, I can see only one line for TIME_WAIT connection, for example (case 1): tcp 0 0 127.0.0.1:6388 127.0.0.1:13444 TIME_WAIT a...
Vladimir P
1

votes
0

answer
38

Views

Deleted /usr/bin/sudo

I was following this guide for upgrading Vim in CentOS7. After uninstalling vim-minimal, /usr/bin/sudo was removed for dependencies. Is there a way for me to reinstall this without completely wiping my instance and starting from scratch? Edit: su - is disabled on EC2 instances, so it is not possib...
Chris S
1

votes
0

answer
57

Views

newlib-cygwin build. no rule to make target install

I try to build newlib-cygwin on CentOS. Got those error. make[4]: Leaving directory `/home/me/src/build-newlib/i686-pc-cygwin/newlib' make[3]: Leaving directory `/home/me/src/build-newlib/i686-pc-cygwin/newlib' make[2]: Leaving directory `/home/me/src/build-newlib/i686-pc-cygwin/newlib' make[2]: En...
chans
1

votes
0

answer
235

Views

Cannot get Traefik to work on Centos 7.5 with Kubernetes

Centos 7.5 I am trying to get Traefik installed in Kubernetes using the guide from here. I performed the following: kubectl apply -f https://raw.githubusercontent.com/containous/traefik/master/examples/k8s/traefik-rbac.yaml kubectl apply -f https://raw.githubusercontent.com/containous/traefik/master...
TheEdge
1

votes
1

answer
2.7k

Views

No package httpd available using yum on CentOs 7

When I try: yum install httpd I get the error: Loaded plugins: changelog, fastestmirror Loading mirror speeds from cached hostfile * base: mirrors.cloud.aliyuncs.com * extras: mirrors.cloud.aliyuncs.com * updates: mirrors.cloud.aliyuncs.com No package httpd available. Error: Nothing to do enter imag...
JIANGCHAO JHU
1

votes
1

answer
28

Views

Apache handling multiple domains with mod_wsgi

I want apache to run django mod_wsgi and php application on one server. I have made changes in conf.d file below but its not working. ServerName api.temp.in #Django Application Require all granted ServerName web.temp.in ServerAlias web.temp.in DocumentRoot /var/www/html Currently both the domains ar...
AkshayK
1

votes
0

answer
110

Views

Centos 6: Software Collections don't install correctly

On centos 6 (using Docker's centos:6), I've installed centos-release-scl and scl-utils-build via yum, but trying to run scl gives bash: scl: command not found find / -name scl returns nothing, so I don't think it's a path issue. Any help would be much appreciated
Mohan
1

votes
0

answer
321

Views

Is there a defined list of the exit codes that rpm returns based on the type of error it had?

Each time rpm command returns different exit codes. For example- In case of failed dependency sometimes echo $? gives 1 and sometime 5. Can someone explain this?
Arun Prakash
1

votes
0

answer
46

Views

Can't start redis as a service

We're doing a big server migration on Azure and I want to reinstall our Redis version on the new server to match. 2 environments, Preproduction & Production. For the Production installation, no problem but with the same installation script, I can't start Redis as a service on our Preproduction serve...
1

votes
1

answer
133

Views

Nginxplus docker build is failing with 403 Forbidden error for Centos 7

I am trying to build and nginx plus docker image with centos 7 .Below is the Dockerfile I am using. FROM centos:7 MAINTAINER NGINX Docker Maintainers '[email protected]' RUN yum install -y wget # Copy certificate and key to the build context ADD nginx-repo.crt /etc/ssl/nginx/ ADD nginx-repo.key /etc/ssl/nginx...
The Learner
1

votes
0

answer
25

Views

Java webapp in CentOS7 cannot connect to MSSQL server

My java web application connects to remote MSSQL server database by using JDBC. The address is a web URL: https://mssql2008.server.com. It works well on my PC. However, after I deployed it to Tomcat 9 on VPS CentOS 7. I got an error as follows: com.company.app.utils.DBConnection. nullcom.microsoft.s...
Duy Huynh
1

votes
0

answer
96

Views

**Assertion `!xcb_xlib_threads_sequence_lost' failed** while running graphics program in C

#include #include #include int abs (int n) { return ( (n>0) ? n : ( n * (-1))); } void DDA(int X0, int Y0, int X1, int Y1) { int dx = X1 - X0; int dy = Y1 - Y0; int steps = abs(dx) > abs(dy) ? abs(dx) : abs(dy); float Xinc = dx / (float) steps; float Yinc = dy / (float) steps; float X = X0; float Y...
umang
1

votes
0

answer
113

Views

hostname -f and socket.getfqdn() returning different

I am using CentOS 7 in VMVirtualbox in Windows 10. In /etc/hosts file, I have added the ipaddress of Windows PC abc.def.xyz.abc and changed hostname to abc.def.xyz.abc. But when I run the following commands, the output is different: $ python -c 'import socket;print socket.gethostname()' abc.def....
M Scott
1

votes
0

answer
305

Views

Installing unixODBC on CentOS 7 fails: libodbcinst.so.1 => not found

I'm trying to install unixODBC on CentOS7 by following the steps found here: https://github.com/mkleehammer/pyodbc/wiki/Connecting-to-Oracle-from-RHEL-or-Centos I've completed everything up to the step where it asks to test the oracle driver isntallation. When I run dltest /usr/lib/oracle/11.2/clien...
James Kelly
1

votes
1

answer
35

Views

Tuleap Installation Error

I have installed Tuleap following the documentation on CentOS release 6.10 (Final). (2.6.32-754.3.5.e16.x86_64 ) On a VM through VMware. I gave the domain name 192.168.30.222. I am unable to reach it through the browser. Timed out. I am able to ping. Ports 80, 443, 22 are open. I am able to SSH int...
Sada
1

votes
0

answer
32

Views

Centos 6 - join AD domain, authenticate using another trusted domain

I have 2 domains, lets call them domain X.dom and Y.dom, and they have trust between them. On domain X.dom I have a security group, inside of which has members of Y.dom using this group. I successfully managed to connect to Centos 7 machines (joined to X.dom). So an AD user on Y.dom can connect to...
vaxx0r

View additional questions