Results 1 to 8 of 8

Thread: Won't install on localhost

  1. #1
    Member
    Join Date
    Dec 2011
    Location
    Estonia/Tallinn
    Posts
    56
    Thanks
    9
    Thanked 2 Times in 2 Posts

    Default Won't install on localhost

    I was going to make local installation to test hotaru but hotaru just won't install constantly complaining about cache folder not writtable:

    unpacked into /var/www/hotaru-1-4-2
    stat /var/www/hotaru-1-4-2/cache
    File: `/var/www/hotaru-1-4-2/cache'
    Size: 4096 Blocks: 8 IO Block: 4096 directory
    Device: fd01h/64769d Inode: 804563 Links: 2
    Access: (0777/drwxrwxrwx) Uid: ( 0/ root) Gid: ( 0/ root)
    Context: system_ubject_r:httpd_sys_content_t:s0

    apache error_log:
    PHP Warning: mkdir(): Permission denied in /var/www/hotaru-1-4-2/install/index.php on line 583, referer: http://localhost/install/index.php?d...E&csrf=&step=2
    PHP Warning: mkdir(): Permission denied in /var/www/hotaru-1-4-2/install/index.php on line 583, referer: http://localhost/install/index.php?d...E&csrf=&step=2
    PHP Warning: mkdir(): Permission denied in /var/www/hotaru-1-4-2/install/index.php on line 583, referer: http://localhost/install/index.php?d...E&csrf=&step=2
    PHP Warning: mkdir(): Permission denied in /var/www/hotaru-1-4-2/install/index.php on line 583, referer: http://localhost/install/index.php?d...E&csrf=&step=2
    PHP Warning: mkdir(): Permission denied in /var/www/hotaru-1-4-2/install/index.php on line 583, referer: http://localhost/install/index.php?d...E&csrf=&step=2
    PHP Warning: mkdir(): Permission denied in /var/www/hotaru-1-4-2/install/index.php on line 583, referer: http://localhost/install/index.php?d...E&csrf=&step=2
    PHP Warning: fopen(/var/www/hotaru-1-4-2/install/../cache/smartloader_cache.php): failed to open stream: Permission denied in /var/www/hotaru-1-4-2/libs/extensions/SmartLoader/smartloader.class.php on line 265, referer: http://localhost/install/index.php?d...E&csrf=&step=2

    This is so frustrating, no selinux alerts of whatoever, admit I blamed it first, it just won't go nowhere and cache permissions being 0777
    Last edited by romancos; 01-13-2012 at 11:27 PM.

  2. #2
    Senior Member
    Join Date
    Jun 2011
    Location
    Thailand
    Posts
    294
    Thanks
    0
    Thanked 69 Times in 63 Posts

    Default

    Maybe your php is in safe mode? Check from php.ini that safe_mode = Off

  3. #3
    Member
    Join Date
    Dec 2011
    Location
    Estonia/Tallinn
    Posts
    56
    Thanks
    9
    Thanked 2 Times in 2 Posts

    Default

    no it is not, that is really driving me crazy

  4. #4
    Senior Member
    Join Date
    Jun 2011
    Location
    Thailand
    Posts
    294
    Thanks
    0
    Thanked 69 Times in 63 Posts

    Default

    As the referer in the warnings does not include the subdirectory hotaru-1-4-2 maybe you are using the wrong installation path. This is wrong: http://localhost/install/install.php and this is right:

    http://localhost/hotaru-1-4-2/install/install.php

  5. #5
    Member
    Join Date
    Dec 2011
    Location
    Estonia/Tallinn
    Posts
    56
    Thanks
    9
    Thanked 2 Times in 2 Posts

    Default

    no, the server root is set to /var/www/hotaru-1-4-2 so localhost/install opens installation page, it sets up database but just can't write anything to cache directory, and I'm out of ideas...

    install/index.php line 583 is:

    mkdir(CACHE . $dir);


    I'd just made install script print what it was doing and here is:

    checking where dir exists at /var/www/hotaru-1-4-2/install/../cache/debug_logs/
    trying to create /var/www/hotaru-1-4-2/install/../cache/debug_logs/
    checking where dir exists at /var/www/hotaru-1-4-2/install/../cache/db_cache/
    trying to create /var/www/hotaru-1-4-2/install/../cache/db_cache/
    checking where dir exists at /var/www/hotaru-1-4-2/install/../cache/css_js_cache/
    trying to create /var/www/hotaru-1-4-2/install/../cache/css_js_cache/
    checking where dir exists at /var/www/hotaru-1-4-2/install/../cache/html_cache/
    trying to create /var/www/hotaru-1-4-2/install/../cache/html_cache/
    checking where dir exists at /var/www/hotaru-1-4-2/install/../cache/rss_cache/
    trying to create /var/www/hotaru-1-4-2/install/../cache/rss_cache/
    checking where dir exists at /var/www/hotaru-1-4-2/install/../cache/lang_cache/
    trying to create /var/www/hotaru-1-4-2/install/../cache/lang_cache/
    Can not write to the cache folder. You may need to change the permissions to this folder and files within it, before Hotaru can start.


    so I created test.php to try tocreate test subdir to /var/www/hotaru-1-4-2/cache and with the same Permission denied error. Normally I'd blame selinux, but it would complain in case of violation and selinux is silent as grave too... Any ideas.

    PHP 5.3.8 safe_mode = Off; apache 2.2.21; linux fedora 16 x86_64
    Last edited by romancos; 01-14-2012 at 01:40 PM.

  6. #6
    Member
    Join Date
    Dec 2011
    Location
    Estonia/Tallinn
    Posts
    56
    Thanks
    9
    Thanked 2 Times in 2 Posts

    Default

    Well, I had solved it. My initial suspect - selinux was guilty of this headache. For some readons crucial things for apache on fedora16 were disabled. You man need to run getsebool to find out your selinux settings for apache

    sudo getsebool -a | grep httpd

    I have following option on (since it's my design box and not available on the internet, I'm not worried about security, I have these set on:

    allow_httpd_anon_write --> on
    allow_httpd_sys_script_anon_write --> on
    httpd_can_sendmail --> on
    httpd_unified --> on
    httpd_builtin_scripting --> on

    execute

    setsebool httpd_option on|off

    to turn on or off some options. What I don't understand is why selinux didn't sent alerts as usual. Some weird policy update perhaps.

  7. #7
    Senior Member
    Join Date
    Jun 2011
    Location
    Thailand
    Posts
    294
    Thanks
    0
    Thanked 69 Times in 63 Posts

    Default

    trying to create /var/www/hotaru-1-4-2/install/../cache/debug_logs/
    There is something wrong here. Hotaru should try to create cache folder under root, not under /install. And what about those /../'s there? You are trying to show the root relatively with ../ and at the same time using absolute paths. How is that so? I think you have a path setting problem.

    BTW, can you install another software, e.g. Wordpress?

    Edit: Ok, at the same time you wrote that you solved it.
    Last edited by PuckRobin; 01-14-2012 at 03:32 PM.

  8. #8
    Member
    Join Date
    Dec 2011
    Location
    Estonia/Tallinn
    Posts
    56
    Thanks
    9
    Thanked 2 Times in 2 Posts

    Default

    /../ is step out of install into cache/_cache_dirs/ this is all correct. Problem was with linux fedora16 selinux, disalloving apache to write anything into cache folder, even though its permissions were 0777.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Replies: 12
    Last Post: 08-30-2011, 07:18 AM
  2. Error on step 4 of installation on localhost
    By feliceconfuso in forum Installation and Upgrading
    Replies: 2
    Last Post: 12-03-2010, 11:42 AM
  3. Installing Hotaru on Powweb- localhost alternative
    By mneodor87 in forum How-To and Troubleshooting
    Replies: 1
    Last Post: 11-04-2010, 06:11 AM
  4. Error on step 4 of installation on localhost
    By emarza975 in forum Installation and Upgrading
    Replies: 2
    Last Post: 08-13-2010, 01:22 PM
  5. Undefined variable Errors on localhost
    By nothingman in forum How-To and Troubleshooting
    Replies: 7
    Last Post: 12-05-2009, 04:15 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •