File owner apache or directadmin

faysoft

Verified User
Joined
Oct 13, 2012
Messages
10
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
 
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.
 
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/showthread.php?t=37467&page=1
 
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
 
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
 
./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
 
No i m root

i m login by admin and admin pass
but i cant change configuration files :(
 
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
 
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
 
Back
Top