JFolder::create: Could not create directory - Joomla

后端 未结 4 1431
南笙
南笙 2021-01-12 13:53

I end up with below error when I try to install a component,module or plugin.

JFolder::create: Could not create directory

What could be th

4条回答
  •  Happy的楠姐
    2021-01-12 14:12

    You can change the owner of Joomla folders to your apache server user.

    You can find the apache server user with the following command:

    ps aux | grep -v root | grep apache | cut -d\  -f1 | sort | uniq
    

    Source: https://serverfault.com/questions/125865/finding-out-what-user-apache-is-running-as

    For Ubuntu, it's www-data.

    After you know the apache user name, then you can change the owner of all the folders and files of your Joomla installation. You can use the following command to do so:

    (I suppose that your apache user is www-data)

    sudo chown -R www-data:www-data /path/to/your/joomla
    

    If you are already inside your Joomla directory, then you can run the following command:

    sudo chown -R www-data:www-data .
    

提交回复
热议问题