0
Welcome Guest! Login
0 items Join Now

Cannot open file for writing log

  • Cannot open file for writing log

    Posted 12 years 5 months ago
    • Hi all,

      I'm new to all this so forgive me if I ask stupid stuff...
      I am running the lamp stack of turnkey and have just finished installing the RocketLauncher 3.0 of the new Metropolis Theme.
      Installation went fine i think, it didn't produce any errors. The only thing it said was that i had to manually create a configuration.php and upload it to the root.
      I've written this file and uploaded it to /var/www
      Now when i access joomla site, it shows the metropolis top bar and just says:
      Error 0: Cannot open file for writing log.

      Any ideas?

      *** I just resolved the configuration.php which wasn't writable by changing owner to http://www.-data
      i still have the same error 0, cannot open file for writing log error....
    • Who?'s Avatar
    • Who?
    • Preeminent Rocketeer
    • Posts: 25562
    • Thanks: 613
    • Joomla freelancer

    Re: Cannot open file for writing log

    Posted 12 years 5 months ago
    • I believe that your will have the very same issue with every file until you actually ask your host to change the way your php scripts are executed. Right now, php scripts are executed under web server account which is not good because web server doesn't have write permission on your files and folders. PHP scripts should be executed under your hosting account.

      Contact your hosting company and ask them to enable suphp, suhosin or any other ways of executing php under your hosting account instead of mod_php
    • Check my services at: Mihha-Vision
    • PVstore's Avatar
    • PVstore
    • Jr. Rocketeer
    • Posts: 34
    • Thanks: 0

    Re: Cannot open file for writing log

    Posted 12 years 5 months ago
    • same issue here, waiting for my hosting company to answer. I will update later
    • firetext's Avatar
    • firetext
    • Jr. Rocketeer
    • Posts: 25
    • Thanks: 0

    Re: Cannot open file for writing log

    Posted 12 years 5 months ago
    • I'm having the same issue here website.firetext.com , is there any way to avoid installing enable suphp, suhosin. I own a Godaddy Dedicated server.... unless do you know of any hosting companies that offer this out of the box? Rochen? or anyone else?
    • Who?'s Avatar
    • Who?
    • Preeminent Rocketeer
    • Posts: 25562
    • Thanks: 613
    • Joomla freelancer

    Re: Cannot open file for writing log

    Posted 12 years 5 months ago
    • You can try to enable FTP layer in joomla global configuration but I would strongly suggest to change your hosting provider. GoDaddy is notoriously know for bad configured servers. Rocken is good choice. Siteground also
    • Check my services at: Mihha-Vision
    • firetext's Avatar
    • firetext
    • Jr. Rocketeer
    • Posts: 25
    • Thanks: 0

    Re: Cannot open file for writing log

    Posted 12 years 5 months ago
    • Thanks, will try those hosting providers.
    • barneyt's Avatar
    • barneyt
    • Newbie
    • Posts: 16
    • Thanks: 0

    Re: Cannot open file for writing log

    Posted 12 years 2 weeks ago
    • Weird, Got similar issue however I own the server and this is a brand new site (with dozens of other sites on same server all with these same file permissions and ownership )and never had this issue before, and this always fixed my permission issues for new clients old sites.. and still no luck.

      find /home/username/public_html/ -type d -exec chmod 755 {} \;
      find /home/username/public_html/ -type f -exec chmod 644 {} \;
    • barneyt's Avatar
    • barneyt
    • Newbie
    • Posts: 16
    • Thanks: 0

    Re: Cannot open file for writing log

    Posted 12 years 2 weeks ago
    • I fixed the backend and front end error by creating a error_log in the root of the site and setting it to 644, then doing same in administrator, now the admin area works and the front page is blank and nothing of corse in the error_log or in apache logs
    • Who?'s Avatar
    • Who?
    • Preeminent Rocketeer
    • Posts: 25562
    • Thanks: 613
    • Joomla freelancer

    Re: Cannot open file for writing log

    Posted 12 years 2 weeks ago
    • @barneyt

      Please open new thread with your question and don0t just jump in other member's thread. Especially if your issues could be completely different than the one posted by original post 8)
    • Check my services at: Mihha-Vision
  • Re: Cannot open file for writing log

    Posted 11 years 11 months ago
    • Im having the exact same problem here

      walkingtoursmexico.com/index.php/

      The weird stuff is that i have a test version of the site on a host provided by the same service and all works like a charm. repkali.com.mx/test/test/

      I made a download of files and a migration of the database from the one that works on the test server and on the designed host it wont work. Please help

Time to create page: 0.096 seconds