Support A2Billing :

provided by Star2Billing S.L.

Support A2Billing :
It is currently Thu Mar 28, 2024 1:08 pm
VoIP Billing solution


All times are UTC




Post new topic Reply to topic  [ 9 posts ] 
Author Message
 Post subject: Fatal error
PostPosted: Tue Oct 09, 2007 11:43 am 
Offline

Joined: Tue Oct 09, 2007 11:40 am
Posts: 7
Fatal error: Smarty error: unable to write to $compile_dir '/var/www/html/a2billing/templates_c'. Be sure $compile_dir is writable by the web server user. in /var/www/html/a2billing/lib/Smarty/Smarty.class.php on line 1089

somebody knows what it can be?


Top
 Profile  
 
 Post subject:
PostPosted: Tue Oct 09, 2007 12:06 pm 
Offline
Moderator
User avatar

Joined: Thu Jun 22, 2006 2:19 pm
Posts: 2890
Location: Devon, UK
That message seems very self explanatory. "unable to write to" means exactly what it says; it's a permissions problem. It's even helpful enough to show the exact directory it's having trouble with.
My webserver runs as user 'apache' in group 'apache' so I do the following to grant Apache access to all the A2B web folders:
Code:
chown -R apache:apache /var/www/html/a2b*


Top
 Profile  
 
 Post subject:
PostPosted: Tue Oct 09, 2007 12:14 pm 
Offline

Joined: Tue Oct 09, 2007 11:40 am
Posts: 7
stavros wrote:
That message seems very self explanatory. "unable to write to" means exactly what it says; it's a permissions problem. It's even helpful enough to show the exact directory it's having trouble with.
My webserver runs as user 'apache' in group 'apache' so I do the following to grant Apache access to all the A2B web folders:
Code:
chown -R apache:apache /var/www/html/a2b*



still it continues giving the same error, I used the command that spoke to me and nothing. :(


Top
 Profile  
 
 Post subject:
PostPosted: Tue Oct 09, 2007 12:23 pm 
Offline
Moderator
User avatar

Joined: Thu Jun 22, 2006 2:19 pm
Posts: 2890
Location: Devon, UK
vidalokaelton wrote:
I used the command that spoke to me and nothing. :(

The command gave no output? (=success) Or it did say something? (probably an error messase)

See these other threads too.


Top
 Profile  
 
 Post subject:
PostPosted: Tue Oct 09, 2007 12:31 pm 
Offline

Joined: Tue Oct 09, 2007 11:40 am
Posts: 7
stavros wrote:
vidalokaelton wrote:
I used the command that spoke to me and nothing. :(

The command gave no output? (=success) Or it did say something? (probably an error messase)

See these other threads too.


Fatal error: Smarty error: unable to write to $compile_dir '/var/www/html/a2billing/templates_c'. Be sure $compile_dir is writable by the web server user. in /var/www/html/a2billing/lib/Smarty/Smarty.class.php on line 1089

Same problem, as if I add in msn [email protected]


Top
 Profile  
 
 Post subject:
PostPosted: Tue Oct 09, 2007 12:48 pm 
Offline
Moderator
User avatar

Joined: Thu Jun 22, 2006 2:19 pm
Posts: 2890
Location: Devon, UK
If you followed the suggestions in the other thread I linked to and made that folder writable it should have worked.

You'll need to change the pathnames to suit your system, but here is an excerpt from a script I use to help me install various versions of A2B.
Code:
# Fix up permissions
chown -R apache:apache /var/www/a2b
chown -R apache:apache /var/www/a2badmin
chown -R apache:apache /var/www/a2bsignup
chmod -R g+wr /var/www/a2b/templates
chmod -R g+xwr /var/www/a2b/templates_c
chmod -R g+wr /var/www/a2badmin/Public/templates
chmod -R g+xwr /var/www/a2badmin/templates_c
chmod -R g+wr /var/www/a2bsignup/Public/templates
chmod -R g+xwr /var/www/a2bsignup/templates_c


I hope it gives you some ideas.


Top
 Profile  
 
 Post subject: no idea
PostPosted: Sun Mar 09, 2008 5:47 pm 
Offline
User avatar

Joined: Tue Dec 04, 2007 12:05 am
Posts: 295
uff no work any other idea


stavros wrote:
If you followed the suggestions in the other thread I linked to and made that folder writable it should have worked.

You'll need to change the pathnames to suit your system, but here is an excerpt from a script I use to help me install various versions of A2B.
Code:
# Fix up permissions
chown -R apache:apache /var/www/a2b
chown -R apache:apache /var/www/a2badmin
chown -R apache:apache /var/www/a2bsignup
chmod -R g+wr /var/www/a2b/templates
chmod -R g+xwr /var/www/a2b/templates_c
chmod -R g+wr /var/www/a2badmin/Public/templates
chmod -R g+xwr /var/www/a2badmin/templates_c
chmod -R g+wr /var/www/a2bsignup/Public/templates
chmod -R g+xwr /var/www/a2bsignup/templates_c


I hope it gives you some ideas.


Top
 Profile  
 
 Post subject:
PostPosted: Sun Mar 09, 2008 6:00 pm 
Offline
User avatar

Joined: Mon Apr 30, 2007 6:43 am
Posts: 1060
Location: Canada
Try this

Code:
chown -R apache:apache /var/www/a2badmin/templates_c
chmod -R 755 /var/www/a2badmin/templates_c


Apache should be able to write in this folder. So making Apache the owner of this folder makes it work for me. Also, in this case, you will only need the 755 permission (less risky).

Cheers


Top
 Profile  
 
 Post subject: thanks
PostPosted: Sun Mar 09, 2008 9:03 pm 
Offline
User avatar

Joined: Tue Dec 04, 2007 12:05 am
Posts: 295
asiby wrote:
Try this

Code:
chown -R apache:apache /var/www/a2badmin/templates_c
chmod -R 755 /var/www/a2badmin/templates_c


Apache should be able to write in this folder. So making Apache the owner of this folder makes it work for me. Also, in this case, you will only need the 755 permission (less risky).

Cheers

thank but unfortunately this no work in debian 4.0 ????? :shock:
but I solve with recursive permissions
regards


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 9 posts ] 
Predictive Dialer


All times are UTC


Who is online

Users browsing this forum: No registered users and 14 guests


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
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group