How to fix path to PHP libraries?

Need help upgrading your Joomla! website or converting to Joomla! 3.x?

Moderator: General Support Moderators

Forum rules
Forum Rules
Absolute Beginner's Guide to Joomla! <-- please read before posting, this means YOU.
Forum Post Assistant - If you are serious about wanting help, you will use this tool to help you post.
Post Reply
becauseITsThere
Joomla! Fledgling
Joomla! Fledgling
Posts: 1
Joined: Tue Sep 10, 2019 8:49 pm

How to fix path to PHP libraries?

Post by becauseITsThere » Tue Sep 10, 2019 9:27 pm

Hi,
can someone please point me where to look for this mismatch or other reason that causes this problem?

This is for a non-profit website that I volunteered to host.

Thanks for any help.
Forum Post Assistant (v1.4.9 (lambrusco)) : 10th September 2019 wrote:
Problem Description :: wrote:Joomla picked up wrong dynamic library path
Log/Error Message :: wrote:PHP Warning: PHP Startup: Unable to load dynamic library
Last PHP Error(s) Reported :: wrote:[10-Sep-2019 15:13:09 UTC] PHP Warning: PHP Startup: Unable to load dynamic library 'imagick.so' (tried: /usr/php/54/usr/lib64/php/modules/imagick.so (/usr/php/54/usr/lib64/php/modules/imagick.so: cannot open shared object file: No such file or directory), /usr/php/54/usr/lib64/php/modules/imagick.so.so (/usr/php/54/usr/lib64/php/modules/imagick.so.so: cannot open shared object file: No such file or directory)) in Unknown on line 0
Actions Taken To Resolve wrote:Because going from Joomla 3.1 to 3.9, I had to upgrade from php 5.4 to php 7.2 (which worked fine for a Word Press site that uses the same database). But I can't figure out where to direct Joomla to the new libraries. I did all recommended extension updates and deactivated 3rd party extensions that didn't have an update. Strangely, the backend works fine, but frontend just displays

Warning: session_start(): Failed to read session data: user (path: /tmp) in /home2/xxaccountnamexx/public_html/xxxx/ns/libraries/joomla/session/handler/native.php on line 260
Error: Failed to start application: Failed to start the session

This Joomla site is on a BlueHost add-on domain. Their support says they need 24 to 48 hrs to look into it and that they are not so familiar with Joomla ...
Basic Environment :: wrote:Joomla! Instance :: Joomla! 3.9.11-Stable (Amani) 13-August-2019
Joomla! Platform :: Joomla Platform 13.1.0-Stable (Curiosity) 24-Apr-2013
Joomla! Configured :: Yes | Writable (644) | Owner: --protected-- . (uid: /gid: ) | Group: --protected-- (gid: ) | Valid For: 3.9
Configuration Options :: Offline: false | SEF: true | SEF Suffix: false | SEF ReWrite: false | .htaccess/web.config: Yes | GZip: false | Cache: false | CacheTime: 15 | CacheHandler: file | CachePlatformPrefix: false | FTP Layer: false | Proxy: false | LiveSite: | Session lifetime: 15 | Session handler: database | Shared sessions: false | SSL: 0 | Error Reporting: development | Site Debug: true | Language Debug: false | Default Access: 1 | Unicode Slugs: false | dbConnection Type: mysqli | PHP Supports J! 3.9.11: Yes | Database Supports J! 3.9.11: Unknown | Database Credentials Present: Yes |

Host Configuration :: OS: Linux | OS Version: 4.14.94-164.ELK.el6.x86_64 | Technology: x86_64 | Web Server: Apache | Encoding: br, gzip, deflate | Doc Root: --protected-- | System TMP Writable: Yes | Free Disk Space : 62.90 GiB |

PHP Configuration :: Version: 7.2.22 | PHP API: cgi-fcgi | Session Path Writable: Yes | Display Errors: | Error Reporting: 32759 | Log Errors To: error_log | Last Known Error: 10th September 2019 15:30:35. | Register Globals: | Magic Quotes: | Safe Mode: | Allow url fopen: 1 | Open Base: | Uploads: 1 | Max. Upload Size: 64M | Max. POST Size: 64M | Max. Input Time: 60 | Max. Execution Time: 30 | Memory Limit: 256M

Database Configuration :: Connection Error: : Database Credentials Present? in Configuration...
Detailed Environment :: wrote:PHP Extensions :: Core (7.2.22) | date (7.2.22) | libxml (7.2.22) | openssl (7.2.22) | pcre (7.2.22) | zlib (7.2.22) | filter (7.2.22) | hash (1.0) | pcntl (7.2.22) | readline (7.2.22) | Reflection (7.2.22) | SPL (7.2.22) | session (7.2.22) | standard (7.2.22) | cgi-fcgi () | ionCube Loader (10.3.8) | Zend Engine (3.2.0) |
Potential Missing Extensions :: xml | zip | curl | iconv | mbstring | mysqli | pdo_mysql |

Switch User Environment (Experimental) :: PHP CGI: Yes | Server SU: Yes | PHP SU: Yes | Custom SU (LiteSpeed/Cloud/Grid): No
Potential Ownership Issues: Maybe
Folder Permissions :: wrote:Core Folders :: images/ (755) | components/ (755) | modules/ (755) | plugins/ (755) | language/ (755) | templates/ (755) | cache/ (755) | logs/ (755) | tmp/ (755) | administrator/components/ (755) | administrator/modules/ (755) | administrator/language/ (755) | administrator/templates/ (755) | administrator/logs/ (---) |

Elevated Permissions (First 10) ::
Extensions Discovered :: wrote:Components :: SITE ::
Core :: com_mailto (3.0.0) ? | com_wrapper (3.0.0) ? |
3rd Party:: WF_LINK_SEARCH_TITLE (2.7.17) ? | WF_LINKS_JOOMLALINKS_TITLE (2.7.17) ? | WF_POPUPS_WINDOW_TITLE (2.6.9) ? | WF_POPUPS_JCEMEDIABOX_TITLE (2.7.17) ? | WF_AGGREGATOR_VINE_TITLE (2.6.9) ? | WF_AGGREGATOR_VIMEO_TITLE (2.7.17) ? | WF_AGGREGATOR_[youtube]_TITLE (2.7.17) ? | WF_AGGREGATOR_DAILYMOTION_TITLE (2.7.17) ? | WF_FILESYSTEM_JOOMLA_TITLE (2.7.17) ? | WF_BROWSER_TITLE (2.7.17) ? | WF_IMGMANAGER_TITLE (2.7.17) ? | WF_VISUALBLOCKS_TITLE (2.7.17) ? | WF_SPELLCHECKER_TITLE (2.7.17) ? | WF_STYLESELECT_TITLE (2.7.17) ? | WF_INLINEPOPUPS_TITLE (2.6.9) ? | WF_MEDIA_TITLE (2.7.17) ? | WF_XHTMLXTRAS_TITLE (2.7.17) ? | WF_LISTS_TITLE (2.7.17) ? | WF_SOURCE_TITLE (2.7.17) ? | WF_CHARMAP_TITLE (2.7.17) ? | WF_PREVIEW_TITLE (2.7.17) ? | WF_ANCHOR_TITLE (2.7.17) ? | WF_ARTICLE_TITLE (2.7.17) ? | WF_FULLSCREEN_TITLE (2.7.17) ? | WF_SEARCHREPLACE_TITLE (2.7.17) ? | WF_PRINT_TITLE (2.7.17) ? | WF_TABLE_TITLE (2.7.17) ? | WF_CLIPBOARD_TITLE (2.7.17) ? | WF_FONTSELECT_TITLE (2.7.17) ? | WF_FORMATSELECT_TITLE (2.7.17) ? | WF_CONTEXTMENU_TITLE (2.7.17) ? | WF_HR_TITLE (2.7.17) ? | WF_DIRECTIONALITY_TITLE (2.7.17) ? | WF_LAYER_TITLE (2.7.17) ? | WF_VISUALCHARS_TITLE (2.7.17) ? | WF_WORDCOUNT_TITLE (2.7.17) ? | WF_AUTOSAVE_TITLE (2.7.17) ? | WF_FONTSIZESELECT_TITLE (2.7.17) ? | WF_TEXTCASE_TITLE (2.7.17) ? | WF_LINK_TITLE (2.7.17) ? | WF_FONTCOLOR_TITLE (2.7.17) ? | WF_EMOTIONS_TITLE (2.7.17) ? | WF_CLEANUP_TITLE (2.7.17) ? | WF_NONBREAKING_TITLE (2.7.17) ? | WF_STYLE_TITLE (2.7.17) ? | WF_KITCHENSINK_TITLE (2.7.17) ? |

Components :: ADMIN ::
Core :: com_postinstall (3.2.0) ? | com_newsfeeds (3.0.0) ? | com_checkin (3.0.0) ? | com_users (3.0.0) ? | com_config (3.0.0) ? | com_tags (3.1.0) ? | com_finder (3.0.0) ? | com_actionlogs (3.9.0) ? | com_joomlaupdate (3.6.2) ? | com_privacy (3.9.0) ? | com_weblinks (3.6.0) ? | com_fields (3.7.0) ? | com_categories (3.0.0) ? | com_ajax (3.2.0) ? | com_installer (3.0.0) ? | com_plugins (3.0.0) ? | com_login (3.0.0) ? | com_cpanel (3.0.0) ? | com_admin (3.0.0) ? | com_search (3.0.0) ? | com_content (3.0.0) ? | com_media (3.0.0) ? | com_redirect (3.0.0) ? | com_messages (3.0.0) ? | com_languages (3.0.0) ? | com_cache (3.0.0) ? | com_banners (3.0.0) ? | com_modules (3.0.0) ? | com_menus (3.0.0) ? | com_templates (3.0.0) ? | com_contenthistory (3.2.0) ? | com_associations (3.7.0) ? |
3rd Party:: Akeeba (6.6.0) ? | Admintools (5.3.4) ? | COM_JCE (2.7.17) ? | Mailster (1.1.0) ? | Lifestream (3.1.5) ? | LOGINGUARD (3.2.0) ? | COM_JSVISIONARY (2.1.7) ? |

Modules :: SITE ::
Core :: mod_custom (3.0.0) ? | mod_feed (3.0.0) ? | mod_finder (3.0.0) ? | mod_banners (3.0.0) ? | mod_search (3.0.0) ? | mod_wrapper (3.0.0) ? | mod_articles_category (3.0.0) ? | mod_tags_similar (3.1.0) ? | mod_weblinks (3.6.0) ? | mod_footer (3.0.0) ? | mod_stats (3.0.0) ? | mod_random_image (3.0.0) ? | mod_tags_popular (3.1.0) ? | mod_whosonline (3.0.0) ? | mod_related_items (3.0.0) ? | mod_articles_archive (3.0.0) ? | mod_users_latest (3.0.0) ? | mod_syndicate (3.0.0) ? | mod_articles_latest (3.0.0) ? | mod_menu (3.0.0) ? | mod_login (3.0.0) ? | mod_articles_categories (3.0.0) ? | mod_breadcrumbs (3.0.0) ? | mod_articles_news (3.0.0) ? | mod_languages (3.5.0) ? | mod_articles_popular (3.0.0) ? |
3rd Party:: Easy Social Icons (1.0.2) ? | Lifestream Links (3.1.1) ? | MOD_JSSHACKSLIDES (3.1.15) ? | Mailster Subscriber (1.1.0) ? | Mailster Subscriber (1.1.0) ? | Lifestream (3.1.2) ? |

Modules :: ADMIN ::
Core :: mod_custom (3.0.0) ? | mod_feed (3.0.0) ? | mod_popular (3.0.0) ? | mod_title (3.0.0) ? | mod_logged (3.0.0) ? | mod_privacy_dashboard (3.9.0) ? | mod_status (3.0.0) ? | mod_quickicon (3.0.0) ? | mod_stats_admin (3.0.0) ? | mod_latest (3.0.0) ? | mod_version (3.0.0) ? | mod_toolbar (3.0.0) ? | mod_submenu (3.0.0) ? | mod_sampledata (3.8.0) ? | mod_latestactions (3.9.0) ? | mod_menu (3.0.0) ? | mod_login (3.0.0) ? | mod_multilangstatus (3.0.0) ? |
3rd Party::

Libraries ::
Core ::
3rd Party:: file_fof30 (3.4.6) ? |

Plugins ::
Core :: plg_search_tags (3.0.0) ? | plg_search_newsfeeds (3.0.0) ? | plg_search_weblinks (3.6.0) ? | plg_search_categories (3.0.0) ? | plg_search_contacts (3.0.0) ? | plg_search_content (3.0.0) ? | plg_privacy_message (3.9.0) ? | plg_privacy_actionlogs (3.9.0) ? | plg_privacy_user (3.9.0) ? | plg_privacy_consents (3.9.0) ? | plg_privacy_content (3.9.0) ? | plg_extension_joomla (3.0.0) ? | plg_user_terms (3.9.0) ? | plg_user_profile (3.0.0) ? | plg_user_contactcreator (3.0.0) ? | plg_user_joomla (3.0.0) ? | plg_editors-xtd_readmore (3.0.0) ? | plg_editors-xtd_menu (3.7.0) ? | plg_editors-xtd_article (3.0.0) ? | plg_editors-xtd_pagebreak (3.0.0) ? | plg_editors-xtd_fields (3.7.0) ? | plg_editors-xtd_module (3.5.0) ? | plg_editors-xtd_image (3.0.0) ? | plg_fields_radio (3.7.0) ? | plg_fields_integer (3.7.0) ? | plg_fields_media (3.7.0) ? | plg_fields_editor (3.7.0) ? | plg_fields_user (3.7.0) ? | plg_fields_sql (3.7.0) ? | plg_fields_calendar (3.7.0) ? | plg_fields_usergrouplist (3.7.0) ? | plg_fields_imagelist (3.7.0) ? | plg_fields_checkboxes (3.7.0) ? | plg_fields_text (3.7.0) ? | plg_fields_textarea (3.7.0) ? | plg_fields_url (3.7.0) ? | plg_fields_repeatable (3.9.0) ? | plg_fields_list (3.7.0) ? | plg_fields_color (3.7.0) ? | plg_installer_packageinstaller (3.6.0) ? | plg_installer_webinstaller (2.0.1) ? | PLG_INSTALLER_URLINSTALLER (3.6.0) ? | PLG_INSTALLER_FOLDERINSTALLER (3.6.0) ? | plg_captcha_recaptcha_invisible (3.8) ? | plg_captcha_recaptcha (3.4.0) ? | plg_system_debug (3.0.0) ? | plg_system_languagefilter (3.0.0) ? | plg_system_privacyconsent (3.9.0) ? | plg_system_logout (3.0.0) ? | plg_system_sef (3.0.0) ? | PLG_SYSTEM_ACTIONLOGS (3.9.0) ? | plg_system_remember (3.0.0) ? | plg_system_p3p (3.0.0) ? | plg_system_log (3.0.0) ? | plg_system_languagecode (3.0.0) ? | plg_system_fields (3.7.0) ? | plg_system_logrotation (3.9.0) ? | plg_system_highlight (3.0.0) ? | plg_system_redirect (3.0.0) ? | plg_system_stats (3.5.0) ? | plg_system_cache (3.0.0) ? | plg_system_updatenotification (3.5.0) ? | plg_system_sessiongc (3.8.6) ? | plg_quickicon_privacycheck (3.9.0) ? | plg_quickicon_joomlaupdate (3.0.0) ? | plg_quickicon_phpversioncheck (3.7.0) ? | plg_quickicon_extensionupdate (3.0.0) ? | PLG_ACTIONLOG_JOOMLA (3.9.0) ? | plg_authentication_ldap (3.0.0) ? | plg_authentication_joomla (3.0.0) ? | plg_authentication_gmail (3.0.0) ? | plg_authentication_cookie (3.0.0) ? | plg_twofactorauth_yubikey (3.2.0) ? | plg_twofactorauth_totp (3.2.0) ? | plg_content_pagenavigation (3.0.0) ? | plg_content_vote (3.0.0) ? | plg_content_pagebreak (3.0.0) ? | plg_content_joomla (3.0.0) ? | plg_content_fields (3.7.0) ? | plg_content_geshi (3.0.0) ? | plg_content_loadmodule (3.0.0) ? | plg_content_confirmconsent (3.9.0) ? | plg_content_emailcloak (3.0.0) ? | plg_content_finder (3.0.0) ? | plg_finder_tags (3.0.0) ? | plg_finder_newsfeeds (3.0.0) ? | plg_finder_weblinks (3.6.0) ? | plg_finder_categories (3.0.0) ? | plg_finder_contacts (3.0.0) ? | plg_finder_content (3.0.0) ? |
3rd Party:: Mailster Search (1.1.0) ? | Mailster Search (0.4.1) ? | plg_extension_jce (2.7.17) ? | PLG_USER_LOGINGUARD (3.2.0) ? | Editor - Helium Free (1.0.0_beta) ? | plg_editors_codemirror (5.40.0) ? | plg_editors_tinymce (4.5.11) ? | Editor - MarkItUp powered by Helium (1.0.0_beta) ? | plg_editors_jce (2.7.17) ? | PLG_LOGINGUARD_YUBIKEY (3.2.0) ? | PLG_LOGINGUARD_WEBAUTHN (3.2.0) ? | PLG_LOGINGUARD_TOTP (3.2.0) ? | PLG_LOGINGUARD_SMSAPI (3.2.0) ? | PLG_LOGINGUARD_EMAIL (3.2.0) ? | PLG_LOGINGUARD_FIXED (3.2.0) ? | PLG_LOGINGUARD_PUSHBULLET (3.2.0) ? | PLG_LOGINGUARD_U2F (3.2.0) ? | plg_fields_mediajce (2.7.17) ? | plg_installer_jce (2.7.17) ? | PLG_SYSTEM_BACKUPONUPDATE (6.6.0) ? | Mailster Email Forwarder (0.4.1) ? | Mailster Email Forwarder (1.1.0) ? | PLG_SYSTEM_AKEEBAUPDATECHECK (6.6.0) ? | PLG_SYSTEM_AKGEOIP (2.0.0) ? | plg_system_osmylicensesmanager (1.3.1) ? | plg_system_ossystem (1.3.0) ? | PLG_SYSTEM_LOGINGUARD (3.2.0) ? | Mailster Profile (1.1.0) ? | Mailster Profile (1.1.0) ? | System - Google Maps (3.5) ? | JS Visionary (Plugin) (1.3.1) ? | plg_system_jce (2.7.17) ? | Mailster CB Plugin (0.4.1) ? | Mailster CB Plugin (1.1.0) ? | PLG_SYSTEM_ADMINTOOLS (5.3.4) ? | PLG_SYS_DSCONSTANT (1.0.1) ? | Lifestream - Flickr (1.0.0) ? | Lifestream - K2 (3.0.0) ? | Lifestream - Instagram (1.0.2) ? | Lifestream - Digg (3.0.0) ? | Lifestream - [spam] (3.0.1) ? | Lifestream - Linkedin (3.1.2) ? | Lifestream - Twitter (3.1.1) ? | Lifestream - Flickr (3.0.0) ? | Lifestream - Pandora (3.0.0) ? | Lifestream - [spam] (3.0.0) ? | Lifestream - Adapter (3.1.1) ? | Lifestream - Picasa (3.0.0) ? | Lifestream - RSS (3.0.0) ? | Lifestream - Joomla (3.0.0) ? | Lifestream - Grooveshark (3.0.0) ? | Lifestream - Last.fm (3.0.0) ? | Lifestream - Delicious (3.0.0) ? | Lifestream - Vimeo (3.0.2) ? | Lifestream - Facebook (3.0.2) ? | Lifestream - [youtube] (3.0.0) ? | Lifestream - Foursquare (3.0.0) ? | Lifestream - StumbleUpon (3.0.0) ? | plg_quickicon_akeebabackup (6.6.0) ? | plg_quickicon_jce (2.7.17) ? | PLG_ACTIONLOG_AKEEBABACKUP (6.6.0) ? | PLG_ACTIONLOG_LOGINGUARD (3.2.0) ? | PLG_ACTIONLOG_ADMINTOOLS (1.0) ? | Mailster Subscriber (1.1.0) ? | Mailster Subscriber (1.1.0) ? | (<![CDATA[1.1.) ? | plg_content_jce (2.7.17) ? |
Templates Discovered :: wrote:Templates :: SITE :: beez3 (3.1.0) ? | js_saltandpepper (1.1.2) ? | protostar (1.0) ? |
Templates :: ADMIN :: isis (1.0) ? | hathor (3.0.0) ? |

User avatar
toivo
Joomla! Master
Joomla! Master
Posts: 11218
Joined: Thu Feb 15, 2007 5:48 am
Location: Suzhou, China

Re: How to fix path to PHP libraries?

Post by toivo » Tue Sep 10, 2019 10:27 pm

The path to PHP libraries is still pointing to PHP 5.4, which your host needs to fix, together with a number of missing extensions, including mysqli.

According to the FPA results, the Joomla database details in the file configuration.php are also incorrect, probably because of the missing mysqli.
Toivo Talikka, Global Moderator

User avatar
leolam
Joomla! Master
Joomla! Master
Posts: 19666
Joined: Mon Aug 29, 2005 10:17 am
Location: Netherlands/ UK/ S'pore/Jakarta/ North America
Contact:

Re: How to fix path to PHP libraries?

Post by leolam » Wed Sep 11, 2019 4:51 am

My only remark here is CHANGE HOST!

Besides on GoDaddy I have not seen such badly and outdated server config and crap before. Start running! (see also https://downloads.joomla.org/technical-requirements)

Leo 8)
Joomla's #1 Professional Support Provider:
-> Joomla Professional Support: https://gws-desk.com -
-> Joomla Specialized Hosting Solutions: https://gws-host.com -
-> Joomla Webmaster Services: gws-webmaster.services

consagouspushp
Joomla! Fledgling
Joomla! Fledgling
Posts: 1
Joined: Wed Sep 11, 2019 8:32 am

Re: How to fix path to PHP libraries?

Post by consagouspushp » Wed Sep 11, 2019 9:47 am

There are several methods for setting the include path in PHP. By using include paths, you can centralize code that your web site frequently uses. Additionally, some features, such as PEAR, require you to set the include path so PHP can locate the appropriate files.

You should create the include directory at the username directory level (that is, one level above the public_html directory). This ensures that sensitive files are not in the public_html directory, which anyone can access.

#1 PHP INCLUDE PATH METHOD: USE A CUSTOM PHP.INI FILE

You can use a custom php.ini file to specify the include path. If you have not already set up a custom php.ini file, please read this article before you proceed.

To set the include path using a custom php.ini file:

Open the php.ini file in an editor. You can do this by logging into your account over SSH, or by using the cPanel File Manager.

Add the following line to the php.ini file. Replace USERNAME with your A2 Hosting username and replace include_directory with the include directory's name:

include_path = ".:/home/USERNAME/include_directory"

Save the file. The include path is now set.

#2 PHP INCLUDE PATH METHOD: USE THE SET_INCLUDE_PATH() FUNCTION

Instead of setting the include path globally in a configuration file, you can set the path directly in a script file. To do this, you use the set_include_path() function.

When you set the include path using this method, it is only effective for the duration of the script's execution. The include path that you specify does not affect any other running scripts.
The following sample code demonstrates how to set the include path using the set_include_path() function:

<?php
set_include_path(".:/usr/lib/php:/usr/local/lib/php:/home/USERNAME/php");
?>

#3 PHP INCLUDE PAH METHOD: USE THE .HTACCESS FILE

A few of our VPS and dedicated servers use Apache modules instead of CGI binaries to run PHP. If your server uses an Apache module to run PHP, you can modify the .htaccess file in your web site's document root directory.

To set the include path using the .htaccess file:

Open the .htaccess file in an editor. You can do this by logging into your account over SSH, or by using the cPanel File Manager.

Add the following line to the .htaccess file. Replace path with the include directory's path:
php_value include_path ".:/path"

Save the file. The include path is now set.


Post Reply

Return to “Migrating and Upgrading to Joomla! 3.x”