Development Blog by Professionals
Linux
How to overwrite existing files when use wget?
Feb 8th
How to overwrite existing files when use wget?
2 comments:
Delete / Remove a Directory Linux Command
Feb 8th
$ rmdir /tmp/docs
If directory is not empty you will get an error:
$ rmdir letters
Output:
rmdir: letters: Directory not empty
You can change directory to find out files:
$ cd letters
$ ls More >
Plesk changing the linux permissions
Feb 8th
Plesk uses PHP’s open_basedir setting to restrict PHP scripts to their domain’s httpdocs directory (and /tmp) for security. If you check the domain’s error_log you’ll see that the open_basedir restriction is in effect (or enable display_errors to see errors in your browser, but this is not recommended for production sites).
You can override a domain’s open_basedir setting if you want, for instance you can add domain2′s path2 directory to domain1′s open_basedir like this:
<Directory /var/www/vhosts/domain1/httpdocs> php_admin_value open_basedir "/var/www/vhosts/domain1/httpdocs:/tmp:/var/www/vhosts/domain2/httpdocs/path2" </Directory>
See Including Directives into Web Server Configuration File for instructions on adding custom Apache settings for a domain.
How To scp, ssh and rsync without prompting for password
Jan 15th
How To scp, ssh and rsync without prompting for password
Whenever you need to use scp to copy files, it asks for passwords. Same with rsync as it (by default) uses ssh as well. Usually scp and rsync commands are used to transfer or backup files between known hosts or by the same user on both the hosts. It can get really annoying the password is asked every time. I even had the idea of writing an expect script to provide the password. Of course, I didn’t. Instead I browsed for a solution and found it after quite some time. There are already a couple of links out there which talk about it. I am adding to it… More >
Rsync Examples Scripts
Jan 15th
http://www.mikerubel.org/computers/rsync_snapshots/
https://calomel.org/rsync_tips.html
http://rootprompt.org/article.php3?article=8976
http://www.comentum.com/rsync.html
How to Create a First Shell Script
Jan 10th
How to Create a First Shell Script
Shell scripts are short programs that are written in a shell programming language and interpreted by a shell process. They are extremely useful for automating tasks on Linux and other Unix-like operating systems.
A shell is a program that provides the traditional, text-only user interface for Unix-like operating systems. Its primary function is to read commands (i.e., instructions) that are typed into a console (i.e., an all-text display mode) or terminal window (i.e., all-text mode window) and then execute (i.e., run) them. The default shell on Linux is the very commonly used and highly versatile bash.
A programming language is a precise, artificial language that is used to write computer programs, which are sets of instructions that can be automatically translated (i.e., interpreted or compiled) into a form (i.e., machine language) that is directly understandable by a computer’s central processing unit (CPU).
A feature of bash and other shells used on Unix-like operating systems is that each contains a built-in programming language, referred to as a shell programming language or shell scripting language, which is used to create shell scripts. Among the advantages of using shell scripts are that they can be very easy to create and that a large number are already available in books and on the Internet for use with or without modification for a wide variety of tasks. Shell scripts are also employed extensively in the default installations of Unix-like operating systems. More >
install PEAR to PLESK over UBUNDU
Jan 9th
#apt-get install lynx
#lynx -source http://pear.php.net/go-pear | php
press 1 and change the path to /usr/share More >
VMware images
Jan 3rd
http://www.thoughtpolice.co.uk/vmware/
VMware lets you run another computer in your computer. Try out another operating system, test a different platform, preview a new distro. Hopefully this page of VMware images, or “Virtual Appliances” is useful. More >
Linux Backup Configuration Tutorials
Jan 2nd
Computers crash, disks become corrupt, data is lost, security is compromised. Today, computers are pretty reliable and it is rare to lose data but it can happen and usually when it is most inconvenient! Important work should always be backed up. More >



Advait said…
This worked for me on linux and solaris More >