Please disregard the 'View article...' shown at the bottom of many posts as this is the result of restoring old forum posts from a backup.

File ownership question

I recently agreed to take over a site that currently a static HTML site. Of course I want to run Exponent on it. I have only FTP and CPanel access, no SSH.

When I tried to install it gave the following errors:




File and Directory Permission Tests
framework/conf/config.phpNot Readable / Writable
framework/conf/profiles/Not Readable / Writable
files/Not Readable / Writable
files/uploads/Not Readable / Writable
files/avatars/Not Readable / Writable
install/Not Readable / Writable
tmp/Not Readable / Writable
tmp/cacheNot Readable / Writable
tmp/cssNot Readable / Writable
tmp/extensionuploadsNot Readable / Writable
tmp/img_cacheNot Readable / Writable
tmp/minifyNot Readable / Writable
tmp/pixidouNot Readable / Writable
tmp/rsscacheNot Readable / Writable
tmp/views_cNot Readable / Writable
Other Tests
Database BackendSupported
GD Graphics Library 2.0+bundled (2.0.34 compatible)
PHP 5.2.1+5.2.17
ZLib SupportPassed
cURL Library SupportPassed
FileInfo SupportNo FileInfo Support
File Upload Supportphp.ini '"post_max_size' and 'upload_max_filesize' don' match: 100M
XML (Expat) Library SupportPassed
Safe Mode Not EnabledPassed
Open BaseDir Not EnabledFailed
File Uploads EnabledFailed
Temporary File CreationPassed



I have confirmed that the permissions are 755 for folders and 644 for files. I also checked with the sys admin and he confirmed that Apache is running as the user "nobody". On all my other sites that I'm successfully running Exponent, Apache runs as my user that uploaded the files via ftp. So is there any way to make Exponent work on this host or does the organization need to change hosts?

Statistics: Posted by BJKline

Comments

  • Generally, the permissions tests perform an 'is_writable' on Linux servers and a work-around on windows servers to determine if we have read/write access to the file/folder. I would suspect the user/group assigned to the folders/files is not the same as the web server? In the permission, the first is the perm for the user, the second for the group, and the third for all users. I don't know if opening up the perms to 775/664 would help?

    It would also appear the php.ini is also too restrictive since it won't allow file uploads, the two file upload size parameters don't match, and Open BaseDir is NOT Enabled (FileInfo support is optional)...also php v5.2.17 is pretty old since now v5.3.x is being deprecated.

    Statistics: Posted by dleffler
  • Changing permissions to 775 and 664 didn't help. The files are owned by my ftp user and Apache is running as the user named nobody.

    Statistics: Posted by BJKline
  • Sounds like the owner is NOT 'nobody' and also the php.ini settings would prevent you from running Exp (unless they can change them). However, here is a script you could place into the empty root folder, then browse to it which should create the appropriate files/folders with the correct permissions...then you could extract, etc... the Exp package into the root folder.


    Code:
    <?php
    // prep_exp.php
    $file = 'framework/conf/config.php';
    $folders = array(
    'framework/conf/profiles/',
    'files/',
    'files/uploads/',
    'files/avatars/',
    'install/',
    'tmp/',
    'tmp/cache',
    'tmp/css',
    'tmp/extensionuploads',
    'tmp/img_cache',
    'tmp/minify',
    'tmp/pixidou',
    'tmp/rsscache',
    'tmp/views_c',
    );

    touch($file);
    chmod($file,0x644);
    // chown($file,'nobody');
    foreach ($folders as $folder) {
    mkdir($folder, 0755, true);
    // chown($folder,'nobody');
    }
    ?>

    Statistics: Posted by dleffler
  • I tried that script and it made no difference. I doubt the sys admin would change the php.ini settings. His suggestion is make Exp work in the current setup or move to a new host. So I tried out a new host tonight (DreamHost) and it worked flawlessly (even git works like its supposed to!!) Since the organization is a non-profit and DreamHost offers free hosting for non-profits, I'm going to suggest changing hosts. The only downside is waiting for the DNS changes to propagate.

    Statistics: Posted by BJKline
  • I am considering changing my for-profit sites to Dreamhost as well. Can I host multiple domains from one Dreamhost account or do I need a separate account for each domain?

    Statistics: Posted by BJKline
  • Great! I'm a Dreamhost non-profit guy myself. I like the selection of PHP versions from the control panel (5.2, 5.3, or 5.4), custom php.ini settings (.php/5.4/phprc or full ini .php/5.4/php.ini) http://wiki.dreamhost.com/PHP.ini and ssh. They also have the virtual url to get things started immediately (newdomain.dreamhosters.com) http://wiki.dreamhost.com/DNS_-_Viewing_site_before_DNS_change

    Statistics: Posted by dleffler
  • Though I've not done it, I believe you can host unlimited domains on a single account. http://wiki.dreamhost.com/One_User_Per_Domain_Policy

    Statistics: Posted by dleffler
  • I recently agreed to take over a site that currently a static HTML site. Of course I want to run Exponent on it. I have only FTP and CPanel access, no SSH.

    When I tried to install it gave the following errors:



    File and Directory Permission Tests
    framework/conf/config.php Not Readable / Writable
    framework/conf/profiles/ Not Readable / Writable
    files/ Not Readable / Writable
    files/uploads/ Not Readable / Writable
    files/avatars/ Not Readable / Writable
    install/ Not Readable / Writable
    tmp/ Not Readable / Writable
    tmp/cache Not Readable / Writable
    tmp/css Not Readable / Writable
    tmp/extensionuploads Not Readable / Writable
    tmp/img_cache Not Readable / Writable
    tmp/minify Not Readable / Writable
    tmp/pixidou Not Readable / Writable
    tmp/rsscache Not Readable / Writable
    tmp/views_c Not Readable / Writable
    Other Tests
    Database Backend Supported
    GD Graphics Library 2.0+ bundled (2.0.34 compatible)
    PHP 5.2.1+ 5.2.17
    ZLib Support Passed
    cURL Library Support Passed
    FileInfo Support No FileInfo Support
    File Upload Support php.ini '"post_max_size' and 'upload_max_filesize' don' match: 100M
    XML (Expat) Library Support Passed
    Safe Mode Not Enabled Passed
    Open BaseDir Not Enabled Failed
    File Uploads Enabled Failed
    Temporary File Creation Passed


    I have confirmed that the permissions are 755 for folders and 644 for files. I also checked with the sys admin and he confirmed that Apache is running as the user "nobody". On all my other sites that I'm successfully running Exponent, Apache runs as my user that uploaded the files via ftp. So is there any way to make Exponent work on this host or does the organization need to change hosts?


    View article...
  • I recently agreed to take over a site that currently a static HTML site. Of course I want to run Exponent on it. I have only FTP and CPanel access, no SSH.

    When I tried to install it gave the following errors:



    File and Directory Permission Tests
    framework/conf/config.php Not Readable / Writable
    framework/conf/profiles/ Not Readable / Writable
    files/ Not Readable / Writable
    files/uploads/ Not Readable / Writable
    files/avatars/ Not Readable / Writable
    install/ Not Readable / Writable
    tmp/ Not Readable / Writable
    tmp/cache Not Readable / Writable
    tmp/css Not Readable / Writable
    tmp/extensionuploads Not Readable / Writable
    tmp/img_cache Not Readable / Writable
    tmp/minify Not Readable / Writable
    tmp/pixidou Not Readable / Writable
    tmp/rsscache Not Readable / Writable
    tmp/views_c Not Readable / Writable
    Other Tests
    Database Backend Supported
    GD Graphics Library 2.0+ bundled (2.0.34 compatible)
    PHP 5.2.1+ 5.2.17
    ZLib Support Passed
    cURL Library Support Passed
    FileInfo Support No FileInfo Support
    File Upload Support php.ini '"post_max_size' and 'upload_max_filesize' don' match: 100M
    XML (Expat) Library Support Passed
    Safe Mode Not Enabled Passed
    Open BaseDir Not Enabled Failed
    File Uploads Enabled Failed
    Temporary File Creation Passed


    I have confirmed that the permissions are 755 for folders and 644 for files. I also checked with the sys admin and he confirmed that Apache is running as the user "nobody". On all my other sites that I'm successfully running Exponent, Apache runs as my user that uploaded the files via ftp. So is there any way to make Exponent work on this host or does the organization need to change hosts?


    View article...
  • I recently agreed to take over a site that currently a static HTML site. Of course I want to run Exponent on it. I have only FTP and CPanel access, no SSH.

    When I tried to install it gave the following errors:



    File and Directory Permission Tests
    framework/conf/config.php Not Readable / Writable
    framework/conf/profiles/ Not Readable / Writable
    files/ Not Readable / Writable
    files/uploads/ Not Readable / Writable
    files/avatars/ Not Readable / Writable
    install/ Not Readable / Writable
    tmp/ Not Readable / Writable
    tmp/cache Not Readable / Writable
    tmp/css Not Readable / Writable
    tmp/extensionuploads Not Readable / Writable
    tmp/img_cache Not Readable / Writable
    tmp/minify Not Readable / Writable
    tmp/pixidou Not Readable / Writable
    tmp/rsscache Not Readable / Writable
    tmp/views_c Not Readable / Writable
    Other Tests
    Database Backend Supported
    GD Graphics Library 2.0+ bundled (2.0.34 compatible)
    PHP 5.2.1+ 5.2.17
    ZLib Support Passed
    cURL Library Support Passed
    FileInfo Support No FileInfo Support
    File Upload Support php.ini '"post_max_size' and 'upload_max_filesize' don' match: 100M
    XML (Expat) Library Support Passed
    Safe Mode Not Enabled Passed
    Open BaseDir Not Enabled Failed
    File Uploads Enabled Failed
    Temporary File Creation Passed


    I have confirmed that the permissions are 755 for folders and 644 for files. I also checked with the sys admin and he confirmed that Apache is running as the user "nobody". On all my other sites that I'm successfully running Exponent, Apache runs as my user that uploaded the files via ftp. So is there any way to make Exponent work on this host or does the organization need to change hosts?


    View article...
  • I recently agreed to take over a site that currently a static HTML site. Of course I want to run Exponent on it. I have only FTP and CPanel access, no SSH.

    When I tried to install it gave the following errors:



    File and Directory Permission Tests
    framework/conf/config.php Not Readable / Writable
    framework/conf/profiles/ Not Readable / Writable
    files/ Not Readable / Writable
    files/uploads/ Not Readable / Writable
    files/avatars/ Not Readable / Writable
    install/ Not Readable / Writable
    tmp/ Not Readable / Writable
    tmp/cache Not Readable / Writable
    tmp/css Not Readable / Writable
    tmp/extensionuploads Not Readable / Writable
    tmp/img_cache Not Readable / Writable
    tmp/minify Not Readable / Writable
    tmp/pixidou Not Readable / Writable
    tmp/rsscache Not Readable / Writable
    tmp/views_c Not Readable / Writable
    Other Tests
    Database Backend Supported
    GD Graphics Library 2.0+ bundled (2.0.34 compatible)
    PHP 5.2.1+ 5.2.17
    ZLib Support Passed
    cURL Library Support Passed
    FileInfo Support No FileInfo Support
    File Upload Support php.ini '"post_max_size' and 'upload_max_filesize' don' match: 100M
    XML (Expat) Library Support Passed
    Safe Mode Not Enabled Passed
    Open BaseDir Not Enabled Failed
    File Uploads Enabled Failed
    Temporary File Creation Passed


    I have confirmed that the permissions are 755 for folders and 644 for files. I also checked with the sys admin and he confirmed that Apache is running as the user "nobody". On all my other sites that I'm successfully running Exponent, Apache runs as my user that uploaded the files via ftp. So is there any way to make Exponent work on this host or does the organization need to change hosts?


    View article...
  • I recently agreed to take over a site that currently a static HTML site. Of course I want to run Exponent on it. I have only FTP and CPanel access, no SSH.

    When I tried to install it gave the following errors:



    File and Directory Permission Tests
    framework/conf/config.php Not Readable / Writable
    framework/conf/profiles/ Not Readable / Writable
    files/ Not Readable / Writable
    files/uploads/ Not Readable / Writable
    files/avatars/ Not Readable / Writable
    install/ Not Readable / Writable
    tmp/ Not Readable / Writable
    tmp/cache Not Readable / Writable
    tmp/css Not Readable / Writable
    tmp/extensionuploads Not Readable / Writable
    tmp/img_cache Not Readable / Writable
    tmp/minify Not Readable / Writable
    tmp/pixidou Not Readable / Writable
    tmp/rsscache Not Readable / Writable
    tmp/views_c Not Readable / Writable
    Other Tests
    Database Backend Supported
    GD Graphics Library 2.0+ bundled (2.0.34 compatible)
    PHP 5.2.1+ 5.2.17
    ZLib Support Passed
    cURL Library Support Passed
    FileInfo Support No FileInfo Support
    File Upload Support php.ini '"post_max_size' and 'upload_max_filesize' don' match: 100M
    XML (Expat) Library Support Passed
    Safe Mode Not Enabled Passed
    Open BaseDir Not Enabled Failed
    File Uploads Enabled Failed
    Temporary File Creation Passed


    I have confirmed that the permissions are 755 for folders and 644 for files. I also checked with the sys admin and he confirmed that Apache is running as the user "nobody". On all my other sites that I'm successfully running Exponent, Apache runs as my user that uploaded the files via ftp. So is there any way to make Exponent work on this host or does the organization need to change hosts?


    View article...
Sign In or Register to comment.