Questions tagged [centos7]

CentOS is a Linux distribution standing for "Community ENTerprise Operating System" and is a rebuild of "Red Hat Enterprise Linux" (RHEL), belonging to the same company that distributes RHEL (Red Hat, Inc.). The "CentOS7" tag refers to versions 7.x-xxxx of CentOS, working only on 64-bit hardware. Maintenance updates for CentOS/RHEL 7 will stop on June 30, 2024, with full updates ceasing in winter of 2019.

2960 questions
23
votes
1 answer

php script can't access /tmp folder

I have no open_basedir, php can access /etc /usr /proc /home etc… but not /tmp. tmpfs is mount on /tmp (/tmp type tmpfs (rw)) That's also the reason I want to use the /tmp folder. My files are owned by http (user for nginx and php) and readable by…
eephyne
  • 781
  • 1
  • 5
  • 9
23
votes
1 answer

Confused about -DFOREGROUND with Apache

So I just installed Apache on a new CentOS 7 server, using Yum. I've installed Apache many times before, but never have I seen this: When I run ps aux now, it always shows /usr/sbin/httpd -DFOREGROUND Google tells me that means the process will run…
Cocorico
  • 333
  • 1
  • 2
  • 5
22
votes
4 answers

ZFS Datasets dissappear on reboot

I have installed ZFS(0.6.5) in my Centos 7 and I have also created a zpool, everything works fine apart from the fact that my datasets disappear on reboot. I have been trying to debug this issue with the help of various online resources and blogs…
Vishnu Nair
  • 323
  • 1
  • 2
  • 10
19
votes
3 answers

How do I update a system from CentOS 7 to CentOS 8?

Assuming that reinstalling from zero is not practical, how do I perform an update from CentOS 7 to CentOS 8? I tried to do a yum install http://mirror.bytemark.co.uk/centos/8/BaseOS/x86_64/os/Packages/centos-release-8.0-0.1905.0.9.el8.x86_64.rpm but…
sorin
  • 8,016
  • 24
  • 79
  • 103
19
votes
3 answers

php-fpm.sock failed (11: Resource temporarily unavailable) while connecting to upstream

I am stacked with following errors on my site when I test 200 hits per second. First I received 499 errors 2017-04-09 03:22:45 Error 162.158.79.219 499 GET / HTTP/1.1 0 nginx access 2017-04-09 03:22:45 Error 162.158.79.87 499 GET /…
Muhammad Hassaan
  • 409
  • 2
  • 8
  • 18
19
votes
2 answers

Systemd Environment and EnvironmentFile not working

I've built an application and a systemd unit for it. The systemd unit works fine, but as the dev and prod environments have diverged I've started moving config out to environment variables and I can't seem to get them to work in systemd. I've tried…
Keef Baker
  • 351
  • 1
  • 2
  • 8
18
votes
1 answer

Getting Squid and TPROXY with IPv6 working on CentOS 7

I'm having trouble getting TPROXY working with Squid and IPv6 on a CentOS 7 server. I was previously using a generic intercept setup with NAT, but it was limited to IPv4 only. I'm now expanding the setup to include IPv6 with TPROXY. I've been using…
James White
  • 674
  • 3
  • 18
  • 32
18
votes
5 answers

Cannot conect MySQL (error 2026) after upgrade to Ubuntu 20.04

I cannot connect to MySQL 5.7.27 running on CentOS 7 server after upgrade of my workstation to Ubuntu 20.04 LTS. I am connecting using command mysql -h -u -p and after entering the password I get error 2026: ERROR 2026…
yavor
  • 183
  • 1
  • 1
  • 6
17
votes
6 answers

systemd : how to get the running target

Command systemctl get-default returns user-defined.target. Then I use systemctl isolate multi-user.target to switch to multi-user.target. I can see that a bunch of services that shouldn't be running on user-defined.taret and should be running on…
iamauser
  • 349
  • 2
  • 3
  • 12
17
votes
4 answers

How to do a git pull/push using ansible

I am trying to do a git pull/push using ansible. I am running ansible on one server and want to automate or orchestrate a git pull/push on a remote host. Now since i didn't find a mmodule to do this on ansible doc website, i decided to go the script…
grant tailor
  • 505
  • 2
  • 6
  • 13
16
votes
4 answers

Low-end hardware RAID vs Software RAID

I want to build a low-end 6TB RAID 1 archive, on an old pc. MB: Intel d2500hn 64bit CPU: Intel Atom D2500 RAM: 4GB DDR3 533 MHz PSU: Chinese 500W NO GPU 1x Ethernet 1Gbps 2x SATA2 ports 1x PCI port 4x USB 2.0 I want to build a RAID1 archive on…
Igor Z.
  • 289
  • 2
  • 7
16
votes
3 answers

How can I permanently set ulimit -n 8192 in Centos 7?

I would like to permanently set the open file limit for all users in Centos 7, but there seems to be a lot of conflicting information out there on the googles.
jestro
  • 271
  • 1
  • 2
  • 7
15
votes
3 answers

How did installing this RPM create a file?

Running yum install https://extras.getpagespeed.com/redhat/7/noarch/RPMS/getpagespeed-extras-release-7-1.el7.gps.noarch.rpm creates /etc/cron.d/sysstat2 but RPM disavows the file: # rpm -ql…
Pascal
  • 493
  • 3
  • 11
15
votes
3 answers

safely upgrade glibc on CentOS 7

I've tried a python application on my CentOS machine and it gives me the following error: ImportError: /usr/lib64/libc.so.6: version `GLIBC_2.18' not found (required by /tmp/_MEI2BYIr4/libstdc++.so.6) I've been tempted to upgrade GLIBC, but after…
Paco el Cuqui
  • 199
  • 1
  • 1
  • 8
15
votes
1 answer

Disable SSL check rpm

When trying to run any rpm command I get the follow error. I am not sure why i am getting a curl error but i have tried many different options which have all failed. Running CentOS7 and behind a proxy [root@CentOS7]# rpm -Uvh…
Anthony Fornito
  • 9,546
  • 1
  • 34
  • 124