SYSTEM WARNING: 'file_get_contents(https://www.clearos.com/?rendertype=json&get=header): failed to open stream: Connection refused' in '/var/www/virtual/newwrapper/cf_topmenu.inc' line 5

ClearOS Bug Tracker


View Issue Details Jump to Notes ] Issue History ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0001717ClearOSapp-tiki - Tiki Wikipublic2014-05-26 13:012015-01-31 18:53
Reportermarclaporte 
Assigned Tomarclaporte 
PrioritylowSeverityminorReproducibilityalways
StatusclosedResolutionsuspended 
PlatformOSOS Version
Product Version6.6.0 Beta 1 
Target VersionFixed in Version 
Summary0001717: Yahoo! YSlow and Google PageSpeed: server settings to improve web application performance
DescriptionThis ticket is from a Tiki perspective but will be useful for any web app.

These sites provide performance scores for websites:
* http://www.webpagetest.org/ [^]
* http://gtmetrix.com/ [^]
* http://www.showslow.com/ [^]
Steps To Reproduce1- Install a Tiki
2- Visit tiki-admin.php?page=performance
3- Activate advanced features
4- Turn on GZip output and all minifications of JS and CSS

Provide your site URL to http://gtmetrix.com [^] and check results for both YSlow and PageSpeed. Some are application dependent, and some are server dependent.

As of 6.6 Beta 1, the following could be improved:
* PageSpeed: Enable gzip compression
* PageSpeed: Enable Keep-Alive
* YSlow: Compress components with gzip

Ideally, they would be settings in the web server admin panel, defaulted to on.

Thanks!
TagsNo tags attached.
Attached Files

- Relationships

-  Notes
(0001217)
marclaporte (manager)
2014-06-25 14:15

As per http://stackoverflow.com/questions/970151/how-to-check-mod-deflate-is-enabled-in-apache, [^] it looks like mod-deflate is enabled but YSlow and PageSpeed report otherwise.

[root@ conf]# apachectl -t -D DUMP_MODULES
Loaded Modules:
 core_module (static)
 mpm_prefork_module (static)
 http_module (static)
 so_module (static)
 auth_basic_module (shared)
 auth_digest_module (shared)
 authn_file_module (shared)
 authn_alias_module (shared)
 authn_anon_module (shared)
 authn_dbm_module (shared)
 authn_default_module (shared)
 authz_host_module (shared)
 authz_user_module (shared)
 authz_owner_module (shared)
 authz_groupfile_module (shared)
 authz_dbm_module (shared)
 authz_default_module (shared)
 ldap_module (shared)
 authnz_ldap_module (shared)
 include_module (shared)
 log_config_module (shared)
 logio_module (shared)
 env_module (shared)
 ext_filter_module (shared)
 mime_magic_module (shared)
 expires_module (shared)
 deflate_module (shared)
 headers_module (shared)
 usertrack_module (shared)
 setenvif_module (shared)
 mime_module (shared)
 dav_module (shared)
 status_module (shared)
 autoindex_module (shared)
 info_module (shared)
 dav_fs_module (shared)
 vhost_alias_module (shared)
 negotiation_module (shared)
 dir_module (shared)
 actions_module (shared)
 speling_module (shared)
 userdir_module (shared)
 alias_module (shared)
 substitute_module (shared)
 rewrite_module (shared)
 proxy_module (shared)
 proxy_balancer_module (shared)
 proxy_ftp_module (shared)
 proxy_http_module (shared)
 proxy_ajp_module (shared)
 proxy_connect_module (shared)
 cache_module (shared)
 suexec_module (shared)
 disk_cache_module (shared)
 cgi_module (shared)
 version_module (shared)
 authnz_external_module (shared)
 authz_unixgroup_module (shared)
 php5_module (shared)
 ssl_module (shared)
Syntax OK
[root@marclaporte conf]#
(0001218)
marclaporte (manager)
2014-06-25 14:22

To help with the investigation, some additional info:

Tiki ships with a _htaccess file. This is activated either by renaming or symlinking from .htaccess to _htaccess. We know the file is taken into account because other parts of it are functional.

Here is the part of the _htaccess file related to deflate_module:

<IfModule deflate_module>
    AddOutputFilterByType DEFLATE text/html text/plain text/xml text/css application/x-javascript application/javascript
</IfModule>

Thanks!
(0001366)
marclaporte (manager)
2015-01-31 18:42

For the record, this code works for Tiki on ClearOS 6.x, but I am concerned it may cause issue in other versions:

<IfModule mod_deflate.c>
    AddOutputFilterByType DEFLATE text/html text/plain text/xml text/css application/x-javascript application/javascript
    <filesMatch "\.(js|css|html)$">
        SetOutputFilter DEFLATE
    </filesMatch>
</IfModule>


Ref:
https://github.com/h5bp/html5-boilerplate/issues/1012#issuecomment-7910513 [^]
http://stackoverflow.com/questions/5230202/apache-addoutputfilterbytype-is-deprecated-how-to-rewrite-using-mod-filter [^]
(0001367)
marclaporte (manager)
2015-01-31 18:52

So it looks like there may not much that ClearOS can / should do differently.

Closing here and moving to here:
In htaccess, IfModule deflate_module is not picking up for ClearOS Help
https://dev.tiki.org/item5502 [^]

I will test with other PHP web apps to see if they are OK, and will re-open this if ClearOS could do anything differently.
(0001368)
marclaporte (manager)
2015-01-31 18:53

I will test with other PHP web apps to see if they are OK, and will re-open this if ClearOS could do anything differently.

- Issue History
Date Modified Username Field Change
2014-05-26 13:01 marclaporte New Issue
2014-05-27 08:54 user2 Status new => acknowledged
2014-06-25 14:15 marclaporte Note Added: 0001217
2014-06-25 14:22 marclaporte Note Added: 0001218
2015-01-31 18:42 marclaporte Note Added: 0001366
2015-01-31 18:52 marclaporte Note Added: 0001367
2015-01-31 18:53 marclaporte Note Added: 0001368
2015-01-31 18:53 marclaporte Status acknowledged => closed
2015-01-31 18:53 marclaporte Assigned To => marclaporte
2015-01-31 18:53 marclaporte Resolution open => suspended

SYSTEM WARNING: 'file_get_contents(https://www.clearos.com/?rendertype=json&get=footer): failed to open stream: Connection refused' in '/var/www/virtual/newwrapper/cf_footer.inc' line 7