I was cleaning up my office desk this morning… All of a sudden those old papers were there! Well, they reminded me my old days- from Dhaka to Jessore and we three Rumi, Bachchu and Tapos!!
Rumi
SSC Result 2008 dillema!!!
educationboard.gov.bd
What the heck have they done!!! All the source codes been downloaded while checking SSC result from their web site!!! Well, the board tried to do everything perfectly- since in early times they faced load issues.
They thought by mirror loading, it’ll be solved and a mammoth task by putting the applicaiton in multiple servers will dilute the traffic!!! Bauani did have a good writing on his Blog-
http://www.bauani.org/thinkings/2008/06/ssc-result-of-2008-technical-analysis.htmlConfig file!!!
Day before yesterday, trying to check my younger bro’s result- all of a sudden all the source codes started to fall down to my machine!!!
don’t believe this of wht I’m saying??? Check the attachments all by yourself!
‘SHOTTI CELUCAS- KI BICHITRO EI DESH’
Linux CHMOD Change user & group ownership
Learn how to change the owner and group ownership of files and directories with the chown
and chgrp
commands. Caution: you need to do this whiled logged in as 'root' user. In order to set the ownership of a directory and all the files in that directory, you'll need the -R option: $ chown -R username somedir Here, R stands for recursive because this command will recursively change the ownership of directories and their contents. After issuing this example command, the user username will be the owner of the directory somedir, as well as every file in that directory. Tell what happens: $ chown -v username somefile changed ownership of 'somefile' to username Here, v stands for verbose. If you use the -v option, chown will list what it did (or didn't do) to the file. The verbose mode is especially useful if you change the ownership of several files at once. For example, this could happen when you do it recursively: $ chown -Rv username somedir changed ownership of 'somedir/' to username changed ownership of 'somedir/boringfile' to username changed ownership of 'somedir/somefile' to username The options of using chgrp are the same as using chown. So, for example, the -R and -v options will work with it just like they worked with chown: $ chgrp -Rv usergroup somedir changed group of 'somedir/' to usergroup changed group of 'somedir/boringfile' to usergroup changed group of 'somedir/somefile' to usergroup chown nicely reports to you what it did to each file.
Postfix Setup
In webmin >Severs > Postfix mail server > Edit config file, change this small line-
inet_interfaces = all
#inet_interfaces = $myhostname
#inet_interfaces = $myhostname, localhost
#inet_interfaces = localhost
The significance is- if you don’t uncomment inet_interfaces =all, your server is completely isolated from the network. It won’t listen other than the server or localhost. In order to check if the settings are ok- you need to connect to your server from a networks pc. Open ‘cmd’ in your pc and type-
telnet X.X.X.X 25
If something returns- then its ok, else if it’s Unable to connect, you need to make the above changes I’ve mentioned.
Postfix on most systems is very nearly ready for use as the mail server for the Virtual Servers module. The only thing missing is the configuration for a virtual mapping database and, if using quotas, moving the spool directory to the same partition that user data lives on. The first can be added easily using Webmin. Browse to Postfix:Virtual Domains. Enter a type of database, and a filename for the virtual map database into the Domain mapping lookup tables field. Generally, this will be something along the lines of hash:/etc/postfix/virtual. In this example the type is a dbm hash, and the filename is virtual in the /etc/postfix directory. Save and apply your change.
Next, you’ll need to move your mail spool to the /home partition. Browse to the Postfix:Local Delivery module. Edit the Spool directory option and enter /home/mail. Save and Apply your changes.
It is useful to choose mail as the subdirectory here, because there will already exist a mail user on most systems and so there is no way to accidentally create a new user that would end up getting your mail spool as their home directory! If you don’t use Red Hat Linux, you should probably first check to be sure there is a user named mail on your system (I believe most UNIX systems do have a user of this name).
In order for POP or IMAP to work, those servers will need to know how to find the mail spool. The easiest thing to do for this is probably to create a symbolic link from /var/spool/mail to /home/mail. The command to do this:
# ln -s /home/mail /var/spool/mail
That’s it!
A small tweek in MySQL Data path in Linux using webmin
By default all database and data are stored in /var/lib/mysql
But whenever, you’re planning to setup a virtual hosted server, it is wise to set up and configure this db to be set up in some different bigger disk space. Like I use to place this data path to /home/mysql
How to change this using webmin
- From your webmin Servers > MySQL Database Server > MySQL Server Configuration section look for-
- Database files directory = /var/lib/mysql
- Now change this to-
Database files directory = /home/mysql - A small reminder- don’t forget to create “mysql” directory in /home location!
- It’s done!
You have changed the data storage path!
Precaution:
It is recommended to modify or update this mysql data path on a fresh installation- without any cpanel or virtualmin server is hosted.
And also don’t you forget to restart the MySQL service after this changes are made! Happy data organizing!!! 😛
Setting up PHPMyAdmin to Usermin Module
Webmin and Usermin are simply great- but it lacks the most widely used PhpMyadmin support! However, after googling for a while I got a solution for this.
First need to download and setup the usermin module- here’s the URL for wbm package-
http://awstats.sourceforge.net/files/phpmyadmin-1.0.wbm
How to install PHPMyAdmin Module ?
- Go to Usermin > usermin Module
- insert the above URL to the text box- “From ftp or http URL”
- Click “Install module from file”. The module will be installed
- Then go Usermin > Usermin module configuration section
- Select “Mysql Database (PHPMyAdmin)”
- PHPMyAdmin URL to open- enter your full server name (default fqdn name such as http://ns4.geospacehosting.com/phpadmin)
- It’s done!
Next to configure Apache
- Go to Webmin > Servers > Apache Webserver
- Click “Default Server”
- Click “Alias and Redirects”
- In “Document Directory Aliases” section- enter From “/phpadmin” To “/etc/phpadmin”. This actually means- http://ns4.geospacehosting.com/phpadmin or any virtual hosted domain such as https://tweenpath.net/phpadmin (here tweenpath.net is the vhosted server)
- Click “Apply Changes”
- It’s done!
Most important but the core PHPMyAdmin upload and configuration
- You need to upload the PHPMyAdmin utility software package to “/etc/phpadmin”, i.e. to the target hosting server
- Open “config.inc.php” file with a text editor like emacs
- find [‘auth_type’] and enter “http” as authentication
- It’s done!
First Entry from my MS Word
This is quite new for me… Writing the blog entry right inside from everybody’s favorite MS Word. This word 2007 is taking significantly long time to be user friendly. In look and feel- it doesn’t match to XP OS, rather when I switched to Vista- it matches J
Anyway, it’s been after 5 days- I’m feeling better. Had a seasonal ‘flue’ attack and deferred all my tasks. From tomorrow- a new day will begin with shit loads of work! Need to finalize documenting on the Teletalk CP and a Tk. 50K deposits!
Also have to sort of DESA- ilias bhai is there always to push us for moving ahead K
Let’s face the day!
User Disk Quota in Linux using Webmin- essentials for Hosting Web Hosting Platform
Quotas on Linux are tricky, not because they are difficult to setup, but because they are so poorly documented, and what documentation exists is more often than not incorrect to the point of not working. If you are using a relatively recent Linux version, the following instructions should work without difficulty.
Prior to Linux Installation:
Yes, a major & key point in Linux Partition is /home directory.
VHost is widely setup on almost all control panel mechanism on /home location, since
– Users & Groups
– FTP server
– User shell
– Apache and all that other directives are constructed on this /home partition
So, home should be created as a Logical Volume on a Linux native File system (ext3). In my later section, I’d assume there is already a /home partition (and it’d also wise to have this partition as much disk space as you want to give away to your clients. Because, even mails and even mysql data will also be stored in this volume.
Step-1
System > Disk & Network Filesystems
On the System > Disk & Network Filesystem you’ll get something like this-
On the “Mounted As” column select “/home” to go to next screen which is similar as below-
Down below to “ext2/ext3 specific options section” look for the options “Use Quotas?” and select “User and Group” from the drop down menu.
Click “SAVE” and you’re almost done!
Step-2
System > Disk Quotas
Once you completed the above step, you should find something similar like-
On “Action” column, click “Enable Quotas”
You’re done! And that’s it! I’m sorry nothing more to do.
Are Quotas Working?
To test to be sure your quotas are actually enabled, you can use the “repquota /home” utility to see what the current quota usage looks like. It should looke something like this: