Linode Forum
Linode Community Forums
 FAQFAQ    SearchSearch    MembersMembers      Register Register 
 LoginLogin [ Anonymous ] 
Post new topic  Reply to topic
Author Message
PostPosted: Thu Jun 23, 2011 11:54 am 
Offline
Senior Newbie

Joined: Sun May 29, 2011 3:43 pm
Posts: 6
Website: http://www.stardustsystems.com
Location: Cupertino, CA
I moved my web site from another web hosting company to a Linode Ubuntu account.

My site had some PHP scripts that created log files to output trace messages I use in troubleshooting the scripts.

Now that I am on linode, my PHP scripts can't create the log files.

Anything I need to do, perhaps in Apache or PHP to get this to work again?

I have a Linode 512 with LAMP stack StackScript.

Thanks!
Greg


Top
   
 Post subject:
PostPosted: Thu Jun 23, 2011 11:58 am 
Offline
Senior Member

Joined: Sat Mar 12, 2011 3:43 am
Posts: 76
Location: Russia
Your problem isn't related to Linode.
Try http://stackoverflow.com to ask this kind of questions.
Don't forget to write full description - error message and related part of code.


Top
   
 Post subject:
PostPosted: Thu Jun 23, 2011 12:10 pm 
Offline
Senior Member

Joined: Sun Mar 07, 2010 7:47 pm
Posts: 1970
Website: http://www.rwky.net
Location: Earth
I'd bet it's permissions, assuming you're using the default php installation of mod_php with apache prefork then you're php files will be running under the www-data user, make sure the www-data user has write access to wherever you're logs are written to.

_________________
Paid support
How to ask for help
1. Give details of your problem
2. Post any errors
3. Post relevant logs.
4. Don't hide details i.e. your domain, it just makes things harder
5. Be polite or you'll be eaten by a grue


Top
   
 Post subject:
PostPosted: Thu Jun 23, 2011 12:12 pm 
Offline
Senior Newbie

Joined: Sun May 29, 2011 3:43 pm
Posts: 6
Website: http://www.stardustsystems.com
Location: Cupertino, CA
Thanks for the replies. I guess I have some more to learn about Apache to solve this.


Top
   
 Post subject:
PostPosted: Thu Jun 23, 2011 1:34 pm 
Offline
Senior Member

Joined: Wed Jul 21, 2010 8:04 pm
Posts: 119
Like obs said, it's probably a permissions error. Try running:
Code:
sudo chmod 775 /path/to/the/directory/
sudo chown www-data:www-data /path/to/the/directory/


Top
   
Display posts from previous:  Sort by  
Post new topic  Reply to topic


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Jump to:  
RSS

Powered by phpBB® Forum Software © phpBB Group