Cpanel Hosting

Friday, 8 February 2013

Images not loading for websites.


If you find that images are not loading in linux  server then you should disable php functions.

php.ini is configuration file of PHP.
Find exact path of php.ini
# php -i | grep php.ini

Or you can use the another command like

# php.ini
Configuration File (php.ini) Path => /usr/local/lib
Loaded Configuration File => /usr/local/lib/php.ini
then search disabled disable_function in that file and remove  “readfile” optionin in that line.
: wq!
then restart apache service.

All images should be work fine.

1 comment:

Anonymous said...

We have tried this and it is working . We also noticed that some time the image path is wrong so also check if the image path is right ...