I note this for me . I need to see a log directory on the account over scp. So one soulution for me was to mount with bind the log directory.
mount --bind /some/where /mnt/readonly
mount -o remount,ro,bind /mnt/readonly
August 29, 2019
Bind mount
August 19, 2019
Docker COPY failed: stat
Today I am trying to use docker and saw this problem
COPY failed: stat /var/lib/docker/tmp/docker-builder749895154/docker-directory/apache/project.conf: no such file or directory
The fix for this problem is to check your .gitignore file , and add a exception for that directory
!docker-directory/
January 16, 2019
How to deny execution of php on some directory
Just add this on your .htaccess in that directory and php will not be executed.
# Kill PHP Execution
<Files ~ "\.ph(?:p[345]?|t|tml)$">
deny from all
</Files>
January 15, 2019
MySQL database exists on the server, but does not show up in the cPanel
I have created a database manually on server with user_dbname however won’t show up on cpanel / phpmyadmin .
The solution was to run this
/usr/local/cpanel/bin/dbmaptool cpanelusername --type mysql --dbs 'nameofdatabase' --dbusers 'dbusername'
November 22, 2018
Letsencrypt UnicodeDecodeError: ‘utf-8’ codec can’t decode byte 0xfc in positio
Well today I was trying to issue a ssl on a old server and find this
File “/opt/eff.org/certbot/venv/lib64/python3.4/site-packages/augeas.py”, line 147, in get
return dec(value.value)
File “/opt/eff.org/certbot/venv/lib64/python3.4/site-packages/augeas.py”, line 65, in dec
return st.decode(AUGENC)
UnicodeDecodeError: ‘utf-8’ codec can’t decode byte 0xfc in position 15: invalid start byte
Please see the logfiles in /var/log/letsencrypt for more details.
A short workaround was to modify the
“/opt/eff.org/certbot/venv/lib64/python3.4/site-packages/augeas.py”
the 65 line was something
return st.encode(AUGENC)
with
return st.decode(AUGENC, ‘ignore’)
It worked to get a new certificate .