[EP-tech] Re: Subdirectory that runs PHP Scripts

Sheraaz Buksh sheraaz.a.buksh at usp.ac.fj
Thu Mar 22 20:26:02 GMT 2012


I am running Eprints 3.2. I tried the initial instructions given on the page but it just doesn't work out. 

Even after I explicitly say in my apachevhost.conf to read the directory from a different location the Eprints tries to read the directory from this location opt/eprints3/archives/resrepo1/html/en/. I even tried putting my directory to that location and configuring my apachevhost.conf accordingly by changing the directory path in Alias to opt/eprints3/archives/resrepo1/html/en/ and so on.

Any other ideas would be really appreciated.



-----Original Message-----
From: eprints-tech-bounces at ecs.soton.ac.uk [mailto:eprints-tech-bounces at ecs.soton.ac.uk] On Behalf Of Tim Brody
Sent: 22 March 2012 9:55 PM
To: eprints-tech at ecs.soton.ac.uk
Subject: [EP-tech] Re: Subdirectory that runs PHP Scripts


If you're running 3.3 you need to explicitly include apachevhost.conf - I've updated the Wiki page with instructions.

On Wed, 21 Mar 2012 23:47:30 +0000, Sheraaz Buksh <sheraaz.a.buksh at usp.ac.fj> wrote:
> Hi All
> I am trying to add a subdirectory to server php scripts based on the 
> instructions here 
> http://wiki.eprints.org/w/How_to_add_a_subdirectory_that_runs_PHP_scri
> pts . However I have not been successful in doing so.
> I get an error as follows:
> File does not exist: /opt/eprints3/archives/resrepo1/html/en/stats,
> referer: http://repository.xx.xx.xx/stats/ .
> I have created the subdirectory in my /var/www/html folder. And I have 
> configured my apachevhost.conf as follows:
> Alias /stats/ /var/www/html/stats/
>   <Location "/stats">
>      AddHandler php5-script php htm html
>      DirectoryIndex index.html
>   </Location>
>   <Directory "/var/www/html/stats">
>      Order allow,deny
>      Allow from all
>   </Directory>
> I am not sure why stats folder is being read from here 
> /opt/eprints3/archives/resrepo1/html/en/ when I have an Alias set to 
> read the folder from /var/www/html/stats/.
> Please if anyone can help out with regards to this.
> Regards
> Sheraaz

All the best,
*** Options: http://mailman.ecs.soton.ac.uk/mailman/listinfo/eprints-tech
*** Archive: http://www.eprints.org/tech.php/
*** EPrints community wiki: http://wiki.eprints.org/

More information about the Eprints-tech mailing list