CHEAP WEB HOSTING SERVICES AND AFFORDABLE LINUX WEB HOSTING PACKAGES WITH FREE DOMAIN NAME REGISTRATIONLINUX WEB HOSTING WITH PHP MYSQL TOMCAT SITE BUILDER FANTASTICO RVSKIN OSCOMMERCE AGORA CUBECART ZENCART PHPLIST PHP NUKE POSTNUKEECOMMERCE SHOPPING CART HOST MYSQL FRONTPAGE TOMCAT ZENCART HOSTINGCPANEL RESELLER HOSTING AND DEDICATED SERVER WEB HOSTING WITH JOOMLA MAMBO OSCOMMERCE PHPAUCTION AND SSH HOSTING |
Hello,
Ruby (Ruby on Rails) is a language of careful balance. Its creator,
Yukihiro “matz” Matsumoto, blended parts of his favorite languages
(Perl,Smalltalk, Eiffel, Ada, and Lisp) to form a new language that
balanced functional programming with imperative programming.
It is a dynamic, open source programming language with a focus
on simplicity and productivity. It has an elegant syntax that is
natural to read and easy to write as well it has fantastic features.
The installation for Ruby goes as below.You need to perform this
installation on shell ::
1] cd /usr/local/src/
2] wget ftp.ruby-lang.org/pub/ruby/ruby-1.8.2.tar.gz
wget rubyforge.org/frs/download.php/3700/rubygems-0.8.11.tgz
wget fastcgi.com/dist/fcgi-2.4.0.tar.gz
wget fastcgi.com/dist/mod_fastcgi-2.4.2.tar.gz
Here the ruby version will change according to the latest release
at http://www.ruby-lang.org/en/ .Accordingly you will have to
download the compatible version of rubygems.You also need
fastcgi on the server for Ruby.So you must check the fastcgi
dependency of Ruby according to the Ruby version to be installed.
3] Untar the tar downloads one-by-one.
tar zxf ruby-1.8.2.tar.gz
tar zxf rubygems-0.8.11.tgz
tar zxf fcgi-2.4.0.tar.gz
tar zxf mod_fastcgi-2.4.2.tar.gz
4] cd ruby-1.8.2
./configure && make && make install
cd ..
5] cd rubygems-0.8.10
ruby setup.rb
cd ..
6] gem install rails
7] cd fcgi-2.4.0
./configure && make && make install
cd ..
8] cd mod_fastcgi-2.4.2
/usr/local/apache/bin/apxs -o mod_fastcgi.so -c *.c
/usr/local/apache/bin/apxs -i -a -n fastcgi mod_fastcgi.so
cd ..
9] mkdir /tmp/fcgi_ipc/
mkdir /tmp/fcgi_ipc/dynamic/
chmod -R 777 /tmp/fcgi_ipc/
cat > ~/httpd.conf
FastCgiIpcDir /tmp/fcgi_ipc/
AddHandler fastcgi-script .fcgi
FastCgiWrapper On
EOT
10] gem install fcgi
11] httpd restart
Here completes the installation.The further dependencies or
requirements for Ruby can be fulfilled accordingly after it’s trial/use.
IF you want to take back up or transfer data of one or more folder, you can do it using command rsync.
In this case a folder of which you want to take back up is called as source directory and folder where you are taking the backup is called as destination folder.
Let us assume that you have two folders. First one is backup_source and another is backup_destination.
backup_source is a folder of which you have to take backup into folder backup_destination.
run the simple command to accomplish the task.
rsync -ave backup_source/ backup_destination/
This is simple way from which you can take backup.
Now let us understand the options use in command
1)-a, –archive archive mode; same as -rlptgoD (no -H)
Instead of using several options like -rlptgoD, you can use just a option which is equivalent to the said options.
-r, –recursive recurse into directories
-l, –links copy symlinks as symlinks
-p, –perms preserve permissions
-t, –times preserve times
-g, –group preserve group
-o, –owner preserve owner (super-user only)
-D same as –devices –specials
2)-v, –verbose increase verbosity
3)-e, –rsh=COMMAND specify the remote shell to use
If you want to take backup from another machine over secure shell
use following command.
rsync -ave ssh username@anothermachine/backup_source/ backup_destination
Once again for the solaris: How to configure FTP/Telnet to login as root .
Note# THis is just for the practice, make sure that you NEVER configure your production servers for this type of login.
Configure FTP for root logins :
1) First remove the ‘root’ line from /etc/ftpusers.
2) Also, don’t forget to edit the file /etc/ftpaccess and comment out the ‘deny-uid’ and ‘deny-gid’ lines. If the file doesn’t exist, there is no need to create it.
3) If you are using Solaris 9 or Solaris 10, the ftp* files are located in /etc/ftpd.
Configure Telnet for root logins :
Simply edit the file /etc/default/login and comment out the following line like as :
# If CONSOLE is set, root can only login on that device. # Comment this line out to allow remote login by root. # # CONSOLE=/dev/console
Hello Guys!
Are you intrested to write shell scripts and use it?.
Here are some basic instructions. Just follow it and you will be able to use shell script.
There are three main basic steps involved for writing it.
1. Write a script
2. Apply proper permission to execute it
3. place it on another path but the shell can find and execute it.
1.Writing a script
First of all try to understand what is shell script. A shell script is a file that contains ASCII text. You can use any editior to create a shell script. You can use a text editor. A text editor is a program, like a word processor, that reads and writes ASCII text files.
Now, open the vi text editor and type in your first script as follows:
#!/bin/bash
# My first script
echo “Hello Everybody!”
Save your file with some meaningful name. For example testscript.
Now Let us get understand the meaning. The first line of the script is important. This is a special clue given to the shell indicating what program is used to interpret the script. In this case, it is /bin/bash. Other scripting languages such as perl, awk, tcl, Tk, and python can also use this mechanism.
The second line is a comment. Everything that appears after a “#” symbol is ignored by bash. They are used by programmers to explain step by step procedure, what is going on so that others can understand easily. The last line is the echo command. This command simply prints what it is given on the display.
2)Setting permissions
The next thing we have to do is give the shell permission to execute your script. This is done with the chmod command as follows:
[someone@example.com]# chmod 755 testscript
The “755″ will give you read, write, and execute permission. Everybody else will get only read and execute permission. If you want your script to be private (i.e., only you can read and execute), use “700″ instead.
Putting it in your path
At this point, your script will run. Try this:
[someone@example.com]# ./testscript
You should see “Hello Everybody!” displayed. If you do not, see what directory you really saved your script in, go there and try again.
3)Place it on another path but the shell can find and execute it.
Before we go any further, Now let us understand about the paths. When you type in the name of a command, you don’t usually have to specify a complete path name to the program you want to run. The system does not search the entire filesystem to find where the program is located. That would take a long time. How it works? here paths come into play.
The shell does know about the path of commands. Here’s how: the shell maintains a list of directories where executable files (programs) are kept, and just searches the directories in that list. If it does not find the program after searching each directory in the list, it will issue the command not found error message.
This list of directories is called your path. You can view the list of directories with the following command:
[someone@example.com]# echo $PATH
This will return a colon separated list of directories that will be searched if a specific path name is not given when a command is attempted. In our first attempt to execute your new script, we specified a pathname (”./”) to the file.
You can add directories to your path with the following command, where directory is the name of the directory you want to add:
[someone@example.com]# export PATH=$PATH:directory
You can include the above command to your .bash_profile file . That way, it would be done automatically every time you log in.
There is directory for each users to run the programmes called as bin directory. Most modern Linux distributions provide each user a specific directory for the programs he/she personally uses. If you do not already have one, create it with the following command:
[someone@example.com]# mkdir bin
Move your script into your new bin directory. Now you just have to type:
[someone@example.com]# testscript
and your script will run.
Hello,
The process of transferring a file from your computer to your
website is often referred to as “uploading” that file or “publishing” it.
You need a program called an “FTP client” to transfer the file.You can
transfer a file to your web server using a free FTP client known as
FileZilla.You can download and install FileZilla from below link :
http://sourceforge.net/project/showfiles.php?group_id=21558
Before you can upload any file to your site, you will also need some
information from your web host. In particular, you will need to find
out the following:
# The name of your host server or ip of the server
# Your user id or login username for your FTP account.
# Your password for your FTP account.
#The directory where you need to place your files
so that they can be seen by a web browser visiting
your site. For example, your host may tell you to place
the files in a subdirectory called “www” or “public_html”
or even the default directory that you see when you log
into your FTP site.
** Uploading or Publishing a File to Your Web Server
1] Start up FileZilla. The first time you start it, it will ask you
whether you want to save your settings in the Registry or an XML file.
If you are using FileZilla on your own computer with no other users
and you are logged in as Administrator, it probably doesn’t matter
which option you select. If there are other people using the same
computer, you probably should choose to save the settings to the
Registry.
2] Click the “File” menu followed by the “Site Manager” item on that
menu. A dialog box will appear.
3] Click the “New Site” button on that dialog box. This creates a new
item under “My FTP Sites” called “New FTP site”. Rename “New FTP
site” to the name of your site if you wish.By default, the keyboard
cursor would have been placed in the name portion of “New FTP
site” allowing you to change the name immediately.
4] In the section entitled “Site details”, enter the name of your server
name in the “Host” input box.For example,if your web host told you
that your hostname is “server.example.com”,enter “server.example.com”
into the space provided.You can also put the server ip therein.
5] Leave the “Port” and the “Servertype” entry boxes alone.Use your
mouse and click on the “Normal” radio button in the “Logontype” section.
This will enable the “User” and “Password” boxes for the next step.
(If incase you need to enter the port number,you can put in as “21″).
6] Enter your user id or your login name (or whatever your web host
calls it) into the “User” input box. Likewise, enter your password into
the “Password” input box. If you don’t want to bother with entering
your password everytime you connect, leave the box “Don’t save
password” unchecked. If you are sharing your computer with others,
and don’t want others to be able to access your site, you should
probably check the “Don’t save password” check box.FileZilla will then
prompt you for the password when you try to connect in future.
7] Click the “Connect” button. FileZilla will proceed to log you into your
server. If it is successful, you will see a directory listing of your website’s
account in the right window pane. The left window pane is the directory
listing of your own computer.
8] Next, locate the file that you wish to upload in the left window pane
(the “Local Site” pane). Both window panes behave like a Windows
Explorer windows, so navigating them should not be unduly hard. Once
you have located the file you wish to upload, say “test.php”,doubleclick
it to upload it to your website. Alternatively, you can drag that file from
the left window pane to the right window pane. The file will be uploaded
to the folder that is currently open on the right window pane, so make
sure you have changed to the directory you want before dragging the
file there.
9] As FileZilla proceeds to upload your file to your site, you should be
able to see the upload progress in the bottommost window pane in
FileZilla. When the upload has completed, you can disconnect from
your website. Do this by clicking the “File” menu followed by the
“Disconnect” item.
So finally you have uploaded the file to your site using FTP client FileZilla!!
The following article explains how to access your MySQL database remotely.
1)Go to Cpanel >> MySQL® Databases >> Access Hosts: >> Add IP of the machine from which you want to access databse.
2)Click on Add host.
In order to access your MySQL database, please follow these steps:
1. Log into your machine from which you want to access database remotely.
2. Open the MySQL client program on the server in the /usr/bin directory.
cd /usr/bin
Give the command
# mysql
3.Type in the following syntax to access your database:
$ mysql -h {hostname} -u username -p {databasename}
Password: {your password}
mysql >
* hostname: the name of the MySQL server that you are assigned to, for example, domainname/servername
* databasename: The name of your MySQL database
* password: The password you use to access your MySQL database
Micfo International LLC Leading the hosting Industry with Cheap and Affordable Linux Web Hosting Packages.
Micfo, delivering the best cpanel web hosting with maximum reliability
is our exclusive focus.
— Micfo
International LLC
39 queries. 0.131 seconds