Project

General

Profile

How to run PHP files from redmine's sub-directory

Added by Ruslan Yakauleu about 10 years ago

My Apache's config

<VirtualHost *:3000>
    ServerAdmin support@server
    DocumentRoot /var/www
    PassengerAppRoot /var/www/redmine
    Alias /redmine/ "/var/www/redmine/public/" 
    RailsEnv production
    RailsBaseURI /redmine
    <Directory "/var/www/redmine/public/">
        Options Indexes ExecCGI FollowSymLinks
        Order allow,deny
        Allow from all
        AllowOverride all
    </Directory>

    <Directory /var/www/redmine/public/phpfiles/>
        Options Indexes FollowSymLinks -MultiViews ExecCGI
        AllowOverride All
        Order allow,deny
        allow from all
    </Directory>
</VirtualHost>

Now PHP files from /var/www/redmine/public/phpfiles/ showed as text. Where I am wrong?