Whatâs the reason youâre setting it to âAPP_ENV=dev
â (developer mode)?
To see the error in more detail
dev
mode requires an added directory dist
and the files in it. It wonât work without them, itâs crashing because itâs missing that folder. If you just want it to work and see the error in more detail, set APP_ENV=qa
Did it, got a result, but not as expected âŚ
For this I started from scratch again
- make homedir /var/www/html/suite85 for suite85
- extract SuiteCRM-8.5.0-7.14-migration.zip in this homedir
- make dir legacy under public
- copy old 7.14.2 installation into legacy
- chown -R www-data /var/www/html/suite85
- chgrp -R www-data /var/www/html/suite85
- chmod -R 777 /var/www/html/suite85
- started the migration beginning with 2.4 in this guide
- SuiteCRM 7.12.x+ migration to SuiteCRM 8.x :: SuiteCRM Documentation
- no change in .env was made
2.4
./bin/console suitecrm:app:setup-legacy-migration
SuiteCRM Setup SuiteCRM 7.12.x Migration
Running: check-legacy-config
step: check-legacy-config | status: done
Found legacy config. Proceeding with migration
Running: setup-env
step: setup-env | status: done
Created .env.local
Running: change-theme
step: change-theme | status: done
Set suite8 theme as default theme
Running: manual-config-check
Manually Check legacy config
Please check the following entries in your âpublic/legacy/config.phpâ (or config_override.php):
- site_url: Update this to the location of your post-migration SuiteCRM8 instance
Once completed, press y and enter to continue.y
step: manual-config-check | status: done
Manual config check done
Running: change-rewrite-base
step: change-rewrite-base | status: done
WARNING: No htaccess file. Skipping htaccess update
Running: manual-rewrite-base-check
Manually Check legacy htaccess
Please check RewriteBase in âpublic/legacy/.htaccessâ and update manually
Check SuiteCRM 8 Migration documentation for information on how to configure - Based on your site url âhttp://localhost/suite85â.
- The RewriteBase should be something like â/suite85/legacyâ.
Once completed, press y and enter to continue.
step: manual-rewrite-base-check | status: done
Manual RewriteBase check done
Running: install-portability
step: install-portability | status: done
Successfully installed the portability folder
2.5
./bin/console suitecrm:app:upgrade -t SuiteCRM-8.5.0
PHP Deprecated: Return type of Symfony\Component\HttpFoundation\Session\Attribute\AttributeBag::getIterator() should either be compatible with IteratorAggregate::getIterator(): Traversable, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /var/www/html/suite85/vendor/symfony/http-foundation/Session/Attribute/AttributeBag.php on line 134
PHP Deprecated: Return type of Symfony\Component\HttpFoundation\Session\Attribute\AttributeBag::count() should either be compatible with Countable::count(): int, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /var/www/html/suite85/vendor/symfony/http-foundation/Session/Attribute/AttributeBag.php on line 144
PHP Deprecated: Return type of Symfony\Component\HttpFoundation\Session\Session::getIterator() should either be compatible with IteratorAggregate::getIterator(): Traversable, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /var/www/html/suite85/vendor/symfony/http-foundation/Session/Session.php on line 131
PHP Deprecated: Return type of Symfony\Component\HttpFoundation\Session\Session::count() should either be compatible with Countable::count(): int, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /var/www/html/suite85/vendor/symfony/http-foundation/Session/Session.php on line 141
PHP Warning: Cannot declare class OneLogin_Saml2_Auth, because the name is already in use in /var/www/html/suite85/public/legacy/deprecated.php on line 21
PHP Warning: Cannot declare class OneLogin_Saml2_AuthnRequest, because the name is already in use in /var/www/html/suite85/public/legacy/deprecated.php on line 21
PHP Warning: Cannot declare class OneLogin_Saml2_Constants, because the name is already in use in /var/www/html/suite85/public/legacy/deprecated.php on line 21
PHP Warning: Cannot declare class OneLogin_Saml2_Error, because the name is already in use in /var/www/html/suite85/public/legacy/deprecated.php on line 21
PHP Warning: Cannot declare class OneLogin_Saml2_ValidationError, because the name is already in use in /var/www/html/suite85/public/legacy/deprecated.php on line 21
PHP Warning: Cannot declare class OneLogin_Saml2_IdPMetadataParser, because the name is already in use in /var/www/html/suite85/public/legacy/deprecated.php on line 21
PHP Warning: Cannot declare class OneLogin_Saml2_LogoutRequest, because the name is already in use in /var/www/html/suite85/public/legacy/deprecated.php on line 21
PHP Warning: Cannot declare class OneLogin_Saml2_LogoutResponse, because the name is already in use in /var/www/html/suite85/public/legacy/deprecated.php on line 21
PHP Warning: Cannot declare class OneLogin_Saml2_Metadata, because the name is already in use in /var/www/html/suite85/public/legacy/deprecated.php on line 21
PHP Warning: Cannot declare class OneLogin_Saml2_Response, because the name is already in use in /var/www/html/suite85/public/legacy/deprecated.php on line 21
PHP Warning: Cannot declare class OneLogin_Saml2_Settings, because the name is already in use in /var/www/html/suite85/public/legacy/deprecated.php on line 21
PHP Warning: Cannot declare class OneLogin_Saml2_Utils, because the name is already in use in /var/www/html/suite85/public/legacy/deprecated.php on line 21
PHP Warning: Cannot declare class Zend\Oauth\Provider, because the name is already in use in /var/www/html/suite85/public/legacy/deprecated.php on line 67
PHP Warning: ini_set(): Session ini settings cannot be changed when a session is active in /var/www/html/suite85/public/legacy/include/entryPoint.php on line 169
PHP Warning: ini_set(): Session ini settings cannot be changed when a session is active in /var/www/html/suite85/public/legacy/include/entryPoint.php on line 170
SuiteCRM Upgrade
Running: backup-original-modules
step: backup-original-modules | status: done
Successfully backed up files
Running: check-package
step: check-package | status: done
Package found in path
Running: extract-package
step: extract-package | status: done
Package extracted
Running: check-permissions
step: check-permissions | status: done
Permissions checked
Running: install-upgrade-package
step: install-upgrade-package | status: done
Successfully installed package
Running: clear-symfony-cache
step: clear-symfony-cache | status: done
Successfully cleared cache
Warning! Please re-set permissions after this upgrade step has completed
2.6
./bin/console suitecrm:app:upgrade-finalize
Please enter the version to move to: 8.5.0
SuiteCRM Finalize Upgrade
Running: legacy-post-upgrade
libpng warning: Interlace handling should be turned on when using png_read_image
libpng warning: Interlace handling should be turned on when using png_read_image
libpng warning: iCCP: known incorrect sRGB profile
libpng warning: iCCP: known incorrect sRGB profile
libpng warning: iCCP: known incorrect sRGB profile
libpng warning: Interlace handling should be turned on when using png_read_image
libpng warning: iCCP: known incorrect sRGB profile
libpng warning: Interlace handling should be turned on when using png_read_image
libpng warning: Interlace handling should be turned on when using png_read_image
step: legacy-post-upgrade | status: done
Post Upgrade process complete
Running: add-new-config-entries
step: add-new-config-entries | status: done
Added new config entries to config file
Running: metadata-merge
step: metadata-merge | status: done
Metadata successfully merged
Running: run-migrations
step: run-migrations | status: done
No new migrations. Skipping
Running: finalize-clear-symfony-cache
step: finalize-clear-symfony-cache | status: done
Successfully cleared cache
Warning! Please re-set permissions after this upgrade step has completed
- when I now call localhost/suite85 I simply get a directory listing - as before in my first attempt - there is no index.php or something like this
Youâre not supposed to have a index.php there at the top level. It is inside public directory, which is what you tell your web server to serve (that is the âwebrootâ).
EDIT: About the missing files, there are instructions here about downloading the dev package:
When I set site_url during migration I set it to the directory of the top level - localhost/suite85, which points to /var/www/html/suite85
What I get now when I call
- localhost/suite85/: directory listing
- localhost/suite85/public:
Oops! An Error Occurred
The server returned a â500 Internal Server Errorâ.
Something is broken. Please let us know what you were doing when this error occurred. We will fix it as soon as possible. Sorry for any inconvenience caused.
You can edit that value of site_url in public/legacy/config.php
The entire 8.x app will break, until URL rewrites are configured correctly in your Apache Virtualhost
. The app needs to communicate thru URLs to the graphQL API to do the most basic things:
And what if I have no virtual host, just a directory within apache?
Apache has a virtual host. At bare minimum, youâre using Apacheâs âdefault host
â. For 8.5 to work, you have to enable AllowOverrides
in that directory, and set your DocumentRoot
correctly to the right public
folder. Details how to do this are in the âWebserver Setup Guideâ above.
thanks - got it âŚ
On my test server it works now, but not on that intented for production, although it is also ubuntu 22.04 and I used the same installation procedure âŚ
As you can see from 2 screenshots tabular pages are ok, while those like Home or Calendar are not.
I nevertheless installed the same php mudules.
Where to look?
- Which username were you when you ran these upgrade commands?
- Which username is the Suite app running as?
- Whatâs the output of
ls -la cache
when run from the Suite base directory?
- root
- it runs under the plesk webserver user
- in the image you can see the ourput of ls -la cache from public/legacy
How about ls -la cache/themes
from base directory of Suite 8 (not from public/legacy
).
ls -la cache/themes from base gives:
no such file or directory.
there is only a directory prod under cache
Clear browser cache could fix this page CSS missing?
On Firefox, itâs: Tools, Settings, Privacy, Clear Data, only check Cached Web Content, Clear.
Or, Ctrl + Shift + R (force reload page).
Does this solve it?
No, same as before âŚ
Assuming Suite is running under the username numjoom
. and Group is named psacln
:
cd (your suite 8.5 base dir, not public/legacy )
sudo chown -R numjoom:psacln .
sudo chmod -R 755 .
sudo chmod -R 775 cache custom modules themes data upload
sudo chmod 775 config_override.php 2>/dev/null
./bin/console cache:clear
If this fails, try from a browser window running in âIncognito modeâ or âPrivate Browsingâ.
Either way, report back your results.
cache custom modules themes data upload are in public/legacy
Permissions where the point.
On this side
one can read
find . -type d -not -perm 2755 -exec chmod 2755 {} ;
find . -type f -not -perm 0644 -exec chmod 0644 {} ;
obviously I set permissions this way
So setting all to 755 and setting the dirs cache custom modules themes data upload to 775 solved it.
Runs now as it should.
Thanks a lot and best regards.
If my post contained the answer that solved your issue, please click on âSolutionâ on that post.