# php.ini location
# php.ini include files
# ioncube location on 64-bit OS
# httpd.conf location
# httpd.conf include files
# php.conf location
When Plesk creates an account for you it will always assign the httpdocs folder to the "psaserv" group, and all files within the httpdocs folder to the "psacln" group.
Sometimes you may run into trouble should you accidentally modify these groups (especially when you change the group of the httpdocs folder from psaserv) so should you need to restore these groupings you may run the following commands in succession:
chown -R your_plesk_username:psacln /your/httpdocs/directory
chown your_plesk_username:psaserv /your/httpdocs/directory
What the first command does is make sure that all of the files and folders within your httpdocs folder are correctly within the "psacln" group. The negative side effect of using the "-R" directive is that it also changes the permissions of the httpdocs directory itself, leading to the second command which only changes the httpdocs folder itself to be part of the "psaserv" group, while leaving the files and folders within with the correct grouping.
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: