You can type in the following at the command line to get the version of Redhat you are running:
Unfortunately, this method doesn't tell you whether you are running a 32-bit or 64-bit version of the operating system. In order to find out this information you could use the following command:
Compared to a cPanel environment, where you are almost exclusively required to use a .htaccess file, in Plesk you are able to reconfigure Apache and add to the configuration file on the fly.
In every domain and sub domain created in Plesk there is a folder named "conf" that contains a file named "httpd.include" which contains the automatically generated Apache configuration created by Plesk. Since you don't want to edit an automatically generated file, Plesk includes a way to add-on to the httpd.include via the "vhost.conf" file. In the same "conf" folder, create a new file named "vhost.conf". I typically do this by typing in the following into the command line:
I then add my Apache configurations to the vhost.conf file and then save them by typing in:
Now you'll need to tell Plesk to reload it's Apache configuration by typing in the following (replace example.com with your domain name):
/usr/local/psa/admin/sbin/websrvmng -u --vhost-name=example.com
In my wanderings for Plesk assistance I have found the following resources helpful:
And of course, Parallels support has been pretty helpful in most situations too!
This script was created over the course of a few days early on when I first began working. The way things had been setup, we had an instance of our CMS application using a pre-production database that periodically needed to be synced to our production database. Prior to my arrival this procedure had been completed manually every few hours.
Before this I had never written any sort of shell script so I had a fun time looking up the commands and figuring out how to write the script and get things working.
This is a reprint of a post I made on the Atomic Rocket Turtle Forums on September 15, 2008:
OK, I've accomplished my main goal for the day :-).
I've gotten the OCI8 PHP Module installed along with the Oracle Instant Client Library so now I can make calls to our Oracle database within PHP.
So this is what I needed to do.
To download Oracle Instant Client first go to: