Tag Info

Hot answers tagged

8

CentOS 6 comes with Postfix as default mail server and you can see it running (tcp :25 1186/master). Try to stop Postfix (service postfix stop) and then start sendmail (service sendmail start).


4

You have to use the template-module for this. Here's an example task: - name: Create motd template: src="motd.j2" dest="/etc/motd" The file motd.j2 (placed in the templates-subdirectory of your role) could then look like this: Welcome to host {{ansible_hostname}}! {{ansible_hostname}} will then be replaced with the hostname. Be sure to "gather ...


4

You installed the EPEL repository for EL7, but you are actually running EL6. Remove the epel-release package, i.e., sudo yum search epel && sudo yum remove epel-release and replace it with the correct package. According to this documentation Redis could be installed on CentOS6 by issuing the following commands: // --- Compiling --- $ wget ...


3

The warning is telling you that sda/b/c/d where part of another RAID array which left some metadata on the disks themselves. They where probably used in another RAID system (maybe only for testing). The new server very intelligently skip these disks, as they may contain valuable data. If you are sure that these disks do NOT contain valuable data, you can ...


3

When sending through the console or a mail client like Outlook or Mac's Mail it processes fully and has all three pass. This behavior was expected because you place this configuration in main.cf smtpd_milters = inet:localhost:8891 When sending through Zend Framework 1.12's SendMail function it fails (php). This behavior was expected too because ...


2

Try this; ansible example -a "id" --sudo -K This runs the command using ansible's built in sudo function which will utilize the -K (ask-sudo-pass) flag. If you try to run sudo within the command, it will not use the -K (--ask-sudo-pass) password.


2

Probable cause is the postscript in logrotate script. Thats the script that runs after the logrotation. File should be called /etc/logrotate.d/apache2 or /etc/logrotate.d/httpd (depending od distro) and look something like: /var/log/httpd/*log { missingok notifempty sharedscripts postrotate /sbin/service httpd reload > /dev/null ...


2

If indeed you are running Windows XP, this will not work. Need Vista or higher. I would also double-check that SNI is enabled, from the same link you mentioned. nginx -V The first configuration you posted should usually work if you use a SNI compatible browser.


1

You don't need to do any of this. As HBruijn mentioned in a comment, the $HOME/.my.cnf file already contains your credentials and MySQL's command line tools will use them automatically without you needing to do anything special. So just do: mysqldump $db | ssh root@$destination_server "cat > /backup/mysql/$db.sql"


1

If you are hosting two subdomains of the same domain, you have no problem if you get a multidomain or wildcard certificate. Otherwise the domain not listed on the certificate will give a warning that the name doesn't match. When configuring the domains, you would use the same certificate for both domains. Some clients and servers support negotiating the ...


1

I didn't find the source of the problem, but here is a workaround. In /etc/init.d/nginx, locate the stop() function and add the following line before return $retval: ipcs -s | grep "4294967295" | awk ' { print $2 } ' | xargs -I % ipcrm -s % With this change, sudo service nginx restart should now clear the old semaphore arrays. What about not being ...


1

You can extract a single file from the rpm without reinstall of httpd First get the path within the rpm rpm -qlp httpd-...rpm | grep httpd.conf after that you can get the single file with rpm2cpio httpd-...rpm | cpio -ivd ./etc/httpd/httpd.conf


1

You can get the original file back with a simple reinstall of the httpd package - yum reinstall httpd. This will not recover any modifications you've made to the file, however. You'll have to redo those modifications manually.


1

i would recommend you to use acls here: setfacl -R -m user:apache:rwx directory setfacl -R -d -m user:apache:rwx directory setfacl -R -m user:developer:rwx directory setfacl -R -d -m user:developer:rwx directory


1

Or find the numbers as explained in this article To find a user's UID or GID in Unix, use the id command. To find a specific user's UID, at the Unix prompt, enter: id -u username Replace username with the appropriate user's username. To find a user's GID, at the Unix prompt, enter: id -g username If you wish to find out all the groups a user belongs ...



Only top voted, non community-wiki answers of a minimum length are eligible