Re: [Engine-devel] [Users] php on jboss

----- Original Message -----
From: "René Koch" <rkoch@linuxland.at> To: "aditya mamidwar" <aditya.mamidwar@gmail.com> Cc: engine-devel@ovirt.org, users@ovirt.org Sent: Monday, March 24, 2014 3:18:56 PM Subject: Re: [Users] php on jboss
Hi,
On 03/24/2014 01:11 PM, aditya mamidwar wrote:
i need a php file to execute some bash scripts on the server, but when i integrate the ui-plugin ot the ovirt portal, it does not find path to my .php file.
I have the HTML where as .PHP residing in the same location, can someone guide on uploading PHP files on JBOSS server, since ovirt runs on it..
oVirt uses both - JBoss and Apache. You should place your PHP file in html dir of Apache, not JBoss.
if i want to run a PHP file, where should i save it?
Just save it to /var/www/html, which is the default location for your Apache webserver and install PHP module.
I missed this thread. You can put custom files under /usr/share/ovirt-engine/files it will be available for you at: http://<>/ovirt-engine/files Of course we do not support cgi-bin but plain files... but it may address your needs. Please make sure you have your own subdirectory under files, so no conflicts.
You should be able to browse to http://ovirt/myfile.php. If not, you exclude the path in Apache vhost configuration file ovirt-engine.conf: ProxyPass /myfile.php !
Hope this helps, Rene
-- -Aditya Mamidwar
_______________________________________________ Users mailing list Users@ovirt.org http://lists.ovirt.org/mailman/listinfo/users
_______________________________________________ Users mailing list Users@ovirt.org http://lists.ovirt.org/mailman/listinfo/users

On Mon, 24 Mar 2014 09:23:39 -0400 (EDT) Alon Bar-Lev <alonbl@redhat.com> wrote:
You can put custom files under /usr/share/ovirt-engine/files it will be available for you at: http://<>/ovirt-engine/files
unix-style nitpicking... hier(7): /usr This directory is usually mounted from a separate partition. It should hold only sharable, read-only data, so that it can be mounted by various machines running Linux.
Of course we do not support cgi-bin but plain files... but it may address your needs.
Please make sure you have your own subdirectory under files, so no conflicts.
j.

----- Original Message -----
From: "Jiri Belka" <jbelka@redhat.com> To: "Alon Bar-Lev" <alonbl@redhat.com> Cc: "René Koch" <rkoch@linuxland.at>, engine-devel@ovirt.org, "aditya mamidwar" <aditya.mamidwar@gmail.com>, users@ovirt.org Sent: Monday, March 24, 2014 3:32:40 PM Subject: Re: [Users] php on jboss
On Mon, 24 Mar 2014 09:23:39 -0400 (EDT) Alon Bar-Lev <alonbl@redhat.com> wrote:
You can put custom files under /usr/share/ovirt-engine/files it will be available for you at: http://<>/ovirt-engine/files
unix-style nitpicking...
hier(7):
/usr This directory is usually mounted from a separate partition. It should hold only sharable, read-only data, so that it can be mounted by various machines running Linux.
So? Why can't html, images and such be placed there?
Of course we do not support cgi-bin but plain files... but it may address your needs.
Please make sure you have your own subdirectory under files, so no conflicts.
j.
participants (2)
-
Alon Bar-Lev
-
Jiri Belka