Menu
  • HOME
  • TAGS

SMTP (port 25) Plesk 12 on CentOS 7 “None of the authentication methods supported by your server”

smtp,port,plesk,centos7,smtp-auth

Server doesn't provide auth, it may be because of "smtpd_tls_auth_only = yes" in /etc/postfix/main.cf. "smtpd_tls_auth_only = yes" forbid authentication on non-secure connection like port 25. You can just change it to "no", or try using secure port 465 in Android Mail Client. It's quite easy to check your SMTP server...

DF doesn't show swap partition

memory,centos7

Swap isn't a filesystem (like e.g. ext3) and thus isn't mounted in the normal sense. Use "swapon -s", it will confirm the numbers from the "free" output.

cabal: error while loading shared libraries: libHSzlib-0.5.4.1-ghc7.6.3.so

haskell,haskell-platform,centos7

Here's how I solved the problem: First, I installed ghc manually. wget https://www.haskell.org/ghc/dist/7.8.4/ghc-7.8.4-i386-unknown-linux-deb7.tar.xz tar xvf ghc-7.8.4-i386-unknown-linux-deb7.tar.xz cd ghc-7.8.4 sudo mkdir /usr/local/ghc-7.8.4 ./configure --prefix=/usr/local/ghc-7.8.4 NOTE: Even though the version I installed was made on a Debian 7 "wheezey" system and supposedly only requires libgmp.so.10, I got error messages about libgmp.so.3. I...

Bash Centos7 “which” command

bash,command,yum,which,centos7

To find a package in CentOS, use yum whatprovides: yum whatprovides *bin/which In this particular case, the package is called which, so yum install which should pull it in....

Why CentOS lost its network interface?

centos,centos7

(I work for the host in this case) There was an issue with the DHCP server that was causing some instances to lose their IP address on DHCP lease renewal. Specifically, the DHCP server would intermittently respond with a NAK, which would cause the server to lose it's IP address....

Cannot disable systemd service

linux,dbus,centos7,systemd

Try the systemd mask command rather than disable: systemctl mask <service_name> The disable command still allows the service to be started, for example, in response to another service requesting it as a dependency (even if optional), or manually. However mask disables the service completely. Also, I don't believe either mask...

EC2 root volume expansion for CentOS7

linux,amazon-web-services,amazon-ec2,centos,centos7

This is normal behaviour on the Amazon Linux AMI. From Amazon Linux AMI 2014.03 Release Notes: Cloud-Init 0.7.2 Cloud-Init has been updated to the 0.7 series, adding a number of useful features. One example is dracut-modules-growroot, which automatically resizes your root filesystem on boot. I note that CentOS 7 (x86_64)...

nginx isn't loading (include additional-hosts/*.conf;) wont change directory? centos7

wordpress,nginx,varnish,php-fpm,centos7

Before changes can affect you need to restart/reload your nginx, in CentOS it's done by running: /etc/init.d/nginx restart (If you are not root use sudo) You are requiring that all your included files will be suffixed with '.conf', please make sure your file has this extension. Last thing, you configured...

Centos 7 rsyslog not logging remote messages

rsyslog,centos7

It turns out that CentOS 7 (and I'm assuming RHEL 7) have a firewall other than iptables called firewalld. After disabling this firewall in my dev environment I was able to successfully syslog to 514. systemctl disable firewalld systemctl stop firewalld systemctl status firewalld Disabling the firewall is admittedly overkill,...

FTP tranfer is kept on hold

ftp,centos7,proftpd

these would point to a firewall issue: If the connection times out (rather than fails instantly) If a directory listing from the client also fails as a workaround you could try passive (PASV) FTP....

How do I add a kernel module not compiled in my current kernel in linux

linux,linux-kernel,centos7

Firstly, I found kernel modules "ceph" and "rbd" is configured as "Y" or "M" A kernel module is configured as either "Y" or "M". If you grep for the module under /boot/config it would be marked either of those. If marked "Y" then the module is already built into the...

pg gem install fails, cannot find libpq-fe.h header

centos,capistrano,bundler,pg,centos7

The postgres binaries are not in the path. Symlink them in to a directory in your path and you should be good: ln -s /usr/pgsql-9.4/bin/p* /usr/local/bin. Did you build postgres or install it from yum?...

CHMOD 777 on Directories for Database to be Able to Write (Help Me Understand)

mysql,wordpress,file-permissions,user-permissions,centos7

chown apache:apache wp-content .... did the trick. A good way to see the user is to set file permission to 777 in uploads and all directories with aka recursively. Check the owner of the uploaded file and voila, chown (to that owner). Also the user is not set by...

Playframework 2.3 wrong apache proxy configuration on centos 7

apache,playframework,proxy,playframework-2.3,centos7

I solved this problem by removing preceding www from each ServerNames

how to allow remote access of mysql and test the connection (Centos 7)

php,mysql,centos7

This is due to the firewall problem. I have tick the service mysql in the public zone in firewall setting. However, I don't know if this is a "safe" practice. Thanks.

Unable to launch a website using KestrelHttpServer (Error : Object reference not set to an instance of an object)

mono,asp.net-5,centos7

Take a look at http://olivierlefebvre.tumblr.com/post/101523386694/asp-vnext-alpa4-on-ubuntu I fixed like that. Step Used git clone https://github.com/joyent/libuv.git cd libuv sh autogen.sh ./configure make make check sudo make install Final by adding a symlink to the lib ln /usr/local/lib/libuv.so -sf ~/.kpm/packages/Microsoft.AspNet.Server.Kestrel/1.0.0-alpha4/native/darwin/universal/libuv.dylib ...

CentOS, Node.js, init.d, ENOENT, Can't open or write to log files on system reboot when app started automatically

node.js,init.d,centos7

Init.d script starts the Node script from the node executable's path. You need to specify the script's directory by __dirname to make the paths absolute. logging: { debugToFile: true, debug: path.join(__dirname, 'logs/mediaServerStatus-debug.log'), info: path.join(__dirname, 'logs/mediaServerStatus-info.log'), warn: path.join(__dirname, 'logs/mediaServerStatus-warn.log'), error: path.join(__dirname, 'logs/mediaServerStatus-error.log'), } Be sure to var path = require('path'); before...

Centos 7 and systemd: CPU Quota?

centos,centos7,systemd,cgroups,resource-scheduling

The systemd shipping with RHEL/Centos 7 is based on version 208. That CPUQuota support doesn't appear to be included until 213. You should be able experiment by running the process in the slice/scope you want and then directly modifying the cpu.cfs_{quota,period}_us ratio under /sys/fs/cgroup/cpu/... I expect whatever you set there...

Why is SED echoing rather than editing: sed '/^;text1/!b;:a;n;//ba;i\text2' [duplicate]

string,bash,sed,centos,centos7

Etan Reisner: You aren't using the -i flag to tell sed to modify in place.

sudo apachectl restart Job for httpd.service failed. See 'systemctl status httpd.service' and 'journalctl -xn' for details [closed]

linux,apache,httpd.conf,centos7

SOLVED: apparently I put my file structure in the wrong section so I was essentially referencing something that wasn't there. I moved the file structure to the root directory and everything works.

Installing GNOME Desktop on Centos 7 minimal : Docker image

docker,gnome,centos7

try echo $DISPLAY to see the installed GUI visit http://askubuntu.com/questions/432610/how-to-know-which-processes-have-the-display-variable-set

Php has its own /tmp in /tmp/systemd-private-nABCDE/tmp when accessed through nginx

php,nginx,centos7,tmp

Because systemd is configured to give nginx a private /tmp. If you must use the system /tmp instead for some reason then you will need to modify the .service file to read "PrivateTmp=no".

Node Version Manager - I have to specify version on each boot?

linux,node.js,centos7,nvm

There's an oft-overlooked paragraph at the top of the Usage section of the README (relevant emphasis mine): You can create an .nvmrc file containing version number in the project root directory (or any parent directory). nvm use, nvm install, nvm exec, nvm run, and nvm which will all respect an...

Cloud Init Fails to Install Packages on CentOS 7 in EC2

amazon-ec2,centos7,cloud-init

Evidently there was a bug fixed with later versions of the image. If this is happening to you, it may be a legitimate bug in Cloud-Init or your servers implementation of it. A package upgrade may fix the problem, also an update to the image will fix it globally.

How to enable mod_rewrite on Apache 2.4?

php,wordpress,apache,mod-rewrite,centos7

i found the way to know if a module is loaded or not, here's to command to list the modules enabled: apachectl -M | sort It will list all enabled modules alphabetically. Wordpress has an .htaccess but default where it enables Rewrite_Mod for its use: # BEGIN WordPress <IfModule mod_rewrite.c>...

Apache/CentOS 7: /var/www/html/ owned by root but created files owned by apache - how do I resolve this?

php,apache,chown,centos7,chgrp

Check your /etc/httpd/conf/httpd.conf file and search for user and group [e.g. User apache Group apache]. Those are the owners by default. In your website there is no need too add write permissions for files and folders assigned to user:group, but you can set readable by owner and others in order...

Install Postgresql + Postgis on CentOS 7

postgresql,postgis,centos7

Postgres provide postgres 9.3 and postgis 2.1 for Centos 7. Link here. Hopes it helps....

How to analyze httpd (apache webserver) logs in CentOS 7

apache,logging,analyzer,centos7,nanohttpd

I think goaccess will fulfill your requirements.

FastCGI script can't find libfcgi.so.0 in Apache 2.4.6 and mod_fastcgi

c,apache,centos7,mod-fastcgi

I had similar issue with nginx, I fixed it by using rpath option. Not sure if it will help with Apache. Try building your binary like this: gcc test.c -Wl,-rpath /usr/local/lib -lfcgi -o test.fcg Make sure the library file libfcgi.so.0 is present at /usr/local/lib. If you don't have access to...

Graphicsmagick Image Comparison threshold value

gruntjs,graphicsmagick,centos7

The docs state that You may wish to pass a custom tolerance threshold to increase or decrease the default level of 0.4. gm.compare('/path/to/image1.jpg', '/path/to/another.png', 1.2, function (err, isEqual) { ... }) You can also pass the tolerance in your options-object var options = { file: '/path/to/diff.png', tolerance: 1.2 } edit:...

VPS rbenv location directory is wrong when using Capistrano3

ruby-on-rails,rbenv,capistrano3,centos7

Your problem in this line. You should specify :user value for rbenv_type variable because you have installed rbenv to user directory.

recommended way to configure a centos-7 host with static network settings via ansible?

ansible,ansible-playbook,centos7,rhel7

Whoops -- this question belongs on serverfault not stackoverflow ... http://serverfault.com/questions/666579/recommended-way-to-configure-a-centos-7-network-interface-with-static-settings-v?noredirect=1#comment814300_666579...

CentOS memory availability

java,memory,centos7

It's more likely that you need to run your JVM with an increased maximum memory setting. The JVM will run with it's own limit on memory usage (subject to that available from the OS). e.g. $ java -Xmx2048m ... will run the JVM with a maximum memory setting of 2Gb....

File Permissions Using Dropzone.js

symfony-1.4,dropzone.js,centos7

... /** * Set file permissions after moving it to target folder */ chmod($targetFile, 0700); //rwx only for owner ... ...

nginx how to make apache like virtual host?

nginx,centos7

CentOS 7: Works Step 1: $ rpm -Uvh http://nginx.org/packages/centos/7/noarch/RPMS/nginx-release-centos-7-0.el7.ngx.noarch.rpm $ yum install nginx php php-mysql php-fpm mariadb-server mariadb $ systemctl start nginx.service $ systemctl enable nginx.service $ sudo systemctl start mariadb $ sudo mysql_secure_installation $ sudo systemctl enable mariadb.service $ sudo vi /etc/php.ini cgi.fix_pathinfo=0 $ sudo vi /etc/php-fpm.d/www.conf listen =...

What benefit do I get from JSVC over just using systemd?

java,tomcat,centos7,systemd,jsvc

In general, most of the functionality provided by jsvc is provided by systemd, with the exception of opening of privileged ports (see below). If possible, it is a very good idea to switch to using systemd functionality directly, since things become simpler and more efficient. Your unit file looks mostly...

How to configure gitlab to use existing postgres server

postgresql,nginx,gitlab,centos7

According to this doc, put this in /etc/gitlab/gitlab.rb : # Disable the built-in Postgres postgresql['enable'] = false # Fill in the values for database.yml gitlab_rails['db_adapter'] = 'postgresql' gitlab_rails['db_encoding'] = 'utf8' gitlab_rails['db_host'] = '127.0.0.1' gitlab_rails['db_port'] = '3306' gitlab_rails['db_username'] = 'foo' gitlab_rails['db_password'] = 'bar' And run this command to apply this values...

SELINUX blocking php-fpm and nginx working together?

linux,nginx,php-fpm,selinux,centos7

Figured it out, for anyone else with the same issue, 403 forbidden access and selinux security error use this command on your servers root restorecon -r /srv/www/domain.com Fixed it for me and now everything is running as it should. ...

How do I remove the Centos 7 Desktop (Hot Corner) top right effect?

linux,desktop,centos7,gnome-3,gnome-shell

Took a while but I found the culprit! It lives within /usr/share/gnome-shell/js/ui/layout.js Just look for the function below and comment out the code inside. Afterwards, type Alt+F2 and type restart. It's take a second or two and will only reset gnome. You might have to do a wireless re-login and...

How to stop Centos 7 Desktop returning to Login Screen after a successful login?

linux,login,centos,centos7,gnome-3

I ended up reinstalling the os. However, I ended up getting the same issue. It was a two part error. So adding anything to my /etc/environment file caused the system not to login. Also, after you install, you need to sudo /etc/passwd because the gnome-init-shell and gdm need to have...

OpenVAS commands getting Failed Authentication error

authentication,centos,centos7,openvas

Ok now I tried and found the solution. For every OpenVAS command we should provide the username and password. EX: openvas-cli -u xxxx -w xxxxxxx -g openvas-cli -u xxxx -w xxxxxxx -g ...

Segment Fault with rails runner (Rails 4.0.0 Ruby 2.2.2p95 CentOS7)

ruby-on-rails,c,ruby,ruby-on-rails-4,centos7

We finally found the source of the problem. We were using a gem called tiny_tds and as far as I can tell, this gem will not work with centOS 7. All issues resolved once it was removed and redeployed.

How to reboot CentOS 7 with Ansible?

centos,ansible,centos7

You're likely not doing anything truly wrong, it's just that /sbin/reboot is shutting down the server so quickly that the server is tearing down the SSH connection used by Ansible before Ansible itself can close it. As a result Ansible is reporting an error because it sees the SSH connection...

Failed to open stream on file_put_contents in PHP on CentOS 7

php,apache,centos,centos7

Ok, I found the issue: selinux Here's the solution: http://kb.sp.parallels.com/en/11142 In case the page goes down: Symptoms After you change the default directory to store website content (say, to "/home"), you are unable to access the content of subdomains and additional websites over the Web. Cause This problem occurs if...

Varnish (4.0.1) fail to access website often request timeout

apache,varnish,varnish-vcl,apache2.4,centos7

You need to allow traffic from the Internet to port 80. Edit the iptables config as follows: # sample configuration for iptables service # you can edit this manually or use system-config-firewall # please do not ask us to add additional ports/services to this default configuration *filter :INPUT ACCEPT [0:0]...

ElasticSearch Service - Centos 7 - How to view console

command-line,elasticsearch,centos,kibana,centos7

Once you have started elasticsearch on console, you can check whether elasticsearch is running or not by entering following url in browser: http://localhost:9200 By entering above url if you get a response such as: { "status" : 200, "name" : "Doppelganger", "cluster_name" : "elasticsearch", "version" : { "number" : "1.5.2",...

Apache 2.4 and php-fpm does not trigger apache http basic auth for php pages

apache,proxy,php-fpm,fcgi,centos7

After hours of research I understood that the reason that this occurs is because the ProxyPassMatch directive is the first directive to be processed, and this causes apache to ignore the other directives for the .php extensions. To be able to use other apache directives with php-fpm via the proxy_fcgi_module...

lxc-clone not working with overlayfs in centos 7

linux,overlay,lxc,centos7

It sounds as if they overlay filesystem is not available in your kernel. First, check if it is listed in /proc/filesystems: # grep overlay /proc/filesystems nodev overlay If it's not there, it may be available as a loadable kernel module. You can load it using modprobe: # modprobe overlay If...