Errors after installation 3-8-3

installation had no errors (3-8-3).


errors and warnings occured when I am trying to upload a parse file into design:


     PHP Warning
    mkdir(): No such file or directory
    
    MySource Warning
    Unable to create directory: /
    
    MySource Warning
    Parent Directory "[SYSTEM_ROOT]/data/private/assets/design/107" does not exist [SYS0015]
    
    MySource Notice
    Directory "[SYSTEM_ROOT]/data/private/assets/design/107" doesn't exist or is not writable [FVER0001]
    
    MySource Warning
    Failed checking out latest version of parse file [CORE0158]


similar errors are when I am trying to create a 'standard page'.

How to solve these problems?

Check the permissions on your data/ folder. The webserver must be able to write to that folder heirarchy.

    drwxrwxr-x   12 lukas83 nobody       4096 Jun 13 22:31 ./
    drwxr-x---   12 lukas83 nobody       4096 Jun 12 22:24 ../
    -rwxr-xr-x    1 lukas83 nobody      48467 Jun  5 07:20 CHANGELOG*
    drwxr-xr-x    2 lukas83 nobody       4096 Jun  5 07:22 CVS/
    -rwxr-xr-x    1 lukas83 nobody      17510 Jun  9  2004 LICENCE*
    drwxrwxr-x    3 lukas83 nobody       8192 Jun 14 21:53 cache/
    drwxr-xr-x   13 lukas83 nobody       4096 Jun  5 07:22 core/
    drwxrwx--x    7 lukas83 nobody       4096 Jun 11 21:54 data/
    drwxr-xr-x    4 lukas83 nobody       4096 Jun  5 07:22 docs/
    -rw-r--r--    1 lukas83 nobody       2168 Jun 13 22:21 error_log
    drwxr-xr-x   17 lukas83 nobody       4096 Jun  5 07:22 fudge/
    drwxr-xr-x    3 lukas83 nobody       4096 Jun  5 07:22 install/
    drwxr-xr-x    4 lukas83 nobody       4096 Jun  5 07:22 packages/
    drwxr-xr-x    8 lukas83 nobody       4096 Jun  5 07:22 php_includes/
    drwxr-xr-x    7 lukas83 nobody       4096 Jun  5 07:22 scripts/


apache is on the system as nobody in nobody group

what's wrong? have you got any idea?

after some changes in fudge/general/file_system.inc, to:

    function create_directory($pathname)
    {
    // Check if directory already exists
       if (is_dir($pathname) || empty($pathname)) {
           return true;
       }
    
       // Ensure a file does not already exist with the same name
       if (is_file($pathname)) {
           trigger_error('mkdirr() File exists', E_USER_WARNING);
           return false;
       }
    
       // Crawl up the directory tree
       $next_pathname = substr($pathname, 0, strrpos($pathname, DIRECTORY_SEPARATOR));
       if (create_directory($next_pathname)) {
           if (!file_exists($pathname)) {
               return mkdir($pathname, 0777);
           }
       }
    
       return false;
    
    }//end create_directory()

I have the following:

     PHP Warning
    is_dir(): Stat failed for [SYSTEM_ROOT]/data/private/assets/bodycopy_div/134 (errno=13 - Permission denied)
    
    
    PHP Warning
    is_file(): Stat failed for [SYSTEM_ROOT]/data/private/assets/bodycopy_div/134 (errno=13 - Permission denied)
    
    
    PHP Warning
    mkdir([SYSTEM_ROOT]/data/private/assets/bodycopy_div/134): Permission denied
    
    
    PHP Warning
    is_dir(): Stat failed for [SYSTEM_ROOT]/data/private/assets/bodycopy_div/134 (errno=13 - Permission denied)

[quote]what’s wrong? have you got any idea?
[right][post=“10453”]<{POST_SNAPBACK}>[/post][/right][/quote]


    # cd /path/to/mysource_matrix
    # chown -R nobody:nobody *
    # find . -type d | xargs chmod 2775
    # find . -type f | xargs chmod 664


That's what we use internally to set permissions on the Matrix filesystem. See if that works for you.

[quote]

    # cd /path/to/mysource_matrix
# chown -R nobody:nobody *
# find . -type d | xargs chmod 2775
# find . -type f | xargs chmod 664




That’s what we use internally to set permissions on the Matrix filesystem. See if that works for you.

[right][post=“10459”]<{POST_SNAPBACK}>[/post][/right][/quote]



still have errors:

[quote]PHP Warning

is_dir(): Stat failed for [SYSTEM_ROOT]/data/private/assets/bodycopy_div/135 (errno=13 - Permission denied)



PHP Warning

is_file(): Stat failed for [SYSTEM_ROOT]/data/private/assets/bodycopy_div/135 (errno=13 - Permission denied)



PHP Warning

mkdir([SYSTEM_ROOT]/data/private/assets/bodycopy_div/135): Permission denied



PHP Warning

is_dir(): Stat failed for [SYSTEM_ROOT]/data/private/assets/bodycopy_div/135 (errno=13 - Permission denied)[/quote]



do i have to define $SYSTEM_ROOT (step_01.php) ???



installation is on shared hosting, however all suitable permissions are given…

[quote]installation is on shared hosting, however all suitable permissions are given…
[right][post=“10726”]<{POST_SNAPBACK}>[/post][/right][/quote]



You are probably having open_basedir restriction issues on your shared host. Search the forum for open_basedir and see if any of the previous solutions work for you.

[quote]You are probably having open_basedir restriction issues on your shared host. Search the forum for open_basedir and see if any of the previous solutions work for you.
[right][post=“10727”]<{POST_SNAPBACK}>[/post][/right][/quote]



unfortunately there are no open_basedir restrictions on the server. everything is as described on the forum (looking for open_basedir restriction issues).



have you got any other idea?

What operating system are you using? What uid is Apache running as, and does that UID own the files in the Matrix location? Essentially, you have a permissions issue that you need to resolve: The webserving process needs to be able to write changes to the filesystem, which it currently is unable to do.


If you installed as the "root" user, then all the files are probably still owned by root. You need to chown those files to whichever uid Apache is using (either apache or www-data or nobody, depending on your distribution or Apache installation method).

Apache operates as 'nobody' user. All files and directories
belongs to nobody and have sufficient permissions.

RedHat Enterprise 3.0.

I have no idea any more, I'm afraid.

[quote]I have no idea any more, I’m afraid.
[right][post=“10773”]<{POST_SNAPBACK}>[/post][/right][/quote]



would installing everything again solve the problem? when exactly at installation (before, during or after) do I have to set the permissions during the installation? what other tips could be helpful during installation on shared hosting? I want to try it again, this time successfully…

[quote]would installing everything again solve the problem? when exactly at installation (before, during or after) do I have to set the permissions during the installation? what other tips could be helpful during installation on shared hosting? I want to try it again, this time successfully…
[right][post=“10774”]<{POST_SNAPBACK}>[/post][/right][/quote]



Usually, I run the install as root, and then change permissions once I’m done. I don’t know that reinstalling would help – is it possible to get SSH access to this machine? Perhaps I can take a poke around, see if anything obvious sticks out at me.



Though, you mention you’re on a shared host – if so, you may be using Apache’s suexec module, which requires esoteric permission settings to work properly. You might want to check with your hosting provider if this is the case: in which case, you may need to set more specific permissions in order for Apache to create/delete files and folders.


certainly it is possible. how can I send you the details?

[quote]certainly it is possible. how can I send you the details?
[right][post=“11227”]<{POST_SNAPBACK}>[/post][/right][/quote]



You need to speak to Squiz Sales about arranging some paid support. Once you’ve done that, you can send a request to support@squiz.net with the details and one of our support guys would contact you to get the login information.