Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • mneese Friend
    #139500

    used quickstart but had to maually set up configuration.php using cut and paste at the end.

    all the directories installed are shown unwritable (system info interface, directory permissions), because they have been installed with “root” user, not properly assigned to correct user.

    They are not actually unwritable as shown in the server interface, and i can actually edit the files as needed.

    What is wrong here?

    Arvind Chauhan Moderator
    #297504

    I get this problem, when i install joomla directly in the root folder of the server. These folder permissions are not seen on my end if i install it into any of the subfolder in the root folder. I am on shared hosting with lunarpages.

    Also, on my ubuntu server, while unzipping the files owner used to get changed and to correct that i used to run this command

    <blockquote>sudo chown -R www-data:www-data /var/www/Your_Joomla_folder
    </blockquote>

    As in ubuntu server owner of the joomla directory is given to user “www-data”.

    This is what i used to follow on my ubuntu web server.
    <blockquote>
    Handle ownership (choose one option):

    # 1. Allow writting in whole joomla subtree
    sudo chown -R www-data:www-data /var/www/joomla

    # 2. Allow writting only in places Joomla! needs to write to (more secure)
    sudo chown -R root:root /var/www/joomla
    cd /var/www/joomla
    PLACES=’
    administrator/backups
    administrator/components
    administrator/modules
    administrator/templates
    cache
    components
    images
    images/banners
    images/stories
    language
    mambots
    mambots/content
    mambots/editors
    mambots/editors-xtd
    mambots/search
    media
    modules
    templates

    for i in $PLACES; do
    sudo chown -R www-data:www-data $i
    done

    Handle file and directory permissions:

    cd /var/www/joomla
    sudo find . -type f -exec chmod 644 {} ;
    sudo find . -type d -exec chmod 755 {} ;</blockquote>

    If this helps you can read the link at https://help.ubuntu.com/community/Joomla .

    What kind of server environment you have?

    mneese Friend
    #297511

    thanks for the reply.
    I will have to digest this and see what action is needed.
    I have a VPS server that i just started working on, so there are some quirks that i will have to work out.
    I have also done a default joomla installation that worked fine and did not require a manual configuration file, and the permissions were correctly assigned on the server.
    On my older sites that are shared hosting, there have never been these issues.

    Arvind Chauhan Moderator
    #297513

    May be using “sudo” while using ssh, will help avoid these problems. If all the folders are owned by root “as you said in your first post”. You may have used your root account to move / copy / rename your joomla folder or your var/www or public_html folder.

    I used to do it so often, based on your linux distro, search google for the right owner of your www or public_html folder and change the ownership using chown command.

Viewing 4 posts - 1 through 4 (of 4 total)

This topic contains 4 replies, has 2 voices, and was last updated by  Arvind Chauhan 15 years, 8 months ago.

We moved to new unified forum. Please post all new support queries in our New Forum