Set Configuration To Speed up MythWeb Page Loading

Bug #251228 reported by Tom G
2
Affects Status Importance Assigned to Milestone
Mythbuntu
Confirmed
Wishlist
Thomas Mashos

Bug Description

I have posted a fairly simple tweak to apache config file to speed up page load time when using mythweb. It reduced the times from about 45 seconds to around 12 seconds. It was recommended by others on the ubuntu forum to report this as a possible improvement for default behavior and configuration of mythweb on ubuntu.

Original post which shows how to manually configure apache mythweb file to load pages faster.

http://ubuntuforums.org/showthread.php?t=866980

Actually there are two steps

First

Change /etc/apache2/sites-enabled/mythwebdir

Original contents

---

<Directory "/var/www/mythweb">
    Options FollowSymLinks
    AllowOverride All
</Directory>

---

Modified contents

---

<Directory "/var/www/mythweb">
    Options FollowSymLinks
    AllowOverride All
    ExpiresActive On
    ExpiresByType application/x-_javascript_ "modification plus 1 year"
</Directory>

For this to work correctly there is a second step.

Second -- apache must load some additional modules.

The following are the modules that made it work.

cd /etc/apache2/mods-available
sudo a2enmod expires
sudo a2enmod deflate
sudo a2enmod headers

and restart apache

sudo /etc/init.d/apache2 reload

---

Tags: downstream
Revision history for this message
Nick Fox (nickj-fox) wrote : Re: [Bug 251228] [NEW] Set Configuration To Speed up MythWeb Page Loading

Thanks for the tip. This sounds like something we might be able to
incorporate into MCC along with our other tweaks.

-Nick

On Wed, Jul 23, 2008 at 1:02 PM, Tom G <email address hidden> wrote:

> Public bug reported:
>
> I have posted a fairly simple tweak to apache config file to speed up
> page load time when using mythweb. It reduced the times from about 45
> seconds to around 12 seconds. It was recommended by others on the ubuntu
> forum to report this as a possible improvement for default behavior and
> configuration of mythweb on ubuntu.
>
> Original post which shows how to manually configure apache mythweb file
> to load pages faster.
>
> http://ubuntuforums.org/showthread.php?t=866980
>
> Actually there are two steps
>
> First
>
> Change /etc/apache2/sites-enabled/mythwebdir
>
> Original contents
>
> ---
>
> <Directory "/var/www/mythweb">
> Options FollowSymLinks
> AllowOverride All
> </Directory>
>
> ---
>
> Modified contents
>
> ---
>
> <Directory "/var/www/mythweb">
> Options FollowSymLinks
> AllowOverride All
> ExpiresActive On
> ExpiresByType application/x-_javascript_ "modification plus 1 year"
> </Directory>
>
>
> For this to work correctly there is a second step.
>
> Second -- apache must load some additional modules.
>
> The following are the modules that made it work.
>
> cd /etc/apache2/mods-available
> sudo a2enmod expires
> sudo a2enmod deflate
> sudo a2enmod headers
>
> and restart apache
>
> sudo /etc/init.d/apache2 reload
>
>
> ---
>
> ** Affects: mythbuntu
> Importance: Undecided
> Status: New
>
> --
> Set Configuration To Speed up MythWeb Page Loading
> https://bugs.launchpad.net/bugs/251228
> You received this bug notification because you are a member of
> Mythbuntu, which is subscribed to Mythbuntu.
>

Revision history for this message
Mario Limonciello (superm1) wrote :

I think these make plenty of sense for mythweb defaults if we could
incorporate into packaging. If not, then mcc tweaks would suffice.

On Wed, Jul 23, 2008 at 14:17, Nick Fox <email address hidden> wrote:

> Thanks for the tip. This sounds like something we might be able to
> incorporate into MCC along with our other tweaks.
>
> -Nick
>
> On Wed, Jul 23, 2008 at 1:02 PM, Tom G <email address hidden> wrote:
>
> > Public bug reported:
> >
> > I have posted a fairly simple tweak to apache config file to speed up
> > page load time when using mythweb. It reduced the times from about 45
> > seconds to around 12 seconds. It was recommended by others on the ubuntu
> > forum to report this as a possible improvement for default behavior and
> > configuration of mythweb on ubuntu.
> >
> > Original post which shows how to manually configure apache mythweb file
> > to load pages faster.
> >
> > http://ubuntuforums.org/showthread.php?t=866980
> >
> > Actually there are two steps
> >
> > First
> >
> > Change /etc/apache2/sites-enabled/mythwebdir
> >
> > Original contents
> >
> > ---
> >
> > <Directory "/var/www/mythweb">
> > Options FollowSymLinks
> > AllowOverride All
> > </Directory>
> >
> > ---
> >
> > Modified contents
> >
> > ---
> >
> > <Directory "/var/www/mythweb">
> > Options FollowSymLinks
> > AllowOverride All
> > ExpiresActive On
> > ExpiresByType application/x-_javascript_ "modification plus 1 year"
> > </Directory>
> >
> >
> > For this to work correctly there is a second step.
> >
> > Second -- apache must load some additional modules.
> >
> > The following are the modules that made it work.
> >
> > cd /etc/apache2/mods-available
> > sudo a2enmod expires
> > sudo a2enmod deflate
> > sudo a2enmod headers
> >
> > and restart apache
> >
> > sudo /etc/init.d/apache2 reload
> >
> >
> > ---
> >
> > ** Affects: mythbuntu
> > Importance: Undecided
> > Status: New
> >
> > --
> > Set Configuration To Speed up MythWeb Page Loading
> > https://bugs.launchpad.net/bugs/251228
> > You received this bug notification because you are a member of
> > Mythbuntu, which is subscribed to Mythbuntu.
> >
>
> --
> Set Configuration To Speed up MythWeb Page Loading
> https://bugs.launchpad.net/bugs/251228
> You received this bug notification because you are a member of
> Mythbuntu, which is subscribed to Mythbuntu.
>

--
Mario Limonciello
<email address hidden>

Thomas Mashos (tgm4883)
Changed in mythbuntu:
importance: Undecided → Wishlist
status: New → Confirmed
Revision history for this message
rhpot1991 (rhpot1991) wrote :

There is a whole section already in mythweb.conf. Remove the comments from in front of these lines and then:
sudo a2enmod headers
sudo a2enmod deflate

Mythweb then runs much quicker (my initial reload took a long time but that could have been the internet tubes being clogged, ITS NOT A TRUCK!).

rhpot1991 (rhpot1991)
Changed in mythbuntu:
assignee: nobody → rhpot1991 (rhpot1991)
milestone: none → 11.04-alpha1
Thomas Mashos (tgm4883)
tags: added: downstream
Revision history for this message
Thomas Mashos (tgm4883) wrote :

@superm1 do you know where the mythweb apache2 conf file comes from? I've been searching both packaging and mythtv source and can't find it. I see a separate git repo for mythweb, but looking through our build scripts I don't see how it's getting pulled in.

Changed in mythbuntu:
milestone: 11.04-alpha1 → none
assignee: rhpot1991 (rhpot1991) → Thomas Mashos (tgm4883)
Revision history for this message
Tom G (tagra123) wrote : Re: [Bug 251228] Re: Set Configuration To Speed up MythWeb Page Loading

I think the file you are looking for is in /etc/apache2 for the
sites-enabled. ???

On Sun, Jan 3, 2016 at 1:53 PM, Thomas Mashos <email address hidden>
wrote:

> @superm1 do you know where the mythweb apache2 conf file comes from?
> I've been searching both packaging and mythtv source and can't find it.
> I see a separate git repo for mythweb, but looking through our build
> scripts I don't see how it's getting pulled in.
>
> ** Changed in: mythbuntu
> Milestone: 11.04-alpha1 => None
>
> ** Changed in: mythbuntu
> Assignee: rhpot1991 (rhpot1991) => Thomas Mashos (tgm4883)
>
> --
> You received this bug notification because you are subscribed to the bug
> report.
> https://bugs.launchpad.net/bugs/251228
>
> Title:
> Set Configuration To Speed up MythWeb Page Loading
>
> To manage notifications about this bug go to:
> https://bugs.launchpad.net/mythbuntu/+bug/251228/+subscriptions
>

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.