How to , and other stuff about linux, photo, php … Another blog just like others on internet

June 13, 2017

How to fix upstream timed out (110: Connection timed out) error in Nginx

Filed under: Linux — Tags: , , , — admin @ 1:36 pm

In order to fix that you need to add

proxy_read_timeout 300;

 

April 25, 2017

how to disable gzip for specific file

Filed under: Linux,Php — Tags: , , , , , , — admin @ 1:33 pm

The short answer is

RewriteRule ^dashboard/index - [E=no-gzip:1]
SetEnvIf REDIRECT_no-gzip 1 no-gzip

Some explination of that solution

The – means NOOP, E means set variable, 1 is the value. After redirects, the variables are renamed and prepended with REDIRECT_.

This work for php FPM

If you have a mod dso you can use also this

apache_setenv('no-gzip', '1');

January 4, 2017

Error: Cannot retrieve metalink for repository: epel. Please verify its path and try again

Filed under: Linux — Tags: , , , — admin @ 6:01 pm

Today I wanted to upgrade a php webserver with php5.6 . However the epel didn’t work .
After a yum clean all got this title error

Error: Cannot retrieve metalink for repository: epel. Please verify its path and try again

To fix this I needed to upgrade the ceritiface without epel .

yum upgrade ca-certificates –disablerepo=epel
After this all works.

December 7, 2016

There was a problem removing the alias. Park::unpark( ) failed: You cannot unpark a user’s main domain name.

Filed under: Linux — Tags: , , — admin @ 11:37 am

Today I have another cpanel problem. Someone manage to add a domain as parking one and after this manage to create a main account also . Because the parking domain was first on httpd.conf vhosts when I was trying to access domain actually vhost was on parked one.  When I try to delete the parking from account the title of this subject was the error of the cpanel.

“There was a problem removing the alias. Park::unpark( ) failed: You cannot unpark a user’s main domain name.”

So how to fix this ?

Well first of all you will have a dns1 ( line on /var/cpanel/users/useraccount )

I delete this line but wasn’t enough .

After some seach I find out that is also located into

/var/cpanel/userdata/username/

There are some files that they say not to modify them , but comparing to files one with parked and one without I figure it out what is the syntax. So I made a backup of original files and modify those from there  and delete parked domain .

After this you must run

/scripts/updateuserdomains

After I rebuild httpd.conf the domain was ok .

/scripts/rebuildhttpdconf

Hope this article will give some hint for someone else also .

The link that help me was from here

https://forums.cpanel.net/threads/error-from-domain-wrapper-subdomain-does-not-exist-for-user-solution.221782/

Also it appear this will influence /etc/userdatadomains

May 23, 2016

qmail with plesk

Filed under: Linux — Tags: , , , , — admin @ 2:47 pm

Some short commands

List out all messages currently in queue by running:
/var/qmail/bin/qmail-qread
Count the number of messages in the queue currently by running:
/var/qmail/bin/qmail-qstat

Delete all mails from queue

/usr/local/psa/admin/sbin/mailqueuemng -D

 

« Newer PostsOlder Posts »

Powered by WordPress