Advertisement

cant get past Failed opening required '/var/www/html/kaos/administrator/cache/autoload_psr4.php' Topic is solved

Need help installing Joomla! 5.x? For all Joomla! 5.x installation issues please use this forum.

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.
Windows Defender SmartScreen Issues <-- please read this if using Windows 10
Post Reply
Efwis1
Joomla! Apprentice
Joomla! Apprentice
Posts: 6
Joined: Wed Sep 13, 2023 2:48 pm

cant get past Failed opening required '/var/www/html/kaos/administrator/cache/autoload_psr4.php'

Post by Efwis1 » Sun Mar 09, 2025 7:23 pm

I have been looking all over for the answer to this. I'm on ubuntu 24.04.1 server not accessible from outside my personal network. Trying to set up testing but keep getting the following error whenever I try to start the installtion:
Failed opening required '/var/www/html/kaos/administrator/cache/autoload_psr4.php' (include_path='.:/usr/share/php')
Below find my FPA info.
Forum Post Assistant (v1.6.7) : 9-Mar-2025 wrote:
Basic Environment :: wrote:Joomla! Instance :: Joomla! 5.2.4-Stable (Uthabiti) 18-February-2025
Joomla! Configured :: Not Found

Host Configuration :: OS: Linux | OS Version: 6.8.0-53-generic | Technology: x86_64 | Web Server: Apache/2.4.58 (Ubuntu) | Encoding: gzip, deflate | System TMP Writable: Yes | Free Disk Space : 58.56 GiB |

PHP Configuration :: Version: 8.3.6 | PHP API: apache2handler | Session Path Writable: Yes | Display Errors: 0 | Error Reporting: 22527 | Log Errors To: | Last Known Error: | Register Globals: | Magic Quotes: | Safe Mode: | Allow url fopen: 1 | Open Base: | Uploads: 1 | Max. Upload Size: 2M | Max. POST Size: 8M | Max. Input Time: 60 | Max. Execution Time: 30 | Memory Limit: 128M

Database Configuration :: Database Credentials incomplete or not available Nothing to display.
Missing credentials detected: Connection Type missing | Database Name missing |MySQL Host missing | Table Prefix missing | Database Username missing | Database Password missing |User Privileges : Unknown
Detailed Environment :: wrote:PHP Extensions :: Core (8.3.6) | date (8.3.6) | libxml (8.3.6) | openssl (8.3.6) | pcre (8.3.6) | zlib (8.3.6) | filter (8.3.6) | hash (8.3.6) | json (8.3.6) | random (8.3.6) | Reflection (8.3.6) | SPL (8.3.6) | session (8.3.6) | standard (8.3.6) | sodium (8.3.6) | apache2handler (8.3.6) | mysqlnd (mysqlnd 8.3.6) | PDO (8.3.6) | xml (8.3.6) | bz2 (8.3.6) | calendar (8.3.6) | ctype (8.3.6) | curl (8.3.6) | dom (20031129) | mbstring (8.3.6) | FFI (8.3.6) | fileinfo (8.3.6) | ftp (8.3.6) | gd (8.3.6) | gettext (8.3.6) | iconv (8.3.6) | exif (8.3.6) | mcrypt (1.0.5) | mysqli (8.3.6) | pdo_mysql (8.3.6) | Phar (8.3.6) | posix (8.3.6) | readline (8.3.6) | shmop (8.3.6) | SimpleXML (8.3.6) | sockets (8.3.6) | sysvmsg (8.3.6) | sysvsem (8.3.6) | sysvshm (8.3.6) | tokenizer (8.3.6) | xmlreader (8.3.6) | xmlwriter (8.3.6) | xsl (8.3.6) | zip (1.22.3) | Zend OPcache (8.3.6) | Zend Engine (4.3.6) |
Potential Missing Extensions ::

Switch User Environment :: PHP CGI: No | Server SU: No | PHP SU: No | Potential Ownership Issues: Yes

Apache Modules :: core | mod_so | mod_watchdog | http_core | mod_log_config | mod_logio | mod_version | mod_unixd | mod_access_compat | mod_alias | mod_auth_basic | mod_authn_core | mod_authn_file | mod_authz_core | mod_authz_host | mod_authz_user | mod_autoindex | mod_deflate | mod_dir | mod_env | mod_filter | mod_mime | prefork | mod_negotiation | mod_php | mod_reqtimeout | mod_setenvif | mod_status | Apache/2.4.58 (Ubuntu) |
Potential Missing Modules :: mod_rewrite | mod_expires | mod_ssl |
Folder Permissions :: wrote:Core Folders :: images/ (755) | components/ (755) | modules/ (755) | plugins/ (755) | language/ (755) | templates/ (755) | cache/ (755) | logs/ (---) | tmp/ (755) | administrator/components/ (755) | administrator/modules/ (755) | administrator/language/ (755) | administrator/templates/ (755) | administrator/logs/ (755) | api/ (755) |

Elevated Permissions (First 10) :: administrator/ (777) |
Extensions Discovered :: wrote:Components :: Site ::
Core ::
3rd Party::

Components :: Admin ::
Core :: com_templates (4.0.0) ? | com_tags (4.0.0) ? | com_redirect (4.0.0) ? | com_finder (4.0.0) ? | com_installer (4.0.0) ? | com_config (4.0.0) ? | com_joomlaupdate (4.0.3) ? | com_postinstall (4.0.0) ? | com_admin (4.0.0) ? | com_wrapper (4.0.0) ? | com_actionlogs (3.9.0) ? | com_privacy (3.9.0) ? | com_categories (4.0.0) ? | com_banners (4.0.0) ? | com_menus (4.0.0) ? | com_workflow (4.0.0) ? | com_cpanel (4.0.0) ? | com_languages (4.0.0) ? | com_cache (4.0.0) ? | com_guidedtours (4.3.0) ? | com_content (4.0.0) ? | com_fields (4.0.0) ? | com_associations (4.0.0) ? | com_messages (4.0.0) ? | com_checkin (4.0.0) ? | com_modules (4.0.0) ? | com_scheduler (4.1.0) ? | com_plugins (4.0.0) ? | com_newsfeeds (4.0.0) ? | com_contenthistory (4.0.0) ? | com_media (3.0.0) ? | com_users (4.0.0) ? | com_mails (4.0.0) ? | com_ajax (4.0.0) ? | com_login (4.0.0) ? |
3rd Party::

Modules :: Site ::
Core :: mod_syndicate (3.0.0) ? | mod_stats (3.0.0) ? | mod_languages (3.5.0) ? | mod_feed (3.0.0) ? | mod_articles_archive (3.0.0) ? | mod_articles_category (3.0.0) ? | mod_tags_similar (3.1.0) ? | mod_articles_latest (3.0.0) ? | mod_banners (3.0.0) ? | mod_wrapper (3.0.0) ? | mod_login (3.0.0) ? | mod_whosonline (3.0.0) ? | mod_finder (3.0.0) ? | mod_articles_categories (3.0.0) ? | MOD_ARTICLES (5.2.0) ? | mod_tags_popular (3.1.0) ? | mod_menu (3.0.0) ? | mod_articles_news (3.0.0) ? | mod_custom (3.0.0) ? | mod_footer (3.0.0) ? | mod_articles_popular (3.0.0) ? | mod_users_latest (3.0.0) ? | mod_related_items (3.0.0) ? | mod_breadcrumbs (3.0.0) ? | mod_random_image (3.0.0) ? |
3rd Party::

Modules :: Admin ::
Core :: mod_latest (3.0.0) ? | mod_feed (3.0.0) ? | mod_post_installation_messages (4.0.0) ? | mod_logged (3.0.0) ? | mod_messages (4.0.0) ? | mod_quickicon (3.0.0) ? | mod_version (3.0.0) ? | mod_guidedtours (4.3.0) ? | mod_login (3.0.0) ? | mod_privacy_status (4.0.0) ? | mod_popular (3.0.0) ? | mod_menu (3.0.0) ? | mod_title (3.0.0) ? | mod_frontend (4.0.0) ? | mod_sampledata (3.8.0) ? | mod_multilangstatus (3.0.0) ? | mod_custom (3.0.0) ? | mod_loginsupport (4.0.0) ? | mod_toolbar (3.0.0) ? | mod_latestactions (3.9.0) ? | mod_submenu (3.0.0) ? | mod_privacy_dashboard (3.9.0) ? | mod_user (4.0.0) ? | mod_stats_admin (3.0.0) ? |
3rd Party::

Libraries ::
Core ::
3rd Party::

Plugins ::
Core :: plg_filesystem_local (4.0.0) ? | plg_fields_sql (3.7.0) ? | plg_fields_checkboxes (3.7.0) ? | plg_fields_editor (3.7.0) ? | plg_fields_media (3.7.0) ? | plg_fields_text (3.7.0) ? | plg_fields_user (3.7.0) ? | plg_fields_subform (4.0.0) ? | plg_fields_integer (3.7.0) ? | plg_fields_textarea (3.7.0) ? | plg_fields_calendar (3.7.0) ? | plg_fields_url (3.7.0) ? | plg_fields_usergrouplist (3.7.0) ? | plg_fields_radio (3.7.0) ? | plg_fields_color (3.7.0) ? | plg_fields_list (3.7.0) ? | plg_fields_imagelist (3.7.0) ? | plg_behaviour_taggable (4.0.0) ? | plg_behaviour_versionable (4.0.0) ? | plg_behaviour_compat (5.0.0) ? | plg_task_requests (4.1) ? | plg_task_globalcheckin (5.0.0) ? | plg_task_updatenotification (5.0.0) ? | plg_task_site_status (4.1) ? | plg_task_sessiongc (5.0.0) ? | plg_task_check_files (4.1) ? | plg_task_privacyconsent (5.0.0) ? | plg_task_deleteactionlogs (5.0.0) ? | plg_task_rotatelogs (5.0.0) ? | plg_schemaorg_organization (5.0.0) ? | plg_schemaorg_recipe (5.0.0) ? | plg_schemaorg_jobposting (5.0.0) ? | plg_schemaorg_event (5.0.0) ? | plg_schemaorg_blogposting (5.0.0) ? | plg_schemaorg_book (5.0.0) ? | plg_schemaorg_article (5.1.0) ? | plg_schemaorg_person (5.0.0) ? | plg_schemaorg_custom (5.1.0) ? | plg_extension_joomla (3.0.0) ? | plg_extension_namespacemap (4.0.0) ? | plg_extension_finder (4.0.0) ? | plg_privacy_consents (3.9.0) ? | plg_privacy_user (3.9.0) ? | plg_privacy_content (3.9.0) ? | plg_privacy_actionlogs (3.9.0) ? | plg_privacy_message (3.9.0) ? | plg_installer_override (4.0.0) ? | plg_installer_urlinstaller (3.6.0) ? | plg_installer_packageinstaller (3.6.0) ? | plg_installer_folderinstaller (3.6.0) ? | plg_installer_webinstaller (4.0.0) ? | plg_user_token (3.9.0) ? | plg_user_contactcreator (3.0.0) ? | plg_user_profile (3.0.0) ? | plg_user_joomla (3.0.0) ? | plg_user_terms (3.9.0) ? | plg_content_fields (3.7.0) ? | plg_content_confirmconsent (3.9.0) ? | plg_content_pagenavigation (3.0.0) ? | plg_content_emailcloak (3.0.0) ? | plg_content_joomla (3.0.0) ? | plg_content_vote (3.0.0) ? | plg_content_loadmodule (3.0.0) ? | plg_content_finder (3.0.0) ? | plg_content_pagebreak (3.0.0) ? | plg_webservices_media (4.1.0) ? | plg_webservices_menus (4.0.0) ? | plg_webservices_privacy (4.0.0) ? | plg_webservices_redirect (4.0.0) ? | plg_webservices_installer (4.0.0) ? | plg_webservices_content (4.0.0) ? | plg_webservices_newsfeeds (4.0.0) ? | plg_webservices_languages (4.0.0) ? | plg_webservices_users (4.0.0) ? | plg_webservices_templates (4.0.0) ? | plg_webservices_config (4.0.0) ? | plg_webservices_messages (4.0.0) ? | plg_webservices_banners (4.0.0) ? | plg_webservices_plugins (4.0.0) ? | plg_webservices_tags (4.0.0) ? | plg_webservices_modules (4.0.0) ? | plg_api-authentication_token (4.0.0) ? | plg_api-authentication_basic (4.0.0) ? | plg_actionlog_joomla (3.9.0) ? | plg_workflow_notification (4.0.0) ? | plg_workflow_featuring (4.0.0) ? | plg_workflow_publishing (4.0.0) ? | plg_quickicon_privacycheck (3.9.0) ? | plg_quickicon_downloadkey (4.0.0) ? | plg_quickicon_eos (4.4.0) ? | plg_quickicon_overridecheck (4.0.0) ? | plg_quickicon_joomlaupdate (3.0.0) ? | plg_quickicon_phpversioncheck (3.7.0) ? | plg_quickicon_extensionupdate (3.0.0) ? | plg_system_cache (3.0.0) ? | plg_system_logout (3.0.0) ? | plg_system_fields (3.7.0) ? | plg_system_stats (3.5.0) ? | plg_system_httpheaders (4.0.0) ? | plg_system_schemaorg (5.0.0) ? | plg_system_languagefilter (3.0.0) ? | plg_system_languagecode (3.0.0) ? | plg_system_redirect (3.0.0) ? | plg_system_schedulerunner (4.1) ? | plg_system_actionlogs (3.9.0) ? | plg_system_debug (3.0.0) ? | plg_system_jooa11y (4.2.0) ? | plg_system_shortcut (4.2.0) ? | plg_system_sef (3.0.0) ? | plg_system_webauthn (4.0.0) ? | plg_system_skipto (4.0.0) ? | plg_system_remember (3.0.0) ? | plg_system_task_notification (4.1) ? | plg_system_highlight (3.0.0) ? | plg_system_guidedtours (4.3.0) ? | plg_system_accessibility (4.0.0) ? | plg_system_privacyconsent (3.9.0) ? | plg_system_log (3.0.0) ? | plg_authentication_ldap (3.0.0) ? | plg_authentication_cookie (3.0.0) ? | plg_authentication_joomla (3.0.0) ? | plg_sampledata_multilang (4.0.0) ? | plg_multifactorauth_totp (3.2.0) ? | plg_multifactorauth_email (4.2.0) ? | plg_multifactorauth_webauthn (4.2.0) ? | plg_multifactorauth_fixed (4.2.0) ? | plg_multifactorauth_yubikey (3.2.0) ? | plg_editors-xtd_fields (3.7.0) ? | plg_editors-xtd_menu (3.7.0) ? | plg_editors-xtd_image (3.0.0) ? | plg_editors-xtd_module (3.5.0) ? | plg_editors-xtd_readmore (3.0.0) ? | plg_editors-xtd_article (3.0.0) ? | plg_editors-xtd_pagebreak (3.0.0) ? | plg_finder_contacts (3.0.0) ? | plg_finder_content (3.0.0) ? | plg_finder_newsfeeds (3.0.0) ? | plg_finder_categories (3.0.0) ? | plg_finder_tags (3.0.0) ? | plg_media-action_rotate (4.0.0) ? | plg_media-action_resize (4.0.0) ? | plg_media-action_crop (4.0.0) ? |
3rd Party:: plg_editors_codemirror (6.0.0) ? | plg_editors_tinymce (6.8.4) ? |
Templates Discovered :: wrote:Templates :: Site :: cassiopeia (1.0) ? |
Templates :: Admin :: atum (1.0) ? |
This is strictly a testing server, and is not production so don't worry about any ownership issues, production will be properly locked down.

Advertisement
User avatar
ceford
Joomla! Virtuoso
Joomla! Virtuoso
Posts: 3091
Joined: Mon Feb 24, 2014 10:38 pm
Location: Edinburgh, Scotland
Contact:

Re: cant get past Failed opening required '/var/www/html/kaos/administrator/cache/autoload_psr4.php'

Post by ceford » Sun Mar 09, 2025 7:37 pm

You have no configuration.php file as well as no autoload_psr4.php file. This usually means that you have not been through the install steps as both of these are created during installation. Did you point your browser at the root of your site, not the administrator folder? Why has your administrator folder been given 777 permissions? That might indicate you have not set up permissions properly.

This article may help: https://jdocmanual.org/en/jdocmanual?ar ... g-on-linux

To add to what Per said: set Max. Upload Size: 64M and Max. POST Size: 64M
Last edited by ceford on Sun Mar 09, 2025 7:47 pm, edited 1 time in total.

User avatar
Per Yngve Berg
Joomla! Master
Joomla! Master
Posts: 31666
Joined: Mon Oct 27, 2008 9:27 pm
Location: Romerike, Norway

Re: cant get past Failed opening required '/var/www/html/kaos/administrator/cache/autoload_psr4.php'

Post by Per Yngve Berg » Sun Mar 09, 2025 7:39 pm

Have you deleted the file? It will be recreated on the next access.

Memory Limit needs to be at least 256M.

Upload and Post Size is also to small.

Efwis1
Joomla! Apprentice
Joomla! Apprentice
Posts: 6
Joined: Wed Sep 13, 2023 2:48 pm

Re: cant get past Failed opening required '/var/www/html/kaos/administrator/cache/autoload_psr4.php'

Post by Efwis1 » Sun Mar 09, 2025 7:46 pm

ceford wrote: Sun Mar 09, 2025 7:37 pm You have no configuration.php file as well as no autoload_psr4.php file. This usually means that you have not been through the install steps as both of these are created during installation. Did you point your browser at the root of your site, not the administrator folder? Why has your administrator folder been given 777 permissions? That might indicate you have not set up permissions properly.

This article may help: https://jdocmanual.org/en/jdocmanual?ar ... g-on-linux
This is strictly a testing server and is locked out from any inbound connections, so I'm not worried about permeissions right now as no one can access it but me. once it goes into production it will be on a secured server anad permissions will be correctly placed.

I am getting this error as soon as i point my browser to it. I just downloaded the software today and unzipped it on the server and get this issue right out of the gates. it won't let me even get to any steps beyond the error, when i point my browser to my server at xxx.xxx.x.xx/kaos it automatically pops the error up, so there is no installation happening.

User avatar
ceford
Joomla! Virtuoso
Joomla! Virtuoso
Posts: 3091
Joined: Mon Feb 24, 2014 10:38 pm
Location: Edinburgh, Scotland
Contact:

Re: cant get past Failed opening required '/var/www/html/kaos/administrator/cache/autoload_psr4.php'

Post by ceford » Sun Mar 09, 2025 7:55 pm

See this article: https://jdocmanual.org/en/jdocmanual?ar ... ing-joomla

Point your browser at

Code: Select all

http://localhost/
(or whatever local sub domain you may have set up) rather than an IP address.

Do you have an entry in you hosts file?

User avatar
ceford
Joomla! Virtuoso
Joomla! Virtuoso
Posts: 3091
Joined: Mon Feb 24, 2014 10:38 pm
Location: Edinburgh, Scotland
Contact:

Re: cant get past Failed opening required '/var/www/html/kaos/administrator/cache/autoload_psr4.php'

Post by ceford » Sun Mar 09, 2025 8:30 pm

Further to my previous message: I seem to remember that autoload_psr4.php is created early in the installation process so that it can be used to find the PH classes Joomla uses. It does not get created if there are permissions problems. Typically the web server is running as xuser/xgroup and can't write files into file space owned by you.

I set the web server to run as me/mygroup and point the site root to my own filespace. That way I can have dozens of Joomla installations (and other things too) in different subfolders and I don't run into permissions problem and I don't have generate subdomains for each instance.

Efwis1
Joomla! Apprentice
Joomla! Apprentice
Posts: 6
Joined: Wed Sep 13, 2023 2:48 pm

Re: cant get past Failed opening required '/var/www/html/kaos/administrator/cache/autoload_psr4.php'

Post by Efwis1 » Sun Mar 09, 2025 11:32 pm

I got it fixed, i had to make chown the subfolder with www-data:www-data adn it waws fixed, now I am setting up things as it installed with no errors.

User avatar
Per Yngve Berg
Joomla! Master
Joomla! Master
Posts: 31666
Joined: Mon Oct 27, 2008 9:27 pm
Location: Romerike, Norway

Re: cant get past Failed opening required '/var/www/html/kaos/administrator/cache/autoload_psr4.php'

Post by Per Yngve Berg » Mon Mar 10, 2025 8:24 am

That's what you get when using Apache handler. I recommend fpm-cgi which can be configured as another User .

Advertisement

Post Reply

Return to “Installation Joomla! 5.x”