ABUSADAT.COM
Lets Share Our Experiences
Lets Share Our Experiences
Oct 27th
If you want to use the current addon domain as the account’s main domain, you can do the following:
- # /scripts/pkgacct cpanelaccount
Jul 25th
Follwoing steps will allow you to access phpmyadmin without login everytime-
- $cfg['Servers'][1]['auth_type'] = 'config';
- $cfg['Servers'][1]['host'] = 'localhost'; //edit if you have db in the other host
- $cfg['Servers'][1]['connect_type'] = 'tcp';
- $cfg['Servers'][1]['compress'] = false;
- $cfg['Servers'][1]['extension'] = 'mysql';
- $cfg['Servers'][1]['user'] = 'root'; //edit this line
- $cfg['Servers'][1]['password'] = 'yourpassword'; // edit this line
Jun 30th
One can protect downloading files within a folder very easily. Just following steps-
- <Files *>
- Deny from all
- </Files>
Thats it, your files in that folder are protected from downloading now
Jun 21st
Open a terminal then get into the target folder from which you want to delete .SVN folders. Then execute the following cammand
Source code
- rm -rf `find . -type d -name .svn`
Jun 16th
Create a file name .htaccess in the folder that you want to password protect as below-
Source code
- AuthName "Password Protect Directory"
- AuthType Basic
- AuthUserFile /home/username/protected.htpasswd
- <Limit GET POST PUT>
- Require valid-user
- </Limit>
Then execute following command from command-line-
Source code
- htpasswd -mc /home/username/protect.htpasswd your_desire_username
Then it will prompt for a password against that username your_desire_username.
Now if you try to access that folder More >
Jun 10th
[Following sequence doesn't show function's priority]
Jun 10th
[Following sequence doesn't shows functions priority]
Oct 23rd
Using .htaccess index.php can be removed. For that you need the following htaccess code segment-
Source code
- <IfModule mod_rewrite.c>
- RewriteEngine On
# here goes ci path after the main domian, for http://xyz.com/ci or http://localhost/ci (if ci is in the root domain then it needs just a single /)
Source codeMore >
- RewriteBase /ci/
- RewriteCond %{REQUEST_FILENAME} !-f
- RewriteCond %{REQUEST_FILENAME} !-d
- RewriteRule ^(.*)$ index.php/$1 [L]
- </IfModule>
Jul 30th
Installing for current/single user:
1. Copy fonts into the ‘fonts’ directory of your home directory (~/.fonts, a hidden directory)
Command-
sudo cp /your/somefont.ttf ~/.fonts/somefont.ttf
2. Run the following command to activate new fonts
sudo fc-cache -fv
Installing for All users:
1. Copy fonts into ‘/usr/share/fonts’ directory
Command-
sudo cp /your/somefont.ttf /usr/share/fonts/somefont.ttf
2. Run the following More >