Critical! Your templates_c/index.php file is missing.

Started by VPSKing, January 13, 2015, 06:13:06 AM

VPSKing

Hello,

Im not sure why I got this error  Critical! Your templates_c/index.php file is missing. Your HostBill is not secure.

When I navigate to to templates_c/ I see there is a file called index.php. I have removed the old file and recover it but the error still there.

On my second Hostbill installation I see there are a lot of files inside templates_c/.

Any help will be appreciated.

d4f

Make sure the index.php is owned and executable by your web user. If you create the file as e.g. root it keeps showing the error message as the file is not executable. However the "protection" is still present as the webserver will try to open the file, fail, and display an error.
By the way; the file can be empty or contain arbitrary content. It just needs to exist.

It sonds as if your primary installation does not have _any_ files in templates_c. Please make sure your folder has the correct user/chmod privileges too as the folder should fill rather quickly on the first HTTP access.

VPSKing

Thanks for replay,

I have 777 permission on my template_c folder. I like to know if I should have 644 on my index.php file?

d4f

Permission 777 is "evil", you should only need 755 top. For files the same permissions of 755 are a good maximum value.
Depending on your system and environment you can go far lower (up to down to 500)