Which one of these problem is server side?
Which one of these problem is server side?
Hello,
I tested a CentOS web server speed and the ranking is as below: I want to know which one of these problems is because of server configuration like Apache or... and not web programming?
Thank you.
I tested a CentOS web server speed and the ranking is as below: I want to know which one of these problems is because of server configuration like Apache or... and not web programming?
Thank you.
- KernelOops
- Posts: 428
- Joined: 2013/12/18 15:04:03
- Location: xfs file system
Re: Which one of these problem is server side?
First Byte Time, implies your server was too slow to respond with its first content (like a slow PHP script).
Compress Transfer, implies your apache and/or PHP script did not gzip/brotli/etc the HTML content at transfer time.
Cache static content, implies your apache does not send proper cache headers to enforce cache usage and a long timeout.
Anyway, here is a test on one of my ecommerce websites:
Compress Transfer, implies your apache and/or PHP script did not gzip/brotli/etc the HTML content at transfer time.
Cache static content, implies your apache does not send proper cache headers to enforce cache usage and a long timeout.
Anyway, here is a test on one of my ecommerce websites:
- Attachments
-
- website speed test
- speedtest.png (89.94 KiB) Viewed 846 times
--
R.I.P. CentOS
--
R.I.P. CentOS
--
Re: Which one of these problem is server side?
My server hosting a WordPress website. All of these poor performances is because of LAMP and not WordPress?KernelOops wrote: ↑2020/09/15 17:03:32First Byte Time, implies your server was too slow to respond with its first content (like a slow PHP script).
Compress Transfer, implies your apache and/or PHP script did not gzip/brotli/etc the HTML content at transfer time.
Cache static content, implies your apache does not send proper cache headers to enforce cache usage and a long timeout.
Anyway, here is a test on one of my ecommerce websites:
Can you offer some helps to improve it? Any change in configuration?
Re: Which one of these problem is server side?
Apache handles compression through the module mod_deflate.
Change the config files to load the module by adding a line:
Configure which file types to compress:
Change the config files to load the module by adding a line:
Code: Select all
LoadModule deflate_module modules/mod_deflate.so
Code: Select all
AddOutputFilterByType DEFLATE text/plain
AddOutputFilterByType DEFLATE text/html
AddOutputFilterByType DEFLATE text/xml
AddOutputFilterByType DEFLATE text/css
AddOutputFilterByType DEFLATE application/xml
AddOutputFilterByType DEFLATE application/xhtml+xml
AddOutputFilterByType DEFLATE application/rss+xml
AddOutputFilterByType DEFLATE application/javascript
AddOutputFilterByType DEFLATE application/x-javascript
Re: Which one of these problem is server side?
If your website is on a VPS, first byte time can depend strongly on the load. If a lot was swapped out, the first byte times may increase. You may need to run the test several times to work around this.
Re: Which one of these problem is server side?
You can let your server add Cache-Control header lines by adding something like:
Code: Select all
<FilesMatch "\.(ico|pdf|flv|jpg|jpeg|png|gif|js|css|swf)$">
Header set Cache-Control "max-age=63072000, public"
</FilesMatch>
Re: Which one of these problem is server side?
Thank you so much.
These lines must be added at the end of "httpd.conf" file?
If I have a Virtual Host file, then Can I add these lines at the end of that file? For example, my Virtual Host file is:
Where is the good location to add that lines?
These lines must be added at the end of "httpd.conf" file?
If I have a Virtual Host file, then Can I add these lines at the end of that file? For example, my Virtual Host file is:
Code: Select all
<VirtualHost *:80>
ServerAdmin root@localhost
ServerName myexample.net
ServerAlias www.myexample.net
DocumentRoot /var/www/wordpress
<Directory "/var/www/wordpress">
Options Indexes FollowSymLinks
AllowOverride all
Require all granted
</Directory>
ErrorLog /var/log/httpd/wordpress_error.log
CustomLog /var/log/httpd/wordpress_access.log common
</VirtualHost>
Re: Which one of these problem is server side?
After adding that lines, the result is:
But why this is red? :
Re: Which one of these problem is server side?
The Internet speed of a web server play important role or Hardware equipment?