The following are instructions on install:
Download the newest version from http://pfn.sourceforge.net/
Unzip it and move it to /var/hda/web-apps/
Create a new web app in your hda setup and call it PHPfileNavigator
Now in a terminal go to /var/hda/web-apps/PHPfileNavigator
First we are going to have to take care of .htaccess
Open up the file with your favorite text editor, I use pico since it if very easy to use
Chanage the .htaccess file to
Code: Select all
#Options -Indexes
Next run
Code: Select all
chown -R apache *
Code: Select all
chgrp -R apache *
Follow the instructions it should be easy to do until you get to Step 4. I had a red X for
Code: Select all
GD >= 1.0.0
This installation of PHP does not include support for graphical libraries GD. You must install the modules necessary or recompile the PHP to add the support.
Now it gets a little harder. When I say 'Password' put in a password, run the following commands in a termnial (when it prompts for a password it will be "hda"):
Code: Select all
mysqladmin -uroot create files -p
Code: Select all
mysql files -uroot -e"GRANT ALL ON files.* TO files@localhost IDENTIFIED BY 'Password'" -p
Code: Select all
Carset: United States
Database
Server: localhost
Database Name: files
User: files
Password: Password
Next in the Admin users fill that out
In the Main root
Name: (what ever you want) I called it 'files'
Absolute path: /var/hda/files/
Before you go any further test to make sure every thing works go to http://PHPfileNavigator/
Now it is time to host it on your site and make it encypted
You will need to make sure that your router will port foward port 443 and 80 to you linux box
Now in a terminal type the following
Code: Select all
cd /etc/httpd/conf/
Code: Select all
openssl genrsa -out filename.key 1024
Code: Select all
openssl req -new -key filename.key -x509 -days 1000 -out filename.crt
Now go to cd /etc/httpd/conf.d/ and find the file that has PHPfileNavigator in its name. You can type ls to list the files. And open it up with a text editor
edit it to make it look like this
Code: Select all
<VirtualHost *:443>
ServerName ajaxplorer
ServerAlias username.yourhda.com
SSLEngine On
SSLCertificateFile /etc/httpd/conf/filename.crt
SSLCertificateKeyFile /etc/httpd/conf/filename.key
DocumentRoot /var/hda/web-apps/ajaxplorer
<Directory "/var/hda/web-apps/Ajaxplorer">
Options Indexes FollowSymLinks +ExecCGI
AddHandler fcgid-script .fcg
AllowOverride AuthConfig
Order allow,deny
Allow from all
</Directory>
</VirtualHost>
Code: Select all
<VirtualHost *:80>
ServerName username.yourhda.com
RewriteEngine On
RewriteCond %{SERVER_PORT} !^443$
RewriteRule ^.*$ https://%{SERVER_NAME}%{REQUEST_URI} [L,R]
ExpiresDefault "access plus 10 years"
AddOutputFilterByType DEFLATE text/html text/plain text/xml
</VirtualHost>