Creating a Rewrite for Ruby on Rails Application in cPanel
Ruby on Rails uses its own server, users visiting your Ruby on Rails application will need to be redirected to the appropriate port.
Because Ruby on Rails uses its own server, users visiting your website (and subsequently your Ruby on Rails application) will need to be redirected to the appropriate port.
Ruby does not respond on the standard HTTP port number, 80. Thus, visitors would need to specify the port number with the domain — for example, example.com:12001.
To configure a rewrite for Ruby on Rails Application in cPanel
1. Log into cPanel.
2. Navigate to the Software/Services section of your cPanel interface.
3. Click the Ruby on Rails icon. This step will open the Ruby on Rails management interface.
4. Click the Create Rewrite button corresponding to the appropriate application in the Create A Rewrite table.
Creating a Ruby on Rails Application in Cpanel Server
Ruby on Rails runs on its own server so the setup requires a little extra work.
1. Log into cPanel.
2. Navigate to the Software/Services section of your cPanel interface.
3. Click the Ruby on Rails icon.
* This step will open the Ruby on Rails management interface.
4. Specify your application’s name in the App Name field.
* PICK Remember: To set your application to load when the server is booted, click the Load on Boot? check box.
5. Assign the application path in the Application Path field.
* note Note: If you set an application path in your public_html/ directory, your source code and configuration files can be viewed by anyone on the web.
6. Use the Environment drop-down menu to select the type of Ruby on Rails environment you wish to run.
7. Click Create.
Creating Repos for RHEL / Centos
Please follow the given steps to setup a repos on the local server. Make sure that you have installed rpm createrepo, You can download the required rpm for your os from:
http://dag.wieers.com/packages/createrepo/
Copy all the rpm from all redhat cd to this directory.
# mkdir /repos/updates
# createrepo /repos/os
# createrepo /repos/updates
After doing this you just need to run the ensim installer in the following way.
# sh ensim-installer.sh –email=you@youremail.com –cdrom=n -o file:///repos/os -u file:///repos/updates
To create a Service Plan template:
In the shortcuts section of the Home page, click Add Service Plan (Sites section).
Use the Service Plan Options Information to help you complete the form.
In the Save Plan area, save the plan as a new template or overwrite an existing template.
Before creating sites, you might want to create Service Plan templates. These templates are not required to create a site; however, they can make creating multiple sites easier and faster by establishing the services and utilities you want to assign to specific sites when you create them.
To save the plan as a new plan, select the Save as a new plan option. In the adjacent text box, enter the name of the new plan.
To update or overwrite an existing plan, select the Save as an existing plan option. From the list, click the arrow and choose a name.
To save this plan as the default plan, click the arrow and choose default.
Click Save.
Creating the postfix aliases database
Postfix uses a Sendmail-compatible aliases(5) table to redirect mail for local(8) recipients. Typically, this information is kept in two files: in a text file /etc/aliases and in an indexed file /etc/aliases.db. The command “postconf alias_maps” will tell you the exact location of the text file.
root@dell:~# postconf alias_maps
alias_maps = hash:/etc/aliases
root@dell:~#
First, be sure to update the text file with aliases for root, postmaster and “postfix” that forward mail to a real person. Postfix has a sample aliases file /etc/postfix/aliases that you can adapt to local conditions.
/etc/aliases:
root: you
postmaster: root
Note: there should be no whitespace before the “:”.
Finally, build the indexed aliases file with one of the following commands:
# newaliases
# sendmail -bi