Hi all,

quite possibly the issue is to do with permission.

In my httpd.conf I have httpd run by user and group apache (RHEL including apache,php,java was installed by our CS and I installed vufind as root) .

when I look at the apache error log I see

[Mon Nov 05 15:37:11 2012] [error] [client 149.157.61.84] Directory index forbidden by Options directive: /var/www/html/
[Mon Nov 05 16:21:27 2012] [error] [client ::1] PHP Warning:  mkdir(): Permission denied in /usr/local/vufind/vufind-1.3/web/sys/Interface.php on line 100
[Mon Nov 05 16:21:27 2012] [error] [client ::1] PHP Warning:  mkdir(): Permission denied in /usr/local/vufind/vufind-1.3/web/sys/Interface.php on line 100
[Mon Nov 05 16:21:27 2012] [error] [client ::1] PHP Fatal error:  Smarty error: unable to write to $compile_dir '/usr/local/vufind/vufind-1.3/web/interface/compile/9cd5945eb796ea57d5e34b1da9fd4c8f'. Be sure $compile_dir is writable by the web server user. in /usr/share/pear/Smarty/Smarty.class.php on line 1093
[Mon Nov 05 16:21:59 2012] [error] [client 149.157.61.84] PHP Warning:  mkdir(): Permission denied in /usr/local/vufind/vufind-1.3/web/sys/Interface.php on line 100
[Mon Nov 05 16:21:59 2012] [error] [client 149.157.61.84] PHP Warning:  mkdir(): Permission denied in /usr/local/vufind/vufind-1.3/web/sys/Interface.php on line 100
[Mon Nov 05 16:22:00 2012] [error] [client 149.157.61.84] PHP Fatal error:  Smarty error: unable to write to $compile_dir '/usr/local/vufind/vufind-1.3/web/interface/compile/9cd5945eb796ea57d5e34b1da9fd4c8f'. Be sure $compile_dir is writable by the web server user. in /usr/share/pear/Smarty/Smarty.class.php on line 1093
[Mon Nov 05 16:23:16 2012] [error] [client 149.157.2.121] PHP Warning:  mkdir(): Permission denied in /usr/local/vufind/vufind-1.3/web/sys/Interface.php on line 100
[Mon Nov 05 16:23:16 2012] [error] [client 149.157.2.121] PHP Warning:  mkdir(): Permission denied in /usr/local/vufind/vufind-1.3/web/sys/Interface.php on line 100
[Mon Nov 05 16:23:16 2012] [error] [client 149.157.2.121] PHP Fatal error:  Smarty error: unable to write to $compile_dir '/usr/local/vufind/vufind-1.3/web/interface/compile/9cd5945eb796ea57d5e34b1da9fd4c8f'. Be sure $compile_dir is writable by the web server user. in /usr/share/pear/Smarty/Smarty.class.php on line 1093
[Mon Nov 05 16:26:20 2012] [error] [client 149.157.2.121] PHP Warning:  mkdir(): Permission denied in /usr/local/vufind/vufind-1.3/web/sys/Interface.php on line 100
[Mon Nov 05 16:26:20 2012] [error] [client 149.157.2.121] PHP Warning:  mkdir(): Permission denied in /usr/local/vufind/vufind-1.3/web/sys/Interface.php on line 100
[Mon Nov 05 16:26:20 2012] [error] [client 149.157.2.121] PHP Fatal error:  Smarty error: unable to write to $compile_dir '/usr/local/vufind/vufind-1.3/web/interface/compile/9cd5945eb796ea57d5e34b1da9fd4c8f'. Be sure $compile_dir is writable by the web server user. in /usr/share/pear/Smarty/Smarty.class.php on line 1093
[Mon Nov 05 16:28:03 2012] [error] [client ::1] Directory index forbidden by Options directive: /var/www/html/
[Mon Nov 05 16:28:07 2012] [error] [client ::1] PHP Warning:  mkdir(): Permission denied in /usr/local/vufind/vufind-1.3/web/sys/Interface.php on line 100
[Mon Nov 05 16:28:07 2012] [error] [client ::1] PHP Warning:  mkdir(): Permission denied in /usr/local/vufind/vufind-1.3/web/sys/Interface.php on line 100
[Mon Nov 05 16:28:07 2012] [error] [client ::1] PHP Fatal error:  Smarty error: unable to write to $compile_dir '/usr/local/vufind/vufind-1.3/web/interface/compile/9cd5945eb796ea57d5e34b1da9fd4c8f'. Be sure $compile_dir is writable by the web server user. in /usr/share/pear/Smarty/Smarty.class.php on line 1093
[Mon Nov 05 16:28:18 2012] [error] [client 149.157.2.121] PHP Warning:  mkdir(): Permission denied in /usr/local/vufind/vufind-1.3/web/sys/Interface.php on line 100
[Mon Nov 05 16:28:18 2012] [error] [client 149.157.2.121] PHP Warning:  mkdir(): Permission denied in /usr/local/vufind/vufind-1.3/web/sys/Interface.php on line 100
[Mon Nov 05 16:28:18 2012] [error] [client 149.157.2.121] PHP Fatal error:  Smarty error: unable to write to $compile_dir '/usr/local/vufind/vufind-1.3/web/interface/compile/9cd5945eb796ea57d5e34b1da9fd4c8f'. Be sure $compile_dir is writable by the web server user. in /usr/share/pear/Smarty/Smarty.class.php on line 1093

now I am wondering what would be the right course for me to do! Should I modify the user and group to root in the httpd.conf file as everything else is owned and run by root  or should I simply try changing the ownership of  compile directory and the directory underneath it to apache:apache ?

Thanks
Ranju.





----- Original Message -----
From: "Mosior, Benjamin" <BEMosior@ship.edu>
Date: Monday, November 5, 2012 4:11 pm
Subject: RE: [VuFind-General] unable to access vufind on RHEL
To: Ranju Upadhyay <Ranju.Upadhyay@nuim.ie>, "vufind-general@lists.sourceforge.net" <vufind-general@lists.sourceforge.net>

> Ranju,

>  

> A few quick things to check:

> 1.       Is Apache running? (run: service httpd status)

> 2.       Is anything useful showing up in the Apache error logs? (usually: /var/log/httpd/error_log)

>  

> Let us know what you find.

>  

> Benjamin Mosior

> Keystone Library Network

>  

> From: Ranju Upadhyay [mailto:Ranju.Upadhyay@nuim.ie]
> Sent: Monday, November 05, 2012 10:36 AM
> To: vufind-general@lists.sourceforge.net
> Subject: [VuFind-General] unable to access vufind on RHEL

>  

> Hi all,
>
> Recently installed vufind1.3 on RHEL 6.3.Everything went fine during installation.I then made changes to config.ini etc . But now when I try to access vuifnd which should be at
>
> http://xvufind.nuim.ie/vufind/ , the page is blank!
>
> Insterestingly enough I can access solr at http://xvufind.nuim.ie:8080/solr/
>
> when I do ./vufind.sh start I get something like:
>
> ./vufind.sh start
> Found JAVA=/usr/lib/jvm/java-1.6.0-openjdk-1.6.0.0.x86_64/jre/bin/java in JAVA_HOME=/
> Starting VuFind ...
> /usr/lib/jvm/java-1.6.0-openjdk-1.6.0.0.x86_64/jre/bin/java -server -Xms1024m -Xmx1024m -XX:+UseParallelGC -XX:NewRatio=5 -Dsolr.solr.home=/usr/local/vufind/vufind-1.3/solr -Djetty.logs=/usr/local/vufind/vufind-1.3/solr/jetty/logs -Djetty.home=/usr/local/vufind/vufind-1.3/solr/jetty  -jar /usr/local/vufind/vufind-1.3/solr/jetty/start.jar  /usr/local/vufind/vufind-1.3/solr/jetty/etc/jetty.xml
> nohup: appending output to `nohup.out'
> VuFind running pid=3495
>
> everything was installed as root and hence I start vufind as root as well.
>
> I modified the .bash_profile at roots home dir i.e. /root as follows:
>
> VUFIND_HOME=/usr/local/vufind/vufind-1.3
> JAVA_HOME=/usr/lib/jvm/java-1.6.0-openjdk-1.6.0.0.x86_64/jre
> PATH=$PATH:$HOME/bin:$VUFIND_HOME:$JAVA_HOME
>
> export PATH
>
> have even rebooted the server but no luck!
>
> Any suggestions?
>
> Thanks
> Ranju Upadhyay
> National Library of Ireland Maynooth.