New answers tagged

0

I would like add more details to above answer in order to start the scrips especially in centos there is no such alternative like update-rc.d in Debain , Easiest way is to change the scripts manually as described here and e.g. code from /etc/init.d/postfix #!/bin/bash # # postfix Postfix Mail Transfer Agent # # chkconfig: 2345 80 30 # ...


0

Take a look at this instructions: https://webtatic.com/packages/php56/


3

An alternative will be to change the line starting with # chkconfig: in the service init script directly. This is explained in the chkconfig(8) man page. Runlevel Files Each service which should be manageable by chkconfig needs two or more commented lines added to its init.d script. The first line tells chkconfig what runlevels the service ...


0

You can manually rename symlinks in your /etc/rcX.d directories to change boot order. UPD: Under RHEL / CentOS you use command called ntsysv or chkconfig.


3

This is not how you're supposed to use the product!! Please don't attempt to use VMware's VCSA as a general purpose OS. It's entirely missing the point of having a purpose built appliance for management.


2

The entry for sssd.conf from the sssd spec file is: %ghost %attr(0600,root,root) %config(noreplace) %{_sysconfdir}/sssd/sssd.conf Quoting from Maximum RPM about the %ghost directive: By adding this directive to the line containing a file, RPM will know about the ghosted file, but will not add it to the package. However it still needs to be in the ...


0

I had same issue on ubuntu 14.04 with php fpm and nginx apt-get install php5-mcrypt Create symlink to mods-avaliable ln -s /etc/php5/conf.d/mcrypt.ini /etc/php5/mods-available/mcrypt.ini if you get this message then just ignore it. it will worl ln: failed to create symbolic link ‘/etc/php5/mods-available/mcrypt.ini’: File exists Enable It. ...


2

Limits.conf and Root Using * in limits.conf only applies to all users except root. If you want to set limits on root, you have to specify root instead of (or in addition to) *. Example: root soft nproc 65535 root hard nproc 65535 root soft nofile 65535 root hard nofile 65535 Or you can change the limit in your script manually as mentioned in another ...


2

The limits you are changing affect only logged in users as they're implemented by PAM as part of the logging in process. They have no effect on processes started other ways, such as by systemd or init directly. If you want to change the limit of processes that are started by something other than a user logging in, you need to do it in that process itself. ...


1

Solution found. The problem was the drives were encrypted with an interactive keyphrase of about 512 characters long (copy/paste from a key file). For some reason, the new kernel module in CentOS 6 would not properly read encrypted keys of 512-characters when created by an older version. Only seems to affect differing versions of the kernel or cryptsetup, ...


1

That is how MySQL works. DBMS should guarantee so-called "integrity" (ACID-ity) of data so most of operations have lock an access to the specific table(s). Until operation will be completed no other operation should be started at any circumstances. All queries are queued in the line and performed one by one sequentially. Some DB-engines allow to lock not ...


0

I don't know why but it have happened because of command in ntpd-gq. This command updates your datatime from servers which you have written in ntp.conf and then stops. I can't figure out why ceph fails after this command but when I changed it to: ntpdate 0.ua.pool.ntp.org Ceph became work.


2

Try executing these commands: rpm -Uvh http://www.city-fan.org/ftp/contrib/yum-repo/city-fan.org-release-1-12.rhel6.noarch.rpm yum install libcurl And restart your Apache afterwards. service httpd restart Run phpinfo() and it will show new curl version.


-1

Download your existing PHP version repository from http://www.php.net/releases/ (This is no matter where you have to download & extract. You can either download to local machine. Just want to copy ext/pcntl to somewhere in the server) Extract downloaded folder (Example: /home/downloads/PHP_5.x.x/) cd /home/downloads/PHP_5.x.x/ext/pcntl phpize ...


0

Leave the swap at 6GB. If it worked before with 8GB+6GB it will also work with 16GB+6GB. More info here: http://askubuntu.com/questions/62073/how-to-decide-on-swap-size


2

You could increase the size of /dev/xvda1 by going into fdisk, deleting /dev/xvda2 partition which will then be unusable, then in fdisk remove partition /dev/xvda1(but remember starting and ending blocks of the disk), then create a new /dev/xvda1 on the excactly the same start block, but on a bigger/higher end block. After this you could grow your /dev/xvda1 ...


4

Your simpleset solution here is likely to be to move the website data and assets into /dev/xvda2, reconfigure your webserver DocumentRoot(s) to point to it, and restart your web services. If you have SELinux enables you will have to ensure that the files are correctly labeled (user_home_t) and set a boolean httpd_enable_homedirs.


0

Regarding where these tmpfs foldes come from: /dev/shm is a standard feature of some Linux distros. Here shm stands for "Shared Memory". It's a ramdisk that's created by default. It's got 0 GB used, indicating you aren't using it. /run/user/0 matches a pattern used by by systemd-based systems, which you appear to have. systemd allows you to specify memory ...


0

Your config can work for some times, but mostly it unworkable. Working config look like: NameVirtualHost *:80 <VirtualHost *:80> ServerName www.domain.com .... </VirtualHost> NameVirtualHost *:443 <VirtualHost *:443> ServerName www.domain.com .... <VirtualHost *:443> Or made separate file for ...


0

yumdownloader [options] package1 [package2...] http://linux.die.net/man/1/yumdownloader This seems to download the packages and their primary dependencies. What it does not do is download the dependencies of the dependencies. It Only downloads the top level dependencies of the package. repotrack [options] package1 [package2...] ...


0

Yes, you can shrink/move/grow an online root partition without any reboots (nor livecd, nor usbkey): consult this answer. It's very well written and easy to follow, although quite long and a little risky. This allows to bypass limitation of resize2fs not being able to shrink ext4 partitions. Of course, if you only want to grow your ext4 partition, you can ...


1

On the website of your VPS Provider, you will (likely) see which Internet speed and bandwidth you have got. If you have used all your bandwidth, your VPS might have been throttled. The VPS or the VPS Provider might be under a DDoS Attack, this can lower your speed or even block the connection. Or the VPS is very far away from your location, this can cause ...


0

When I ran into this, I had TCP Wrappers enabled and forgot to enable slapd in the hosts.allow file. Just add this entry to /etc/hosts.allow: slapd:ALL


1

Webdav is almost always very slow. Try transfering some files by regular http, ftp and/or scp and see if that is faster. If it is, its a software issue with whatever you use for webdav. Its also possible the network between you and speedtest.net is great, and between the server and speedtest.net is great, but the network path between you and the vps is ...


0

Compressed or Not Compressed Content-Length: 32844 matches the size of your jpeg and there is no header saying the file is compressed. I assume you also tested this from your workstation? How you verify Use curl or wget to pull the image to your computer and validate the size has not changed, assuming your connection is HTTPS and nothing else can ...


0

Do you try to run the 'lsb_release -a' on the host ? It is maybe missing.


1

On CentOS, you'll need to find a yum repository that holds the package, and then add it to the system using the Puppet yumrepo resource. class aptdater { if $::osfamily == 'RedHat' { # Only install the yum repo on RH-family systems yumrepo { 'blah': ... } # Override the package to require the yum repo to be deployed first ...


0

For RHEL7 in /etc/sysconfig/network-scripts/ifcfg-* you may have: ETHTOOL_OPTS="-K ${DEVICE} gso off gro off tso off" if more options then use like ETHTOOL_OPTS="-K ${DEVICE} gso off;-K ${DEVICE} gro off;-K ${DEVICE} tso off" you have to have naturally DEVICE defined in your ifcfg file. No rc.local nor extra ifup scripts needed. Easy to you in generic ...


2

just deliver your startup scripts (so the 'init' and the 'systemd' scripts) along with your other files - and not directly to the 'init.d' respectively 'systemd' folder. then detect in the post-install phase (e.g. via the "/etc/redhat-release") whether you are on EL6 or on EL7 and then copy the relevant startup script accordingly ...


0

What I find most interesting about this issue is that neither the proftpd nor vsftpd source code bases have the string "Contact admin". This, to me, suggests that the error message your FTP client is receiving is not, in fact, coming from the FTP server. A search on Google for that error string turned up a few different posts, all of which point toward the ...


1

Sometimes it is too complicated to clear this directory because of the memory limit on your server. The shell command 'find' uses a lot of memory and very often the server kills this command automatically. In my case, I had almost 2M files inside this directory and 'find' was not working for me. If you have the same problem, the best way is to delete files ...


-1

By default Linux VMs don't have any swap enabled... When you fire up a VM, a random "compute node" is chosen that has the capacity for the size of the VM that you chose. Compute Node, is just a highly modified machine with Hyper-V installed. Your OS disk; /dev/sda is not local to that server, and therefore not as fast as local storage. (and also subject ...


2

Some additional information for those who want to extend a little bit knowledge on selinux and to debug issues with selinux: https://www.nginx.com/blog/nginx-se-linux-changes-upgrading-rhel-6-6/ tl;dr Debug issues with SElinux permissions: set permissive mode ( informs about security breach in audit.log and performs actions ) check audit.log ( for ...


0

This sounds like you are running out of RAM on one NUMA node, and the system is thrashing trying to free up memory on that node. This can happen if you have a single process using large amounts of memory, which (by default) is allocated preferentially on the node the process is running on. See if this helps: sysctl -w vm.zone_reclaim_mode=0 For a ...


0

Unfortunately, if your backups were also on the disk that failed, you're out of luck. Generally, unlike a failing mechanical disk, a SSD failure generally means the controller is dead, rather than just certain blocks or areas. Looking at the dmesg or /var/log/messages output may tell you more, but it's not likely to be good news.


0

Unless you had already set up some auditing on the server, you can't get that information as CentOS does not provide any such information in a default installation. However, the ownership of the file and its' modification or inode change time may give you some clues as to when the intrusion occurred, and that may provide you with a starting point for ...


1

A concept of a default gateway presumes that in one FIB there can be only one default gateway at a time (yeah, I know this is a bit of simplification, but it's true for a given task). Since we are considering one application - *, you cannot use multiple FIBs. So, you need to set up a proper routing (static either dynamic) so different sip peers will be ...


0

Don't forget to find the line UsePAM yes and comment it: #UsePAM yes Without disabling this, your SSH server would crash on reloading/restarting. Since you do not need fancy functions of PAM, this is fine.


0

On Centos/RedHat 7 you are not supposed to write directly to the /var/run directory, but you got a subdirectory /var/run/nagios. Check that the lock_file option points there instead like this: lock_file=/var/run/nagios/nagios.pid


2

You can install php7 for C7 (and others) as a Software Collection (scl) This installs alongside the system provided php 5 and is entirely independent of it. You can find the php7 scl on the REMI repo. You may also be interested in this Q&A on SF.


1

I don't think that is the good way. It is very ornate to configuration and to program if you have to different PHP versions on one server. It's much easier if you have a separate server. Also why do you need both? PHP 5 app are pretty much compatible to PHP 7... if they use mysql_connect instead of mysqli


1

It's possible to set on the kernel command line with e.g. elevator=deadline. I don't know for sure, but I consider it very unlikely that the default changed between 573.3.1 and 573.8.1 of Red Hat's 2.6.32 kernel. You can inspect your kernel command line by reading /proc/cmdline.


0

you might also have to put a link in one of the /etc/rcX-folders (depending on your intended runlevel) and run sudo run update-rc.d SkriptnameWithinInitDWithoutPath defaults


0

I'll just put this here in case someone else needs it cause I literally just stumbled upon the answer now through trial and error, after an entire day of troubleshooting this issue. I read so many posts and blogs and none of them recommended adding the max_connections directive to my.cnf. After adding the following lines, all my issues cleared up and ...


0

Does it means that my logrotate will run daily, but the logs will only be rotated weekly ? Yes. weekly since when/what time ? Documentation weekly Log files are rotated if the current weekday is less than the weekday of the last rotation or if more than a week has passed since the last rotation. This is normally the same as rotating logs on ...


2

Mailman puts a configuration file at /etc/httpd/conf.d/mailman.conf which globally defines that alias: ScriptAlias /mailman/ /usr/lib/mailman/cgi-bin/ <Directory /usr/lib/mailman/cgi-bin/> AllowOverride None Options ExecCGI Order allow,deny Allow from all </Directory> If you don't want that alias on all subdomains, taking out ...


2

Google says cron would be best for this, but I don't want it to be recurring. Forget about PRTG for anything but monitoring and notifications. It's true - cron jobs are recurring. However, all you need to do is write a simple wrapper script that gets run by cron at the top of each hour - this script would: Check if your program is running. If it is, ...


0

Something outside your control is blocking port 81. Use Name Based virtual hosting and/or a reverse proxy on port 80 instead. Your firewall us blocking connections to port 81. You will need to INSERT a rule into your INPUT table to open the port. You should take a look at the documentation for iptables(1). I'm sure you'll find plenty of hep on SF and the ...


1

The fact that your are using Putty and private keys is not related to the fact that your Unix account has a password. If you don't know / don't remember your password, you will almost definitely need your sys admin to reset it for you.


5

I've managed this with the following which works well. Create /etc/cron.d/reboot with the contents below. Note - It's been a while, you should check syntax. @reboot root run-parts /etc/cron.reboot Create a folder /etc/cron.reboot From there it's a matter of dropping files in to the cron.reboot folder.



Top 50 recent answers are included