Search

Rss Posts

Rss Comments

Login

 

Posts in ‘CMS’

PHPBB3 disable backup in admin

Feb 01

Open
adm/index.php read all »

Joomla 1.5.* AutoInstall

Dec 03

Joomla 1.5.* AutoInstall read all »

joomla debug info -howto

Oct 10

To turn on debug mode do the following:

read all »

charset .htaccess

Aug 27

Open .htaccess
read all »

Dle – how to disable all posts shown on main page

Apr 03

You need just run in database in phpmyadmin

update `dle_post` SET allow_main=0 WHERE 1

and all posts would tot beeeing shoen on main page

How to change chmod for folders and files recursively?

Dec 09

chmod for all sub folders 4770, also for siles 660 …

1
2
find /path -type f -exec chmod 660 {} \;
find /path -type d -exec chmod 4770 {} \;

How to Wget files form FTP to another server recursively

Dec 04

easy
so this code …
wget:
download to ./tmp2 dir
from ftp /foldername dir
20 – dir length from main url

1
wget -r -l20 -P./tmp2 ftp://login:pas@servername/foldername

Chmod commands for install DLE Datalife template engine

Oct 28

Run this commands in putty at root dir (public_html)

chmod g+w ./backup/
chmod 775 ./engine/data/
chmod 775 ./engine/cache/
chmod 775 ./engine/cache/system/
chmod 775 ./engine/forum/cache/
chmod 775 ./engine/forum/cache/system
chmod 775 ./uploads/
chmod 775 ./uploads/files/
chmod 775 ./uploads/fotos/
chmod 775 ./uploads/posts/
chmod 777 ./uploads/posts/thumbs/
chmod 777 ./uploads/thumbs/
chmod 777 ./templates/
chmod 777 ./templates/Default/
 
 
find ./engine/cache/ -exec chmod 775 {} \;
find ./engine/cache/system/ -exec chmod 775 {} \ ;
find ./uploads -type d -exec chmod 777 {} \;
find ./uploads -type f -exec chmod 666 {} \;
 
find ./templates -type d -exec chmod 777 {} \;
find ./templates -type f -exec chmod 666 {} \;
 
 
find ./engine/data -type d -exec chmod 777 {} \;
find ./engine/data -type f -exec chmod 666 {} \;

or use ftp commands
cache

SITE chmod 775 backup
SITE chmod 775 engine/data/
SITE chmod 775 engine/cache/
SITE chmod 775 engine/cache/system/
SITE chmod 775 uploads/
SITE chmod 775 uploads/files/
SITE chmod 775 uploads/fotos/
SITE chmod 775 uploads/posts/
SITE chmod 775 uploads/posts/thumbs/
SITE chmod 775 uploads/thumbs/
SITE chmod 775 templates/
SITE chmod 775 templates/Default/

Chmod for Joomla Installation. Step by step Chmod and Chgrp!

Feb 06

For joomla 1.5

chmod g+w administrator/backups/
chmod g+w administrator/components/
chmod g+w administrator/language/
chmod g+w administrator/language/en-GB/
chmod g+w administrator/language/ru-RU/
chmod g+w administrator/modules/
chmod g+w administrator/templates/
chmod g+w components/
chmod g+w images/
chmod g+w images/banners/
chmod g+w images/stories/
chmod g+w language/
chmod g+w language/en-GB/
chmod g+w language/pdf_fonts/
chmod g+w language/ru-RU/
chmod g+w media/
chmod g+w modules/
chmod g+w plugins/
chmod g+w plugins/content/
chmod g+w plugins/editors/
chmod g+w plugins/editors-xtd/
chmod g+w plugins/search/
chmod g+w plugins/system/
chmod g+w plugins/user/
chmod g+w plugins/xmlrpc/
chmod g+w templates/
chmod g+w administrator/cache/
chmod g+w logs/
chmod g+w cache/
chmod g+w logs/
chmod g+w tmp/
 
chmod g+w administrator/components/com_sh404sef/config	
chmod g+w administrator/components/com_sh404sef/config/config.sef.php	
chmod g+w administrator/components/com_sh404sef	
chmod g+w administrator/components/com_sh404sef/custom.sef.php	
chmod g+w administrator/components/com_sh404sef/logs	
chmod g+w administrator/components/com_sh404sef/security	
chmod g+w components/com_sh404sef/cache
 
find ./cache  -type f  -exec chmod 666 {} \;
find ./cache/  -type d -exec chmod 777 {} \;
find ./administrator/components/com_sh404sef/config  -type f  -exec chmod 666 {} \;
find ./administrator/components/com_sh404sef/logs  -type f -exec  chmod 666 {} \;
find ./administrator/components/com_sh404sef/security  -type f -exec  chmod 666 {} \;
find ./components/com_sh404sef/cache  -type f  -exec chmod 666 {} \;

For joomla 1.0

The main thing that needs to be changed during a Joomla install is the directory permissions. Here is a shot of the install application before fixing the permissions:

administrator/backups Unwriteable
administrator/components Unwriteable
administrator/modules Unwriteable
administrator/templates Unwriteable
cache Unwriteable
components Unwriteable
images Unwriteable
images/banners Unwriteable
images/stories Unwriteable
language Unwriteable
mambots Unwriteable
mambots/content Unwriteable
mambots/editors Unwriteable
mambots/editors-xtd Unwriteable
mambots/search Unwriteable
mambots/system Unwriteable
media Unwriteable
modules Unwriteable
templates Unwriteable

List of chgrp for Apache and chmod commands list to make permissions for the web server when joomla install:

chgrp apache cache
chgrp apache components
chgrp apache images
chgrp apache images/banners
chgrp apache images/stories
chgrp apache language
chgrp apache mambots
chgrp apache mambots/content
chgrp apache mambots/editors
chgrp apache mambots/editors-xtd
chgrp apache mambots/search
chgrp apache mambots/system
chgrp apache media
chgrp apache modules
chgrp apache templates
chmod g+w administrator/backups
chmod g+w administrator/components
chmod g+w administrator/modules
chmod g+w administrator/templates
chmod g+w cache
chmod g+w components
chmod g+w images
chmod g+w images/banners
chmod g+w images/stories
chmod g+w language
chmod g+w mambots
chmod g+w mambots/content
chmod g+w mambots/editors
chmod g+w mambots/editors-xtd
chmod g+w mambots/search
chmod g+w mambots/system
chmod g+w media
chmod g+w modules
chmod g+w templates
chgrp apache administrator/backups
chgrp apache administrator/components
chgrp apache administrator/modules
chgrp apache administrator/templates

Now the installation check looks like this:

administrator/backups Writeable
administrator/components Writeable
administrator/modules Writeable
administrator/templates Writeable
cache Writeable
components Writeable
images Writeable
images/banners Writeable
images/stories Writeable
language Writeable
mambots Writeable
mambots/content Writeable
mambots/editors Writeable
mambots/editors-xtd Writeable
mambots/search Writeable
mambots/system Writeable
media Writeable
modules Writeable
templates Writeable

Note:Chmod Commands:

As shown the general format of the command is

chmod -R/c/f/v [u / g / o / a] [+ / - / =] [rwxXstugo]

here

u : user

g: group

o : others

a : all

+ : give permission

- : take permission away

= : cause the permissions given to be the only permissions of the file

r : read permission

w: write permission

x : execute permission

X: execute only if it is a directory or already has execute permission for some user

s : set user or group ID on execution

t : save program text on swap device

u : the permissions that the user who owns the file has for it

g : the permissions that the owner?s group has for a file

o : the permissions that users not in the owner?s group have for it

(X, s, t, u, g and o are not required for common tasks)

the initial options -R/c/f/v are explained as follows :

-c : Displays names of only those files whose permissions are being changed

( –changes can also be used instead of -c )

-f : Suppresses display of error messages when a file?s permissions cannot be changed

( –silent of –quiet can also be used instead of -f )

-R: Recursively changes the permission of all files in all subdirectories of the directory whose

permissions are being changed

( –recursive can also be used )

-v : Displays results of all permission changes

( –verbose can also be used )

Note: chgrp command

The chgrp command is used to change the group ownership of one or more files or directories. Its general syntax is :

chgrp [-Rcfv] groupname foo.txt

The flags used here are also the same as those in the chmod command. The changes in ownership are applied to the groupname and the filename specified

 
Get Adobe Flash playerPlugin by wpburn.com wordpress themes
32 queries. 0.458 seconds.