problems with html ui, smarty
  • i'm completely stuck now Sad
    when i hit ui_browser.php i get this error:
    Fatal error: Smarty error: unable to write to $compile_dir '/usr/local/livesupport/var/htmlUI/var/templates_c'. Be sure $compile_dir is writable by the web server user. in /usr/local/livesupport/var/htmlUI/var/Smarty/libs/Smarty.class.php on line 1088

    and yes, i checked if the folder is writeable by the apache user, still the same error, even
    after making the whole /usr/local/livesupport folder chmod 777

    any ideas??
  • 3 Comments sorted by
  • Can you post a bug report on the LiveSupport bug tracker, here:

    http://www.campware.org/look/bugs_frameset.html

    issues thrown to the mailing list tend to get scattered and forgotten...

    On Fri, 2005-04-22 at 02:33, livesupport-dev@eserver2.mdlf.org wrote:
    > This message was sent from: LS Development.
    >
    > ----------------------------------------------------------------
    >
    > i'm completely stuck now Sad
    > when i hit ui_browser.php i get this error:
    > Fatal error: Smarty error: unable to write to $compile_dir
    > '/usr/local/livesupport/var/htmlUI/var/templates_c'. Be sure $compile_dir
    > is writable by the web server user. in
    > /usr/local/livesupport/var/htmlUI/var/Smarty/libs/Smarty.class.php on line
    > 1088
    >
    > and yes, i checked if the folder is writeable by the apache user, still
    > the same error, even
    > after making the whole /usr/local/livesupport folder chmod 777
    >
    > any ideas??
    >
    > ----------------------------------------------------------------
    > Sent using Phorum software version 3.4.3a
    >

    ------------------------------------------
    Posted to Phorum via PhorumMail
  • ok, i found the problem:

    fedora core 3 uses something called "LinuxSE" for Security and there is by default set that apache is only allowed to write into /tmp directory!



    to solve i used:

    On the Fedora Core 3 Linux distribution, you may get a "failed to open stream: Permission denied in ..." message. I fact changing the permission of the directory will not work (even if you set to 0777). It is because of the new SELinux kernel that allow apache user to write only in /tmp dir (I think). In order to solve the problem you must to disable the SELinux (at least for apache service) to allow the server to write in other directories. To do that, run the system-config-securitylevel app and disable the SE to apache service. Reboot your system and continue your work. Hope it helps!



    source: http://at2.php.net/move_uploaded_file
  • Thanks for solution.

    Only remark:
    It should be IMO rather solved by change in security policy configuration
    or link template-c dir somewhere in /tmp with appropriate permissions
    (if possible).

    Working security extension (e.g.selinux) is not bad feature, I think ...

    Tomas Hlava
    th@red2head.com

    On Fri, 22 Apr 2005 13:54:53 +0200 livesupport-dev@eserver2.mdlf.org wrote:
    > This message was sent from: LS Development.
    >
    > ----------------------------------------------------------------
    >
    > ok, i found the problem:
    >
    > fedora core 3 uses something called "LinuxSE" for Security and there is by
    > default set that apache is only allowed to write into /tmp directory!
    >
    >
    >
    > to solve i used:
    >
    > On the Fedora Core 3 Linux distribution, you may get a "failed to open
    > stream: Permission denied in ..." message. I fact changing the permission
    > of the directory will not work (even if you set to 0777). It is because of
    > the new SELinux kernel that allow apache user to write only in /tmp dir (I
    > think). In order to solve the problem you must to disable the SELinux (at
    > least for apache service) to allow the server to write in other
    > directories. To do that, run the system-config-securitylevel app and
    > disable the SE to apache service. Reboot your system and continue your
    > work. Hope it helps!
    >
    >
    >
    > source: http://at2.php.net/move_uploaded_file
    >
    > ----------------------------------------------------------------
    > Sent using Phorum software version 3.4.3a

    ------------------------------------------
    Posted to Phorum via PhorumMail