[EP-tech] Re: Subdirectory that runs PHP Scripts
sheraaz.a.buksh at usp.ac.fj
Thu Mar 22 20:19:05 GMT 2012
I tried the suggestion but it didn't work out.
Any other ideas?? (By the way I am running Eprints 3.2).
From: eprints-tech-bounces at ecs.soton.ac.uk [mailto:eprints-tech-bounces at ecs.soton.ac.uk] On Behalf Of Sebastien Francois
Sent: 22 March 2012 9:51 PM
To: eprints-tech at ecs.soton.ac.uk
Subject: [EP-tech] Re: Subdirectory that runs PHP Scripts
On 21/03/12 23:47, Sheraaz Buksh wrote:
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_scripts . 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/
AddHandler php5-script php htm html
Allow from all
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/.
Try moving/copying your php files to:
then run /opt/eprints3/bin/generate_static resrepo1
then restart apache (not sure you need to do that, it's just to be safe).
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Eprints-tech