From: Florian G. <fl...@bi...> - 2007-08-02 07:23:07
|
There was a typo in the configure script some time ago. The correct option is: --with-apacheuser and not --with-apache-user If it is not set, it will default to nobody. Flo Ale...@sm... schrieb: > I repeat again: > > when we use --with-apache-user=nagios > >> we sea: >> >> chown nobody > /export/home/nagios/installed-packages/opt/asnmtap/applications/htmlroot/php/templates_c > >> instead of ? >> >> chown nagios > /export/home/nagios/installed-packages/opt/asnmtap/applications/htmlroot/php/templates_c > > > I think that you always uses chwon nobody even when we soecifi the user > nagios !!! > > > I use smarty as template engine (smarty.php.net). It is very powerful > and flexible. smarty "compiles" the templates and caches the compiled > templates in a directory called templates_c. The "make install" tries to > set the permissions so that the temnplates_c is writable by apache. > So if you encounter a problem with the chown, you just set the > --with-apache-user with your username, and then use another technique > (chmod 777 or serfacl or ...) to make templates_c directory writable to > apache. > > Flo > > > Ale...@sm... schrieb: >> PerfParse 0.106.1 >> >> LDFLAGS="-liconv" ./configure >> --prefix=/export/home/nagios/installed-packages/opt/asnmtap/perfparse >> > --with-imagedir=/export/home/nagios/installed-packages/opt/asnmtap/applications/htmlroot/img/ > >> > --with-cgidir=/export/home/nagios/installed-packages/opt/asnmtap/applications/htmlroot/cgi-bin > >> > --with-phpuidir=/export/home/nagios/installed-packages/opt/asnmtap/applications/htmlroot/php > >> --with-http_image_path=/asnmtap/img --with-data-source=asnmtap >> --with-apache-user=nagios >> >> we have no root rights and i did compile with --with-apache-user=nagios >> >> make install-strip >> >> make install-data-hook >> make[4]: Entering directory >> `/export/home/nagios/installed-packages/perfparse-0.106.1/phpgui' >> chmod u+rwx >> > /export/home/nagios/installed-packages/opt/asnmtap/applications/htmlroot/php/templates_c > >> chown nobody >> > /export/home/nagios/installed-packages/opt/asnmtap/applications/htmlroot/php/templates_c > >> chown: changing ownership of >> > `/export/home/nagios/installed-packages/opt/asnmtap/applications/htmlroot/php/templates_c': > >> Not owner >> make[4]: *** [install-data-hook] Error 1 >> make[4]: Leaving directory >> `/export/home/nagios/installed-packages/perfparse-0.106.1/phpgui' >> make[3]: *** [install-data-am] Error 2 >> make[3]: Leaving directory >> `/export/home/nagios/installed-packages/perfparse-0.106.1/phpgui' >> make[2]: *** [install-am] Error 2 >> make[2]: Leaving directory >> `/export/home/nagios/installed-packages/perfparse-0.106.1/phpgui' >> make[1]: *** [install-recursive] Error 1 >> make[1]: Leaving directory >> `/export/home/nagios/installed-packages/perfparse-0.106.1' >> make: *** [install-strip] Error 2 >> >> >> we sea: >> >> chown nobody >> > /export/home/nagios/installed-packages/opt/asnmtap/applications/htmlroot/php/templates_c > >> instead of ? >> >> chown nagios >> > /export/home/nagios/installed-packages/opt/asnmtap/applications/htmlroot/php/templates_c > >> >> -- Alex Peeters >> >> > > > |