EeePC localhost not working

You must have followed this tip in Ubuntu on the EeePC to reduce drive writes:

  • Put data that is not needed long-term on a tmpfs, which is written to memory. Below is an example:
  • tmpfs      /var/log        tmpfs        defaults           0    0
    tmpfs      /tmp            tmpfs        defaults           0    0
    tmpfs      /var/tmp        tmpfs        defaults           0    0
    tmpfs      /var/log/apt    tmpfs        defaults           0    0

When you start apache2 after applying that tip you will see this error

apache2: Could not reliably determine the server’s fully qualified domain name, using 127.0.1.1 for ServerName
(2)No such file or directory: apache2: could not open error log file /var/log/apache2/error.log.
Unable to open logs

Here is the fix:

  • Comment out this line from the tip
    # tmpfs /var/log tmpfs defaults 0 0
  • Create this file: /var/log/apache2/error.log
  • And then start apache2 again
    sudo /etc/init.d/apache2 start

Leave a Reply