Apache2 permission problem (libapache2-mod-php5)

  • Hi,
    till I-MSCP version 1.2.3, wordpress work perfect.
    now at 1.2.6, 1.2.8 wordpress can't update theme, language, plugins, even upload photos on post.


    You will tell me maybe: "hey, it is a wordpress problem not I-MSCP". No it is not !
    Why at version 1.2.3 work perfect and now not ?


    I change permission to folders at 775, 777, but i think this is not good for website security !


    any ideea ?

  • @tilicar


    Before changing anything manually, you should think a bit... Some important bugs were discovered in i-MSCP, which will be adressed in version 1.2.9.


    See youtrack.i-mscp.net/issue/IP-1362


    To resume: Wait the next release which will come soon.


    BTW: As @c0urier said, you should provide us the logs when you're reporting a problem. We are not magicians.

    badge.php?id=1239063037&bid=2518&key=1747635596&format=png&z=547451206

  • Code
    1. [Sun Jun 21 14:23:56.077873 2015] [:error] [pid 11422] [client xx.xx.xx.xx:25988] PHP Warning: touch(): Unable to create file /var/www/virtual/site/htdocs/wp-content/uploads/make.1.6.0.tmp because Permission denied in /var/www/virtual/site/htdocs/wp-admin/includes/file.php on line 164, referer: http://site/wp-admin/theme-install.php?browse=popular
    2. [Sun Jun 21 14:23:56.285182 2015] [:error] [pid 11422] [client xx.xx.xx.xx:25988] PHP Warning: unlink(/var/www/virtual/site/htdocs/wp-content/uploads/make.1.6.0.tmp): No such file or directory in /var/www/virtual/site/htdocs/wp-admin/includes/file.php on line 464, referer: http://site/wp-admin/theme-install.php?browse=popular
    3. [Sun Jun 21 14:31:04.700851 2015] [:error] [pid 11764] [client xx.xx.xx.xx:26140] PHP Warning: touch(): Unable to create file /var/www/virtual/site/htdocs/wp-content/uploads/make.1.6.0.tmp because Permission denied in /var/www/virtual/site/htdocs/wp-admin/includes/file.php on line 164, referer: http://site/wp-admin/theme-install.php?browse=popular
    4. [Sun Jun 21 14:31:05.146247 2015] [:error] [pid 11764] [client xx.xx.xx.xx:26140] PHP Warning: unlink(/var/www/virtual/site/htdocs/wp-content/uploads/make.1.6.0.tmp): No such file or directory in /var/www/virtual/site/htdocs/wp-admin/includes/file.php on line 464, referer: http://site/wp-admin/theme-install.php?browse=popular
  • @tilicar


    You must fix the permissions yourself through FTP !


    Code
    1. /var/www/virtual/site/htdocs/wp-content/uploads


    Is not a directory managed by i-MSCP.


    If you don't figure alone, give me an access to your server.

    badge.php?id=1239063037&bid=2518&key=1747635596&format=png&z=547451206

  • Hi,


    I think there is another problem. Which user and group is set to the folder "upload" respectively "wp-content"?


    I have many wordpress installations and never once such a problem.


    Greets
    Chris

  • @Backdraft007 such errors mostly only occurs, if a customer upload his webinstallations or unpack the archive via ssh.

  • @Ninos


    You surely mean SSH as root or any other user than the customer unix user which is created by i-MSCP ? If you use the InstantSSH plugin, this should not occur. ;)


    Anyway


    All here is about @tilicar mistakes.


    @tilicar


    I've not kept your server data. Thus please, send me them again.

    badge.php?id=1239063037&bid=2518&key=1747635596&format=png&z=547451206