#Deploying and testing the PDB2PQR website
These directions are taylored for installation on OSX. Adjustments will have to be made for installation on Linux. On OSX specifically you must ensure that web sharing is enabled for the user who will be running pdb2pqr.
Create www directory to install pdb2pqr in. (We will use /Users/kyle/www for all examples)
Create a link to this directory from /Library/WebServer/Documents
sudo ln -s /Users/kyle/www/ /Library/WebServer/Documents/kyle
edit /etc/apache2/httpd.conf to allow cgi scipts to execute in the installation directory.
add paths for links in the /Library directory in the
ScriptAliasMatch ^/cgi-bin/((?!(?i:webobjects)).*$) “/Library/WebServer/Documents/kyle/pdb2pqr/$1”
add a Directory section
<Directory “/Library/WebServer/Documents/kyle/pdb2pqr”> AllowOverride None Options ExecCGI Order allow,deny Allow from all </Directory>
Install fabric using pip if you haven’t already.
Currently the APBS libs are not easily compiled on any of the target platforms. These libraries can be obtained from the prebuilt executables from pdb2pqr 2.0 onward.
Internally we pass around a zip file that has the files already to go for each target platform.
If the target machine is a linux host set the “linux_host” variable to the host name of the target machine.
Likewise if the target is an OSX host set the “osx_host” variable.
You may also use @ to specify a different username for the remote host and : to specify a different port.
For instance to connect to a local linux VM which has local port 2220 redirected to 22 on the VM and the user name of “Kyle”:
To set the URL and prefix based on our example:
The script does the following steps: