ModPagespeedFileCachePath must not be empty

391 views
Skip to first unread message

Alex Wu

unread,
Jun 17, 2013, 2:31:27 PM6/17/13
to mod-pagesp...@googlegroups.com
Hi,

I am experimenting mod_pagespeed, and I used latest stable beta code with apache2 on Ubuntu server 13.x.x.x. All look like smooth until I used unbent.sh stop start to restart apache2 server. Here is the log error I have:

[Mon Jun 17 10:55:55 2013] [error] [mod_pagespeed 1.5.27.2-2918 @20358] mod_pagespeed is enabled. ModPagespeedFileCachePath must not be empty: defn_name=(null) defn_line_number=0 server_hostname=127.0.1.1 port=0
Configuration Failed

From the message, I cannot find virtual host configuration with port 0. Also, you would see defn_name is null. I have looked up the past postings on this, and found out it has no help. I just have two default virtual host configuration: port 80 and 443.

Could someone help?



Joshua Marantz

unread,
Jun 17, 2013, 6:45:56 PM6/17/13
to mod-pagespeed-discuss
Did the solution offered earlier in this thread not help?  Specify a valid FileCachePath in the root configuration and use InheritVhostConfig?

-Josh






--
You received this message because you are subscribed to the Google Groups "mod-pagespeed-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to mod-pagespeed-di...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
 
 

Alex Wu

unread,
Jun 18, 2013, 9:06:30 AM6/18/13
to mod-pagesp...@googlegroups.com
I found the problem. src/install/ubuntu.sh didn't move pagespeed.conf from mods-available to mods-enabled directory. Once I moved pagespeed.conf into mods-enabled directory and restart apache2, the error is gone
 
Thanks.

Franco D'Alessandro

unread,
Oct 18, 2015, 3:29:20 PM10/18/15
to mod-pagespeed-discuss
Experienced the exact same problem just now. I created the install package .deb version and when i installed it, it asked if I wanted to keep the existing pagespeed.conf, I replied N, which was the default. Only to find that the file was empty after the same error message as you. I copied it from the /etc/apache2/mods-available/pagespeed.conf.dpkg-dist version thinking that would be the end of it. After reading your message I copied the file to the mods-enabled folder under apache2 and worked just fine, changing that file in mods-enabled also seems to be the thing to do for the config change you want, but that isn't what the docs say to do. It was messing with some of my images on my website so I simply disabled it there and things are ok now. Thank you.

Franco D'Alessandro

unread,
Oct 28, 2015, 9:52:34 AM10/28/15
to mod-pagespeed-discuss
After getting back to the install, turns out the thing to do was to indeed copy the pagespeed.conf.dpkg-dist to pagepseed.conf in the mods-available, apply any changes to the pagespeed.conf and then enable pagespeed with a2enmod pagespeed.
Reply all
Reply to author
Forward
0 new messages