Monday, 10 September 2018

Bitbucket runing time out error and bitbucket is not open

Open terminal:

run---  nautilus /etc/hosts

open file Sublime text

127.0.0.1 localhost
127.0.1.1 rinku-HP-Notebook

# The following lines are desirable for IPv6 capable hosts
::1     ip6-localhost ip6-loopback
fe00::0 ip6-localnet
ff00::0 ip6-mcastprefix
ff02::1 ip6-allnodes

ff02::2 ip6-allrouters
104.192.143.2 bitbucket.org   ----- this line remove


then save file
Password: system password


https://askubuntu.com/questions/17062/how-to-open-a-directory-folder-and-a-url-through-terminal

Wednesday, 5 September 2018

uploading big image for inginx

Following link:

https://stackoverflow.com/questions/26717013/how-to-edit-nginx-conf-to-increase-file-size-upload

/etc/nginx/nginx.conf

Now that you are editing the file you need to add the line into the server block, like so;
server {
    client_max_body_size 500M;

    //other lines...
}
If you are hosting multiple sites add it to the http context like so;
http {
    client_max_body_size 500M;

    //other lines...
}
And also update the upload_max_filesize in your php.ini file so that you can upload files of the same size.