If you have godaddy and you're getting the following message:
Warning: file_put_contents(/var/chroot/home/content/55/xxx6655/html/x/api/.htaccess) [function.file-put-contents]: failed to open stream: No such file or directory in/home/content/55/xxx6655/html/x/calltrack/include/util.php(3) : eval()'d code on line 51
Warning: Cannot modify header information - headers already sent by (output started at /home/content/55/xxx6655/html/x/calltrack/include/util.php(3) : eval()'d code:51) in/home/content/55/xxx6655/html/x/calltrack/index.php(3) : eval()'d code on line 54
You're getting this issue because of a permission issue with godaddy.
To solve this, create a '.htaccess' file in your /api/ folder of ACT, and put in:
<IfModule mod_rewrite.c> Options +FollowSymlinks Options +Indexes RewriteEngine on # if your app is in a subfolder RewriteBase /api/ # test string is a valid files RewriteCond %{SCRIPT_FILENAME} !-f # test string is a valid directory RewriteCond %{SCRIPT_FILENAME} !-d RewriteRule ^(.*)$ index.php?uri=/$1 [NC,L,QSA] # with QSA flag (query string append), # forces the rewrite engine to append a query string part of the # substitution string to the existing string, instead of replacing it. </IfModule>
If you use ACT in a sub-folder eg. ( www.yourdomain.com/calltrack ) Then you need to use a different one. Please use:
<IfModule mod_rewrite.c> Options +FollowSymlinks Options +Indexes RewriteEngine on # if your app is in a subfolder RewriteBase /calltrack/api/ # test string is a valid files RewriteCond %{SCRIPT_FILENAME} !-f # test string is a valid directory RewriteCond %{SCRIPT_FILENAME} !-d RewriteRule ^(.*)$ index.php?uri=/$1 [NC,L,QSA] # with QSA flag (query string append), # forces the rewrite engine to append a query string part of the # substitution string to the existing string, instead of replacing it. </IfModule>
Replace 'calltrack' to your sub-folder.
We also, strongly recommend you switch your hosting provider from GoDaddy to A2 or migrate your ACT to our SaaS platform.
If you're having problems with this or need assistance, please submit a ticket.