PHPfileNavigator - Web based file mangment
Posted: Sat Dec 06, 2008 9:06 pm
After not having much luck with ajaxplorer I found PHPfileNavigator also here is a demo
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
If you dont you will get a internal server error when trying to access the web page.
Next run and
Now in a web browser go to http://PHPfileNavigator/ when you first load the page it will be in Spanish go about halfway down the page and their is a drop down box that says "Castellano" change it to "ingles"
Follow the instructions it should be easy to do until you get to Step 4. I had a red X for
So check the box at the bottom to ignore the verification
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"):
Now back to the PHPfileNavigator setup. Fill in the following information
Finnish the Install by following their directions
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
Next open up httpd.conf with you favorite editor and add NameVirtualHost *:443 somewhere in the conf file
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
Finnally crate a new file called 100-redirect.conf and put this in it
And thats it, now in a browser you can type "username.yourhda.com" and it will redirect you to "https://username.yourhda.com" and you are all up and running. If you have any problems let me kwow
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>