Browscap.ini
Permalink
Hi there, Readers
Hoping someone can help me with an issue re slow page loads time and my concrete5/website configuration.
In short, some of my website visitors are experiencing slow page loads -- most notably in Chrome. Connectivity is neglible. No coding issues per se...
After checking the logs the only issue I am seeing is this:
syntax error, unexpected $end, expecting ']' in /etc/php.d/full_php_browscap.ini on line 83
Considering the purpose of browscap, it makes sense to assume that errors in this file are probably causing the issue described above..
My questions are
i) Do I even need a browscap.ini file? What are the repercussions of removing it?
ii) If I wanted to update, do I simply rename and paste the latest (up-to-date) .ini file into the /etc/php.d directory overwriting the existing one? Or are there some extra steps to take...? Such as restarting the server etc etc..
Any help is greatly appreciated as I'm running a website without all the required skills :-(
As an aside, I have never updated Concrete5 and have been using the same version for five years. Currently running version 5.6.2
I imagine then the php is old. Could this be factor in the slow page loads for some browsers? I'm scared to death of hitting 'Download' on the latest available update in case my site breaks.
My Environment details are as follows:
# concrete5 Version
5.6.2.1
# concrete5 Packages
Careers (1.0.6), Force SSL Patched (2.5), Kelway Forms (1.0.10), mega menu (1.0.0), News Thinking Events Case Studies (1.0.6), Page Auto Redirect (2.0), Page Redirect (1.4), Page Selector Attribute (1.1), Restore Automated Jobs (1.3), Video Manager (0.3).
# concrete5 Overrides
blocks/portals, blocks/file, blocks/landing_page_content, blocks/office, blocks/twitter_user_timeline, blocks/management_team, blocks/autonav, blocks/home_slideshow, blocks/agenda, blocks/quote, blocks/README.md, blocks/featured_resource, blocks/quick_links, blocks/gallery, blocks/partner_grid, controllers/about.php, controllers/contact.php, controllers/products-services.php, controllers/team-management.php, elements/header_required.php, helpers/cdw_styles.php, helpers/mail.php, helpers/truncate.php, single_pages/page_forbidden.php, single_pages/it-products-and-services.php, single_pages/portals.php, single_pages/page_not_found.php, single_pages/about.php, single_pages/contact.php, single_pages/partners.php, single_pages/products-services.php, single_pages/public-sector.php, single_pages/team-management.php, themes/blank.php, themes/README.md, themes/kelway
# Server Software
Apache
# Server API
apache2handler
# PHP Version
5.3.3
# PHP Extensions
apache2handler, bz2, calendar, Core, ctype, curl, date, ereg, exif, fileinfo, filter, ftp, gd, gettext, gmp, hash, iconv, json, libxml, mbstring, mcrypt, mysql, mysqli, openssl, pcre, PDO, pdo_mysql, pdo_sqlite, Phar, Reflection, session, shmop, SimpleXML, sockets, SPL, sqlite3, standard, tokenizer, xml, zip, zlib.
# PHP Settings
max_execution_time - 30
log_errors_max_len - 1024
max_file_uploads - 20
max_input_nesting_level - 64
max_input_time - 60
max_input_vars - 1000
memory_limit - 256M
post_max_size - 20M
safe_mode - Off
safe_mode_exec_dir - <i>no value</i>
safe_mode_gid - Off
safe_mode_include_dir - <i>no value</i>
sql.safe_mode - Off
upload_max_filesize - 20M
mysql.max_links - Unlimited
mysql.max_persistent - Unlimited
mysqli.max_links - Unlimited
mysqli.max_persistent - Unlimited
pcre.backtrack_limit - 100000
pcre.recursion_limit - 100000
session.cache_limiter - nocache
session.gc_maxlifetime - 7200
safe_mode_allowed_env_vars - PHP_
safe_mode_protected_env_vars - LD_LIBRARY_PATH
Hoping someone can help me with an issue re slow page loads time and my concrete5/website configuration.
In short, some of my website visitors are experiencing slow page loads -- most notably in Chrome. Connectivity is neglible. No coding issues per se...
After checking the logs the only issue I am seeing is this:
syntax error, unexpected $end, expecting ']' in /etc/php.d/full_php_browscap.ini on line 83
Considering the purpose of browscap, it makes sense to assume that errors in this file are probably causing the issue described above..
My questions are
i) Do I even need a browscap.ini file? What are the repercussions of removing it?
ii) If I wanted to update, do I simply rename and paste the latest (up-to-date) .ini file into the /etc/php.d directory overwriting the existing one? Or are there some extra steps to take...? Such as restarting the server etc etc..
Any help is greatly appreciated as I'm running a website without all the required skills :-(
As an aside, I have never updated Concrete5 and have been using the same version for five years. Currently running version 5.6.2
I imagine then the php is old. Could this be factor in the slow page loads for some browsers? I'm scared to death of hitting 'Download' on the latest available update in case my site breaks.
My Environment details are as follows:
# concrete5 Version
5.6.2.1
# concrete5 Packages
Careers (1.0.6), Force SSL Patched (2.5), Kelway Forms (1.0.10), mega menu (1.0.0), News Thinking Events Case Studies (1.0.6), Page Auto Redirect (2.0), Page Redirect (1.4), Page Selector Attribute (1.1), Restore Automated Jobs (1.3), Video Manager (0.3).
# concrete5 Overrides
blocks/portals, blocks/file, blocks/landing_page_content, blocks/office, blocks/twitter_user_timeline, blocks/management_team, blocks/autonav, blocks/home_slideshow, blocks/agenda, blocks/quote, blocks/README.md, blocks/featured_resource, blocks/quick_links, blocks/gallery, blocks/partner_grid, controllers/about.php, controllers/contact.php, controllers/products-services.php, controllers/team-management.php, elements/header_required.php, helpers/cdw_styles.php, helpers/mail.php, helpers/truncate.php, single_pages/page_forbidden.php, single_pages/it-products-and-services.php, single_pages/portals.php, single_pages/page_not_found.php, single_pages/about.php, single_pages/contact.php, single_pages/partners.php, single_pages/products-services.php, single_pages/public-sector.php, single_pages/team-management.php, themes/blank.php, themes/README.md, themes/kelway
# Server Software
Apache
# Server API
apache2handler
# PHP Version
5.3.3
# PHP Extensions
apache2handler, bz2, calendar, Core, ctype, curl, date, ereg, exif, fileinfo, filter, ftp, gd, gettext, gmp, hash, iconv, json, libxml, mbstring, mcrypt, mysql, mysqli, openssl, pcre, PDO, pdo_mysql, pdo_sqlite, Phar, Reflection, session, shmop, SimpleXML, sockets, SPL, sqlite3, standard, tokenizer, xml, zip, zlib.
# PHP Settings
max_execution_time - 30
log_errors_max_len - 1024
max_file_uploads - 20
max_input_nesting_level - 64
max_input_time - 60
max_input_vars - 1000
memory_limit - 256M
post_max_size - 20M
safe_mode - Off
safe_mode_exec_dir - <i>no value</i>
safe_mode_gid - Off
safe_mode_include_dir - <i>no value</i>
sql.safe_mode - Off
upload_max_filesize - 20M
mysql.max_links - Unlimited
mysql.max_persistent - Unlimited
mysqli.max_links - Unlimited
mysqli.max_persistent - Unlimited
pcre.backtrack_limit - 100000
pcre.recursion_limit - 100000
session.cache_limiter - nocache
session.gc_maxlifetime - 7200
safe_mode_allowed_env_vars - PHP_
safe_mode_protected_env_vars - LD_LIBRARY_PATH
Hi mnakalay
Thanks for the advice.
I don't think I can take the risk of upgrading concrete5 however.
The website is a massive corporation and I cannot afford for something to go wrong. I'm seeing many users comments here about how the upgrade has destroyed their clients site.
https://documentation.concrete5.org/developers/installation/upgradin...
As for PHP - can I simply update this with .htaccess by adding a new line:-
AddHandler application/x-httpd-php70 .php .php5 .php4 .php3
Thanks for the advice.
I don't think I can take the risk of upgrading concrete5 however.
The website is a massive corporation and I cannot afford for something to go wrong. I'm seeing many users comments here about how the upgrade has destroyed their clients site.
https://documentation.concrete5.org/developers/installation/upgradin...
As for PHP - can I simply update this with .htaccess by adding a new line:-
AddHandler application/x-httpd-php70 .php .php5 .php4 .php3
Actually that wont work as the site is on VPS.
Is this then the correct method:-
sudo apt-get install php5
And then restart with...
sudo service apache2 restart
Actually I log in as root. Does this mean I can drop the 'sudo'..?
sudo apt-get install php5
And then restart with...
sudo service apache2 restart
Actually I log in as root. Does this mean I can drop the 'sudo'..?
That problem seems to appear mostly when using a PHP function called parde_ini_file() which is used only once in Concrete5 and seems to be used properly.
If you Google your issue you will see that it seems to happen often.
You are using a very outdated version of PHP so my suggestion is to upgrade to PHP 5.6.x and hopefully, it will fix the problem.
What's more, you should update Concrete5 for security reasons. The legacy branch has now reached version 5.6.3.5 I believe.