I followed the instructions *** Extra File-Server Installation ***
Steps 1-3 were competed successfully
Then I run into a problem when I follow the following steps...
INFO: After installation try to open env.php which is in FileServer files folder in browser - it should show you error or source code.
If you see full path, then check that you've moved .htaccess to FileServer htdocs folder.
So I follow the instructions and type in my file server URL: http://fileserver.com/files/env.php and hit Enter.
The browser asks me if I want to Open or Save the file.
Isn't this some sort of error? There is an .htaccess in the "files" and "tmp" folders.
XFileSharing Pro - After xtra file server install I think I may have a problem
- PilgrimX182
- Posts: 2186
- Joined: Mar 22, 2006 1:39 pm
- PilgrimX182
- Posts: 2186
- Joined: Mar 22, 2006 1:39 pm
Directives in .htaccess should do this actually.
Try these in apache config for /files/ folder:
But if you disable .php,.htm,.html files in XFS Site Settings then I think you will be pretty safe.
Try these in apache config for /files/ folder:
Code: Select all
<IfModule sapi_apache2.c>
php_flag engine off
</IfModule>
<IfModule mod_php4.c>
php_flag engine off
</IfModule>
<IfModule mod_php5.c>
php_flag engine off
</IfModule>
Oh, okay I see now. I could apply the code to the apache config. BUT if I already disable .php,.htm,.html files in XFS Site Settings the extra code is not necessary then?PilgrimX182 wrote:Directives in .htaccess should do this actually.
Try these in apache config for /files/ folder:But if you disable .php,.htm,.html files in XFS Site Settings then I think you will be pretty safe.Code: Select all
<IfModule sapi_apache2.c> php_flag engine off </IfModule> <IfModule mod_php4.c> php_flag engine off </IfModule> <IfModule mod_php5.c> php_flag engine off </IfModule>
- PilgrimX182
- Posts: 2186
- Joined: Mar 22, 2006 1:39 pm