Free Web Hosting Forum
(#11 (permalink))
Old
Junior Member
Chris is on a distinguished road
 
Posts: 27
Join Date: Aug 2009
Default 10-19-2009, 10:45 AM

thanks a lot, now all of them are writable
Reply With Quote
Sponsored Links
(#12 (permalink))
Old
KnK KnK is offline
Senior Member
KnK is on a distinguished road
 
Posts: 199
Join Date: Sep 2009
Location: Spain, but orriginally from Reading UK
Default 10-19-2009, 07:30 PM

to chmod files for joomla create a php file coded like below
and upload to you public_html or joomla folder
PHP Code:
<?php

 

// your ftp credentials

$ftp_server='ftp.yoursite.com';

$ftp_user='your00WH name';

$ftp_pass='your ftp password';

 

// where is Joomla installed? (trailing slash required)

$base '/public_html/';

 

// what files or directories need chmod applied? (trailing slash optional)

$dirs = array( 'administrator/backups',

               
'administrator/components',

               
'administrator/language',

               
'administrator/language/en-GB',

               
'administrator/modules',

               
'administrator/templates',

               
'administrator/cache',

               
'components',

               
'images',

               
'images/banners',

               
'images/stories',

               
'media',

               
'language',

               
'language/en-GB',

               
'language/pdf_fonts',

               
'modules',

               
'plugins',

               
'plugins/content',

               
'plugins/editors',

               
'plugins/editors-xtd',

               
'plugins/search',

               
'plugins/system',

               
'plugins/user',

               
'plugins/xmlrpc',

               
'tmp',

               
'templates',

               
'cache'

             
);

 

// default to safe 0755 setting

if ($_GET['chmod']) {

    
$ftp_chmod $_GET['chmod']; 

} else {

    
$ftp_chmod "0755"

}

echo 
"chmod=".$ftp_chmod.'<br/>';

 

// connect via ftp and apply chmod

$conn_id ftp_connect("$ftp_server");

ftp_login($conn_id$ftp_user$ftp_pass);

foreach( 
$dirs as $dir ){

    if (
ftp_site($conn_id'CHMOD '.$ftp_chmod.' '.$base.$dir)) { 

        echo 
"success "

    } else { 

        echo 
"failed "

    }

    echo 
$base.$dir.'<br/>';



ftp_close($conn_id);

 

echo 
'DONE';

?>
to execute code http://yoursitename/fileyoumade.php?chmod=0777 chmod all files required to install components etc once done ececute http://yoursitename/fileyoumade.php all files will be back to 0755

hope that helps

dont forget to remove or chmod that file once you no longer need it

Last edited by KnK; 10-19-2009 at 07:32 PM.
Reply With Quote
(#13 (permalink))
Old
Junior Member
Chris is on a distinguished road
 
Posts: 27
Join Date: Aug 2009
Default 10-20-2009, 12:50 AM

well thanks, i will try this to
Reply With Quote
(#14 (permalink))
Old
Junior Member
Chris is on a distinguished road
 
Posts: 27
Join Date: Aug 2009
Default 10-20-2009, 11:13 AM

The problem is solved, i've delete all the files in the folders TMP and CACHE and now everything is ok, thanks to all of you for trying to help
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off




Powered by vBulletin® Version 3.8.2
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.5.2
vBulletin Skin developed by: vBStyles.com