π»π³
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1) Create 2048bit key | |
openssl genrsa -out file_name.key 2048 | |
2) Create CSR | |
openssl req -new -key file_name.key -out file_name.csr |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
CREATE USER 'new_user'@'%' IDENTIFIED BY 'new_password'; | |
GRANT ALL PRIVILEGES ON your_database.* TO new_user@'%' IDENTIFIED BY 'new_password'; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<meta http-equiv=Content-Type content="text/html; charset=utf-8"> | |
<meta http-equiv="X-UA-Compatible" content="IE=EmulateIE8"> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1) Config check | |
apachectl -t | |
2) Restart apache | |
apachectl graceful | |
OR | |
apachectl -k graceful |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1) Check in /etc/vsftpd/vsftpd.conf | |
pam_service_name=??? | |
2) Check pam config in /etc/pam.d/??? | |
Eg: | |
auth required /usr/lib64/security/pam_userdb.so db=/etc/vsftpd/vsftpd_login | |
account required /usr/lib64/security/pam_userdb.so db=/etc/vsftpd/vsftpd_login | |
3) Check user config to set home directory at /etc/vsftpd/vsftpd.conf | |
user_config_dir=/etc/vsftpd/vsftpd_user_conf/ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# TN START GZIP COMPRESSION | |
<IfModule mod_gzip.c> | |
mod_gzip_on Yes | |
mod_gzip_dechunk Yes | |
mod_gzip_item_include file \.(html?|txt|css|js|php|pl)$ | |
mod_gzip_item_include handler ^cgi-script$ | |
mod_gzip_item_include mime ^text/.* | |
mod_gzip_item_include mime ^application/x-javascript.* | |
mod_gzip_item_exclude mime ^image/.* | |
mod_gzip_item_exclude rspheader ^Content-Encoding:.*gzip.* |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1. composer require reliese/laravel | |
2. Add the service provider to your config/app.php file | |
Reliese\Coders\CodersServiceProvider::class | |
3. Publish the config file with | |
php artisan vendor:publish --tag=reliese-models | |
4. Make sure your database is correctly configured in config/database.php and .env files. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# You can change httpd to apache, apache2, ... that match with your env | |
ps -ylC httpd | awk '{x += $8;y += 1} END {print "Apache Memory Usage (MB): "x/1024; print "Average Proccess Size (MB): "x/((y-1)*1024)}' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# You want to copy/replace a/sub_i/sub_j/x.html to b/.., c/.. etc. | |
# (your_current_dir) | |
# |___a | |
# | |____sub_i | |
# | |____sub_j | |
# | |____x.html | |
# |___b | |
# | |____sub_i | |
# | |____sub_j | |
# | |____x.html |