manuelmi
05-21-2011, 02:20 AM
Hi All,
I have set a cron job which works fine from the blue host server side. I have set a file which has only one line code of php as follows:
<?php
echo$dbhost = 'localhost';
?>
But, when the cron job runs it always gives me an error as follows:
PHP: Error parsing /home3/manuelmi/public_html/manuelministriescrm/cron/updateContribution.php on line 2
X-Powered-By: PHP/5.2.17
Content-type: text/html
I have set cron jobs in various other servers, but I have never faced any problems with regards to the cron job.
I contacted the Support guys through Live Chat, I feel strange when they say that the .htacess file that I have placed in the root directory (this sets the environment for the entire project) is creating a problem. They ask me to delete that file.
The .htacess file has the following code:
# set document root path
#setEnv ROOT_DIR /path/
#setEnv UPLOAD_DIR /path/
#setEnv UPLOAD_DIR_CUST /path/
#setEnv SITE_URL /link/
#setEnv ROOT_DIR D:/wamp/www/prj/
#setEnv UPLOAD_DIR D:/wamp/www/prj/pix/
#setEnv UPLOAD_DIR_CUST D:/wamp/www/prj/uploads/
#setEnv SITE_URL http://localhost/prj/
php_value display_errors "on"
## Turn on Expires and set default expires to 3 days
ExpiresActive On
ExpiresDefault A259200
## Set up caching on media files for 1 month
<FilesMatch "\.(ico|gif|jpg|jpeg|png|flv|pdf|swf|mov|mp3|wmv|pp t)$">
ExpiresDefault A2419200
Header append Cache-Control "public"
</FilesMatch>
## Set up 2 Hour caching on commonly updated files
<FilesMatch "\.(xml|txt|html|js|css)$">
ExpiresDefault A7200
Header append Cache-Control "private, must-revalidate"
</FilesMatch>
## Force no caching for dynamic files
<FilesMatch "\.(php|cgi|pl|htm)$">
ExpiresDefault A0
Header set Cache-Control "no-store, no-cache, must-revalidate, max-age=0?
Header set Pragma "no-cache"
</FilesMatch>
Can anyone please help me with this and get me a solution so that I can complete this project. I am just waiting for this to complete, else I am done with the entire project.
Please help me.
Thanks & Regards,
Muthukumar
I have set a cron job which works fine from the blue host server side. I have set a file which has only one line code of php as follows:
<?php
echo$dbhost = 'localhost';
?>
But, when the cron job runs it always gives me an error as follows:
PHP: Error parsing /home3/manuelmi/public_html/manuelministriescrm/cron/updateContribution.php on line 2
X-Powered-By: PHP/5.2.17
Content-type: text/html
I have set cron jobs in various other servers, but I have never faced any problems with regards to the cron job.
I contacted the Support guys through Live Chat, I feel strange when they say that the .htacess file that I have placed in the root directory (this sets the environment for the entire project) is creating a problem. They ask me to delete that file.
The .htacess file has the following code:
# set document root path
#setEnv ROOT_DIR /path/
#setEnv UPLOAD_DIR /path/
#setEnv UPLOAD_DIR_CUST /path/
#setEnv SITE_URL /link/
#setEnv ROOT_DIR D:/wamp/www/prj/
#setEnv UPLOAD_DIR D:/wamp/www/prj/pix/
#setEnv UPLOAD_DIR_CUST D:/wamp/www/prj/uploads/
#setEnv SITE_URL http://localhost/prj/
php_value display_errors "on"
## Turn on Expires and set default expires to 3 days
ExpiresActive On
ExpiresDefault A259200
## Set up caching on media files for 1 month
<FilesMatch "\.(ico|gif|jpg|jpeg|png|flv|pdf|swf|mov|mp3|wmv|pp t)$">
ExpiresDefault A2419200
Header append Cache-Control "public"
</FilesMatch>
## Set up 2 Hour caching on commonly updated files
<FilesMatch "\.(xml|txt|html|js|css)$">
ExpiresDefault A7200
Header append Cache-Control "private, must-revalidate"
</FilesMatch>
## Force no caching for dynamic files
<FilesMatch "\.(php|cgi|pl|htm)$">
ExpiresDefault A0
Header set Cache-Control "no-store, no-cache, must-revalidate, max-age=0?
Header set Pragma "no-cache"
</FilesMatch>
Can anyone please help me with this and get me a solution so that I can complete this project. I am just waiting for this to complete, else I am done with the entire project.
Please help me.
Thanks & Regards,
Muthukumar