ispCP - Board - Support
Quota not working - Printable Version

+- ispCP - Board - Support (http://www.isp-control.net/forum)
+-- Forum: ispCP Omega Support Area (/forum-30.html)
+--- Forum: Usage (/forum-34.html)
+--- Thread: Quota not working (/thread-4929.html)



Quota not working - chougard - 11-15-2008 03:08 PM

Hello!

I'm trying to run this script on my VPS but I get the following error from the quota script.

Code:
root@chougard:~# /var/www/ispcp/engine/quota/ispcp-dsk-quota
"my" variable $cmd_du masks earlier declaration in same scope at /var/www/ispcp/engine/quota/ispcp-dsk-quota line 99.
Scalar found where operator expected at /var/www/ispcp/engine/quota/ispcp-dsk-quota line 106, near "my $quotacheck = $cmd_quota -u $domain_uid -d $main::cfg{APACHE_WWW_DIR}/$domain_name"
  (Might be a runaway multi-line // string starting on line 105)
        (Do you need to predeclare my?)
"my" variable $size masks earlier declaration in same scope at /var/www/ispcp/engine/quota/ispcp-dsk-quota line 112.
syntax error at /var/www/ispcp/engine/quota/ispcp-dsk-quota line 105, near "$main::cfg{APACHE_WWW_DIR"
Global symbol "$domain_name" requires explicit package name at /var/www/ispcp/engine/quota/ispcp-dsk-quota line 105.
Global symbol "$quotacheck" requires explicit package name at /var/www/ispcp/engine/quota/ispcp-dsk-quota line 105.
syntax error at /var/www/ispcp/engine/quota/ispcp-dsk-quota line 106, near "my $quotacheck = $cmd_quota -u $domain_uid -d $main::cfg{APACHE_WWW_DIR}/$domain_name"
Global symbol "$domain_name" requires explicit package name at /var/www/ispcp/engine/quota/ispcp-dsk-quota line 106.
syntax error at /var/www/ispcp/engine/quota/ispcp-dsk-quota line 157, near "}"
Execution of /var/www/ispcp/engine/quota/ispcp-dsk-quota aborted due to compilation errors.

Any idea how to fix it?

Thanks!


RE: Quota not working - BeNe - 11-17-2008 03:47 AM

Which ispCP and OS Version ??

Greez BeNe


RE: Quota not working - chougard - 11-17-2008 10:37 AM

RC6 and ubuntu-8.04-i386
Server is a VPS

Edit: Never mind. I ran the build make command again and just copied that file and now it works fine.