Hello I have a local D8 site.
I have uploaded it on my shared hosting OVH but it doesn't works.
I've a doubt about directories organization.
I have created the site with composer.
In local, I 've directories like below :
- config
- drush
- scripts
- vendor
- web
- core
- libraries
- modules
- profiles
- sites
- themes
On my shared hosting (ovh) :
- /
- www
I try to put config, drush, scripts, vendor, web at the first level (/) I get this error message.
" Parse error: syntax error, unexpected 'function' (T_FUNCTION), expecting identifier (T_STRING) or \\ (T_NS_SEPARATOR) in /home/mysite/vendor/myclabs/deep-copy/src/DeepCopy/deep_copy.php on line 5 "
Is it a path problem because web directories are in "www" instead of "web" ?
If I put it on the "www" level, it doesn't work because there is no index file on the www directory.
If I rename "www" by "web", it doesn't work.
What should I do ?
Thanks for your help.
Comments
Finally, I have found the
Finally, I have found the solution.
Put config, drush, scripts, vendor, web at the first level (/) .
Set the default directory by "web" in multisite settings of my host.
Change the php version. 7.2 and 5.6 doesn't work. 7.0 is ok. Even, I have 7.2 on my localhost...