Hot answers tagged

1

The problem was https://developers.google.com/speed/pagespeed/module/ which have done cache clean every hour. Configuration it to store files on tmpfs fixed the problem.


1

Configure your apache to run cgi scripts. You can use any executable file as cgi (C, Perl, shell - whatsoever). Make sure you add proper 'execute' permissions so apache can run the file, then include on your page something like <img src="/cgi-bin/myfile.sh"> and you're done! If you do not have access to apache configuration: <?php .... system(...


1

This is normal if you see it. Since it is the first virtual host entry it will show local host. but still you can set that up in httpd.conf, <VirtualHost localhost:80> ServerAdmin localhost DocumentRoot /path/to/htdocs/ ServerName localhost </VirtualHost> To run projects like http://yourwebsite.com locally <VirtualHost ...


1

I believe the default DocumentRoot for apache is /var/www/html, so try moving your php file there by doing: sudo mv /var/www/info.php /var/www/html/ If apache then complains that it cannot read the file, try sudo chmod a+r /var/www/html/info.php.



Only top voted, non community-wiki answers of a minimum length are eligible