Monday, December 9, 2019
Tuesday, December 3, 2019
Show hidden files and sub directories in root directory
By default the root directory will not show you the directories like /usr, /bin, /etc etc. To make them visible you need to show the hidden files.
Open terminal and type the following command and hit return.
defaults write com.apple.finder AppleShowAllFiles -bool TRUE;killall Finder
Reference: https://themacbeginner.com/view-content-root-directory-mac-os-x/
Tuesday, July 9, 2019
Wednesday, March 27, 2019
Saturday, December 29, 2018
Mysql On delete cascade reference information
Tips to find tables affected by MySQL ON DELETE CASCADE action
Sometimes, it is useful to know which table is affected by the MySQL ON DELETE CASCADE referential action when you delete data from a table. You can query this data from the referential_constraints in the information_schema database as follows:
1 2 3 4 5 6 7 8 9 10 | USE information_schema; SELECT table_name FROM referential_constraints WHERE constraint_schema = 'database_name' AND referenced_table_name = 'parent_table' AND delete_rule = 'CASCADE' |
Thursday, November 29, 2018
mariadb @ mysql change datadir to /home/ directory
Wednesday, June 27, 2018
Troubleshooting “Permission denied” when attempting to connect to Redis from PHP script
Problem solved, type:
/usr/sbin/setsebool httpd_can_network_connect=1By default, SELinux does not allow Apache to make socket connections. More information can be found here.
source: https://stackoverflow.com/questions/8765848/troubleshooting-permission-denied-when-attempting-to-connect-to-redis-from-phpTuesday, June 26, 2018
PHP / CentOS 7Connect DATABASE Error TYPE: 2002: Permission denied
I had the same issue after getting a new CentOS 7 box, running SELinux. I could connect to my remote MySQL DB server from the command line, but Drupal (and test PHP scripts) could not.
The issue turned out to be the SELinux security policies.
By default, the policy httpd_can_network_connect_db is disabled (meaning that your web server cannot contact a remote DB.)
Check this via:
getsebool -a | grep httpd
If httpd_can_network_connect_db is Off, enable it via:
setsebool -P httpd_can_network_connect_db 1(The -P flag makes the change permanent, so the setting survives a reboot.)
Nginx php html permission denied
After searching , I found it.It's all deals with SELINUX which is a security feature. when using ls -Z
drwxrwxrwx. ec2-user root system_u:object_r:httpd_sys_content_t:s0 wwwchange this to
drwxrwxrwx. ec2-user root system_u:object_r:httpd_sys_rw_content_t:s0 wwwusing cmd
chcon -R -t httpd_sys_rw_content_t /var/www Tuesday, July 18, 2017
Thursday, July 13, 2017
Sublime Text Licence
-----Begin----------
TwitterInc
200 User License
EA7E-890007
1D77F72E 390CDD93 4DCBA022 FAF60790
61AA12C0 A37081C5 D0316412 4584D136
94D7F7D4 95BC8C1C 527DA828 560BB037
D1EDDD8C AE7B379F 50C9D69D B35179EF
2FE898C4 8E4277A8 555CE714 E1FB0E43
D5D52613 C3D12E98 BC49967F 7652EED2
9D2D2E61 67610860 6D338B72 5CF95C69
E36B85CC 84991F19 7575D828 470A92AB
----------End---------
Proxmox installation display out of range
Reference: https://forum.proxmox.com/threads/proxmox-ve-screen-out-of-range.131297/
-
Original Source :: http://en.irfanview-forum.de/viewtopic.php?t=490 /one - force 'Only one instance' /fs - force Full Screen displa...
-
Original Source:: http://www.zytrax.com/tech/pc/serial.html Tech Info - USB and Firewire USB and FireWire (IEEE 1394a and b) represent the...
