Results 1 to 15 of 15

Thread: File owner apache or directadmin

  1. #1
    Join Date
    Oct 2012
    Posts
    10

    File owner apache or directadmin

    Hello, first of all my english not perfect!

    I m using joomla. when i was using cpanel not problem in joomla file/folder permissions.
    Now i m using directadmin
    file permissions 755 but folders unwritable in joomla

    what can i do?
    can i use chown? how? i dont know using.
    if chown command not enough what can i do?
    thanks

  2. #2
    Join Date
    Jul 2008
    Location
    Maastricht
    Posts
    2,839
    First try to see what way the system is running.
    Is it running php with cgi or php with cli. Is suphp installed or mod_ruid?
    This can be of influence of permissions. It has nothing to do with Cpanel or Directadmin but with how the server Cpanel or Directadmin is running on, was setup.

    Probably the Cpanel server was running with SuPhp so 755 would be enough.
    Good chance that your DA server is now running in default mode, which does in fact nothing special.

    In that case you have to change permissions of the directory's which should be writable to 777 with the "chmod 777 foldername" command.
    Do NOT do this on every folder or file, only those on which it's necessary.

    However.... I just had a very quick look at the Joomla faq and there it says no 777 permission is needed.

    So you might better check if the folder permissions of the useraccount is oke.
    Normally all files and folders under the public_html directory of the user should be owned by the user.
    Suppose the useraccountname is testuser, then go to the users public_html directory and you could do something like the following:
    Code:
    chown testuser:testuser * -R
    find . -type f -exec chmod 644 {} \;
    find . -type d -exec chmod 755 {} \;
    Which makes all directory's 755 and all files 644.

    The Joomla faq says it like this
    Code:
    find . -type f -exec chmod 644 {} \;
    find . -type d -exec chmod 755 {} \;
    chmod 707 images
    chmod 707 images/stories
    chown apache:apache cache
    However, I would only use the last line like that if you're sure that apache/php is not running under the username but under apache.
    Greetings, Richard.

  3. #3
    Join Date
    Apr 2007
    Posts
    243
    Quote Originally Posted by faysoft View Post
    Hello, first of all my english not perfect!

    I m using joomla. when i was using cpanel not problem in joomla file/folder permissions.
    Now i m using directadmin
    file permissions 755 but folders unwritable in joomla

    what can i do?
    can i use chown? how? i dont know using.
    if chown command not enough what can i do?
    thanks
    You are probably running on a default install. Install mod_ruid2 to avoid premission problems, you never ever have to chmod maps or files anymore.

    Take your time and read this http://www.directadmin.com/forum/sho...t=37467&page=1

  4. #4
    Join Date
    Oct 2012
    Posts
    10

    Thanks for helps

    I think i mm not using suphp and mod_ruid
    i need install suphp.
    but i m afraid how can i install, or i dont want to make mistake.

    what is the best and fast way for install suphp?

    thanks again

  5. #5
    Join Date
    Apr 2005
    Location
    GMT +7.00
    Posts
    11,023
    With regards, Alex.

    Professional Server Management for web hosting companies and individuals
    Hourly Support, Disaster Recovery, Server Hardening, Monthly Subscription
    Directadmin installation and optimization

    Click here if you need a Linux Admin

  6. #6
    Join Date
    Oct 2004
    Location
    London, UK
    Posts
    6,641
    I would suggest mod_ruid2 instead of suphp, if you have patience enough, soon CB2.0 will be ready and avaible, and you will be able to install mod_ruid2 with that.

    Regards
    SeLLeRoNe - Andrea Iannucci
    DevOps Engineer - System Administrator
    If you need my support write me an E-Mail to Support@CrazyNetwork.it

  7. #7
    Join Date
    Oct 2012
    Posts
    10

    I cant install suphp

    suphp install in http://directadmin.com/forum/showthread.php?t=29387
    but i cant understand clearly

    please
    i want to learn step by step how can i install suphp

    thx...

  8. #8
    Join Date
    Oct 2012
    Posts
    10
    ./build suphp command

    Code:
    touch: cannot touch `/usr/local/directadmin/custombuild/.custombuild': Permission denied
    Found /usr/local/directadmin/custombuild/suphp-0.7.1.tar.gz
    Extracting ...
    tar: suphp-0.7.1: Cannot mkdir: Permission denied
    tar: suphp-0.7.1/NEWS: Cannot open: No such file or directory
    tar: suphp-0.7.1/INSTALL: Cannot open: No such file or directory
    tar: suphp-0.7.1/Makefile.in: Cannot open: No such file or directory
    tar: suphp-0.7.1/ChangeLog: Cannot open: No such file or directory
    tar: suphp-0.7.1/COPYING: Cannot open: No such file or directory
    tar: suphp-0.7.1/aclocal.m4: Cannot open: No such file or directory
    tar: suphp-0.7.1/README: Cannot open: No such file or directory
    tar: suphp-0.7.1/configure: Cannot open: No such file or directory
    tar: suphp-0.7.1/Makefile.am: Cannot open: No such file or directory
    tar: suphp-0.7.1/src: Cannot mkdir: No such file or directory
    tar: suphp-0.7.1/src/Util.hpp: Cannot open: No such file or directory
    tar: suphp-0.7.1/src/PointerException.hpp: Cannot open: No such file or directory
    tar: suphp-0.7.1/src/File.cpp: Cannot open: No such file or directory
    tar: suphp-0.7.1/src/SmartPtr.hpp: Cannot open: No such file or directory
    tar: suphp-0.7.1/src/Configuration.cpp: Cannot open: No such file or directory
    tar: suphp-0.7.1/src/SoftException.cpp: Cannot open: No such file or directory
    tar: suphp-0.7.1/src/LookupException.cpp: Cannot open: No such file or directory
    tar: suphp-0.7.1/src/KeyNotFoundException.cpp: Cannot open: No such file or directory
    tar: suphp-0.7.1/src/GroupInfo.hpp: Cannot open: No such file or directory
    tar: suphp-0.7.1/src/Makefile.in: Cannot open: No such file or directory
    tar: suphp-0.7.1/src/Application.cpp: Cannot open: No such file or directory
    tar: suphp-0.7.1/src/Environment.cpp: Cannot open: No such file or directory
    tar: suphp-0.7.1/src/IniSection.hpp: Cannot open: No such file or directory
    tar: suphp-0.7.1/src/CommandLine.cpp: Cannot open: No such file or directory
    tar: suphp-0.7.1/src/Logger.hpp: Cannot open: No such file or directory
    tar: suphp-0.7.1/src/OutOfRangeException.cpp: Cannot open: No such file or directory
    tar: suphp-0.7.1/src/IniSection.cpp: Cannot open: No such file or directory
    tar: suphp-0.7.1/src/Logger.cpp: Cannot open: No such file or directory
    tar: suphp-0.7.1/src/SystemException.hpp: Cannot open: No such file or directory
    tar: suphp-0.7.1/src/Exception.cpp: Cannot open: No such file or directory
    tar: suphp-0.7.1/src/SystemException.cpp: Cannot open: No such file or directory
    tar: suphp-0.7.1/src/apache: Cannot mkdir: No such file or directory
    tar: suphp-0.7.1/src/apache/Makefile.in: Cannot open: No such file or directory
    tar: suphp-0.7.1/src/apache/Makefile.am: Cannot open: No such file or directory
    tar: suphp-0.7.1/src/apache/mod_suphp.c: Cannot open: No such file or directory
    tar: suphp-0.7.1/src/OutOfRangeException.hpp: Cannot open: No such file or directory
    tar: suphp-0.7.1/src/apache2: Cannot mkdir: No such file or directory
    tar: suphp-0.7.1/src/apache2/Makefile.in: Cannot open: No such file or directory
    tar: suphp-0.7.1/src/apache2/Makefile.am: Cannot open: No such file or directory
    tar: suphp-0.7.1/src/apache2/mod_suphp.c: Cannot open: No such file or directory
    tar: suphp-0.7.1/src/CommandLine.hpp: Cannot open: No such file or directory
    tar: suphp-0.7.1/src/UserInfo.hpp: Cannot open: No such file or directory
    tar: suphp-0.7.1/src/Exception.hpp: Cannot open: No such file or directory
    tar: suphp-0.7.1/src/Makefile.am: Cannot open: No such file or directory
    tar: suphp-0.7.1/src/SecurityException.hpp: Cannot open: No such file or directory
    tar: suphp-0.7.1/src/SecurityException.cpp: Cannot open: No such file or directory
    tar: suphp-0.7.1/src/Application.hpp: Cannot open: No such file or directory
    tar: suphp-0.7.1/src/API.cpp: Cannot open: No such file or directory
    tar: suphp-0.7.1/src/PointerException.cpp: Cannot open: No such file or directory
    tar: suphp-0.7.1/src/API.hpp: Cannot open: No such file or directory
    tar: suphp-0.7.1/src/API_Linux_Logger.hpp: Cannot open: No such file or directory
    tar: suphp-0.7.1/src/Util.cpp: Cannot open: No such file or directory
    tar: suphp-0.7.1/src/UserInfo.cpp: Cannot open: No such file or directory
    tar: suphp-0.7.1/src/IniFile.cpp: Cannot open: No such file or directory
    tar: suphp-0.7.1/src/File.hpp: Cannot open: No such file or directory
    tar: suphp-0.7.1/src/LookupException.hpp: Cannot open: No such file or directory
    tar: suphp-0.7.1/src/PathMatcher.cpp: Cannot open: No such file or directory
    tar: suphp-0.7.1/src/API_Linux.hpp: Cannot open: No such file or directory
    tar: suphp-0.7.1/src/API_Helper.hpp: Cannot open: No such file or directory
    tar: suphp-0.7.1/src/IniFile.hpp: Cannot open: No such file or directory
    tar: suphp-0.7.1/src/GroupInfo.cpp: Cannot open: No such file or directory
    tar: suphp-0.7.1/src/API_Linux.cpp: Cannot open: No such file or directory
    tar: suphp-0.7.1/src/ParsingException.cpp: Cannot open: No such file or directory
    tar: suphp-0.7.1/src/IOException.hpp: Cannot open: No such file or directory
    tar: suphp-0.7.1/src/PathMatcher.hpp: Cannot open: No such file or directory
    tar: suphp-0.7.1/src/KeyNotFoundException.hpp: Cannot open: No such file or directory
    tar: suphp-0.7.1/src/IOException.cpp: Cannot open: No such file or directory
    tar: suphp-0.7.1/src/config.h.in: Cannot open: No such file or directory
    tar: suphp-0.7.1/src/API_Helper.cpp: Cannot open: No such file or directory
    tar: suphp-0.7.1/src/API_Linux_Logger.cpp: Cannot open: No such file or directory
    tar: suphp-0.7.1/src/SoftException.hpp: Cannot open: No such file or directory
    tar: suphp-0.7.1/src/Environment.hpp: Cannot open: No such file or directory
    tar: suphp-0.7.1/src/Configuration.hpp: Cannot open: No such file or directory
    tar: suphp-0.7.1/src/ParsingException.hpp: Cannot open: No such file or directory
    tar: suphp-0.7.1/doc: Cannot mkdir: No such file or directory
    tar: suphp-0.7.1/doc/suphp.conf-example: Cannot open: No such file or directory
    tar: suphp-0.7.1/doc/INSTALL: Cannot open: No such file or directory
    tar: suphp-0.7.1/doc/LICENSE: Cannot open: No such file or directory
    tar: suphp-0.7.1/doc/README: Cannot open: No such file or directory
    tar: suphp-0.7.1/doc/CONFIG: Cannot open: No such file or directory
    tar: suphp-0.7.1/doc/apache: Cannot mkdir: No such file or directory
    tar: suphp-0.7.1/doc/apache/INSTALL: Cannot open: No such file or directory
    tar: suphp-0.7.1/doc/apache/README: Cannot open: No such file or directory
    tar: suphp-0.7.1/doc/apache/CONFIG: Cannot open: No such file or directory
    tar: suphp-0.7.1/config: Cannot mkdir: No such file or directory
    tar: suphp-0.7.1/config/ltmain.sh: Cannot open: No such file or directory
    tar: suphp-0.7.1/config/depcomp: Cannot open: No such file or directory
    tar: suphp-0.7.1/config/config.sub: Cannot open: No such file or directory
    tar: suphp-0.7.1/config/config.guess: Cannot open: No such file or directory
    tar: suphp-0.7.1/config/missing: Cannot open: No such file or directory
    tar: suphp-0.7.1/config/install-sh: Cannot open: No such file or directory
    tar: suphp-0.7.1/AUTHORS: Cannot open: No such file or directory
    tar: suphp-0.7.1/acinclude.m4: Cannot open: No such file or directory
    tar: suphp-0.7.1/configure.ac: Cannot open: No such file or directory
    tar: Error exit delayed from previous errors
    Done.
    mkdir: cannot create directory `/usr/local/suphp': Permission denied
    ./build: line 4473: cd: suphp-0.7.1: No such file or directory
    Configuring suphp-0.7.1...
    /usr/local/directadmin/custombuild/configure/suphp/configure.suphp: line 3: ./configure: is a directory
    
    *** There was an error while trying to configure suPHP. Check the configure/suphp/configure.suphp file

  9. #9
    Join Date
    Oct 2004
    Location
    London, UK
    Posts
    6,641
    You should run as root.

    Regards
    SeLLeRoNe - Andrea Iannucci
    DevOps Engineer - System Administrator
    If you need my support write me an E-Mail to Support@CrazyNetwork.it

  10. #10
    Join Date
    Oct 2012
    Posts
    10

    No i m root

    i m login by admin and admin pass
    but i cant change configuration files

  11. #11
    Join Date
    Oct 2004
    Location
    London, UK
    Posts
    6,641
    I did say root, not admin.

    Regards
    SeLLeRoNe - Andrea Iannucci
    DevOps Engineer - System Administrator
    If you need my support write me an E-Mail to Support@CrazyNetwork.it

  12. #12
    Join Date
    Oct 2012
    Posts
    10
    Oh sorry

    could you write step by step
    how can i install su php?

  13. #13
    Join Date
    Oct 2004
    Location
    London, UK
    Posts
    6,641
    I did never do that, actually i should be wrong, but i think you need to edit your options.conf in /usr/local/directadmin/custombuild
    to set php to cgi instead of cli, once done i think you would need to compile php and suphp

    Regards
    SeLLeRoNe - Andrea Iannucci
    DevOps Engineer - System Administrator
    If you need my support write me an E-Mail to Support@CrazyNetwork.it

  14. #14
    Join Date
    Apr 2005
    Location
    GMT +7.00
    Posts
    11,023
    Quote Originally Posted by faysoft View Post
    how can i install su php?
    Search the forums, as there are already guides on how to do that.
    With regards, Alex.

    Professional Server Management for web hosting companies and individuals
    Hourly Support, Disaster Recovery, Server Hardening, Monthly Subscription
    Directadmin installation and optimization

    Click here if you need a Linux Admin

  15. #15
    Join Date
    Apr 2009
    Posts
    1,959
    Quote Originally Posted by faysoft View Post
    could you write step by step
    how can i install su php?
    User SeLLeRoNe is correct. There is nothing to it, do it with custombuild (not custombuild 2.0):

    First change the following opitons in this file /usr/local/directadmin/custombuild/options.conf (search for them and change them to this):

    Code:
    php4_cli=no
    php4_cgi=no
    php5_cli=no
    php5_cgi=yes
    Then run this in putty as root user:

    Code:
    cd /usr/local/directadmin/custombuild
    ./build update
    ./build php n
    ./build suphp

Similar Threads

  1. owner (GID) & (UID) was changed to Apache!!
    By WebArts in forum System-Level Technical Discussion
    Replies: 2
    Last Post: 11-24-2011, 03:14 AM
  2. File Owner Change
    By droberts in forum CentOS
    Replies: 4
    Last Post: 01-10-2011, 11:53 AM
  3. File Randomly Changing Owner/Permission?
    By macalpinej in forum General Technical Discussion & Troubleshooting
    Replies: 1
    Last Post: 12-16-2009, 02:50 PM
  4. owner and group permissions/php file upload
    By nhwebgroup in forum Admin-Level Difficulties
    Replies: 3
    Last Post: 02-18-2007, 02:49 AM
  5. Apache owner of files
    By Rick L. in forum General Technical Discussion & Troubleshooting
    Replies: 13
    Last Post: 12-30-2006, 02:15 PM

Posting Permissions

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