Add it to your .php file to prevent any file with that extension to be executed.

nginx.conf of your server

location ~ (\.php$|myadmin) {
return 403;
}

I hope it help someone.


If bash shell is not working, try sh.

$ docker exec -it 4d3232519433 bash

OCI runtime exec failed: exec failed: container_linux.go:349: starting container process caused “exec: \”bash\”: executable file not found in $PATH”: unknown

So you should try:

$ docker exec -it 4d3232519433 sh

/application/home #

I hope it help you!


I have been trying to access my other domains through docker images but I have no success because they have different networks, after some research I solved it in a easy way:

First I discover my "nginx/apache" internal IP with:

docker inspect -f \
'{{range .NetworkSettings.Networks}}{{.IPAddress}}{{end}}' ${YOUR_DOCKER_WEBSERVER}

Just adding that piece "extra_hosts" inside my docker-composer.yml

php-fpm-frontend:
build: phpdocker/php-fpm
container_name: php-fpm-frontend
working_dir: /application/frontend/
extra_hosts:
- "admin.dev:172.27.0.5"
volumes:
- .:/application/
- ./phpdocker/php-fpm/php-ini-overrides.ini:/etc/php/7.4/fpm/conf.d/99-overrides.ini

and inside the backend the reversal:

php-fpm-backend:
build: phpdocker/php-fpm
container_name: php-fpm-backend
working_dir: /application/backend/
extra_hosts:
- "myapp.dev:172.27.0.5"

volumes:
- .:/application/
- ./phpdocker/php-fpm/php-ini-overrides.ini:/etc/php/7.4/fpm/conf.d/99-overrides.ini

after that, just rebuild the containers and Voilà!

I have been able to access the domains with "CURL" #php


If you want to download a file using wget from a server that has an invalid SSL certificate (expired, not from a trusted issuer etc) then you can use the flag to make wget ignore such errors:

--no-check-certificate

It’s worth noting that you shouldn’t blindly ignore certificate errors. If you’re downloading from what is normally a trusted source and have no reason to expect to be presented with an invalid cert, then further investigation is due.


His phone number: +60 13 883–0009 [Alzhariff Alvee]

That guy/girl has contracted me to develop https://swizzy.io and https://teamclick.io, after my job they didn't pay me and blocked me in all services Telegram/Whatsapp/Email.

Emails used by this guy:

aisyah.wong@gmail.com

coreit51@gmail.com

support@escrow.com

info@shakhawat.com

jstrlomboy@gmail.com

kaptchasoftwares@gmail.com

support@teamclick.io

https://volsargroup.com/ emails @volsargroup.com

I receive contact…


I've used Letsencrypt to generate my self-signed ssl certs but when I was trying to access my sites at browser I was receiving an error:

ERR_SSL_OBSOLETE_VERSION

Researching I found the problem, now the browsers were not supporting anymore the TLSv1/TLSv1.1/SSLv3, so we should update our sites (in my case, /etc/nginx/sites-available) with:

ssl_protocols TLSv1.2 TLSv1.3;

After that you should just restart the NGINX service and the sites start to be accessible again.

sudo systemctl reload nginx

I hope this post help someone else.


Please follow these steps:

  • Check if the URL's are directly accessible from browser as HTTP/HTTPS verification

IF yes:

  • You must to add a query string at your files, just to prevent the problem to be from google cache. (It occurs sometimes when you sent test emails but the images has not been uploaded yet)
  • The last one(that was my case), do not use .SVG, use .PNG/.JPG/.GIF the google content cache appears to have problem with .SVG files.

I hope it helps someone else.


Problem:

Phone number stored in database doesn’t have a proper format.

Example: +977 9841823283992, (61) — (4) — 3432432, 81 2 3882 3232

Now, if you’re trying to do a search for phone numbers, just using

SELECT * FROM table WHERE phone LIKE '%some_number%'

This won’t be able to find…


O Linux utiliza o arquivo /etc/localtime para saber qual zona utilizar. Se seu arquivo for um link simbólico para /usr/share/zoneinfo/America/Santiago já está tudo certo.

Caso não seja um link, basta copiar o que você quer usar no lugar do atual.

Como root, faça:

cp /etc/localtime /etc/localtime.backup
cp /usr/share/zoneinfo/America/Santiago /etc/localtime

Pronto! Basta conferir utilizando o comando date:

date
Tue Dec 10 10:40:54 -03 2019

Caso queira usar o Horário de verão só copiar a Zona Sao_Paulo.

ex:

cp /usr/share/zoneinfo/America/Sao_Paulo /etc/localtime


After installing SSL on Nginx server, it worked on browser, but when i try access using curl command, I get error

CURL error: 60 (SSL_CACERT)

This is fixed by adding ca-bundle to .crt file.

The cert file should be in following format:

YOUR_DOMAIN.crt
YOUR_DOMAIN.ca-bundle

This can be done with:

cat YOUR_DOMAIN.crt YOUR_DOMAIN.ca-bundle > YOUR_DOMAIN.ssl

Now use YOUR_DOMAIN.ssl as your ssl certificate in your nginx.conf

ssl on;
ssl_certificate /etc/ssl/YOUR_DOMAIN.ssl;
ssl_certificate_key /etc/ssl/YOUR_DOMAIN.key

Flávio H. Ferreira

FullStack PHP/JS Developer #soudev #father #curious http://www.zend.com/en/yellow-pages/ZEND019415

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store