Skip to content

Parse error: syntax error, unexpected ':', expecting '{' in /var/www/html/library/vendor/symfony/polyfill-php80/bootstrap.php on line 23 #34049

Answered by Nyasha-13
Nyasha-13 asked this question in General
Discussion options

You must be logged in to vote

I finally fixed it by deploying the Laravel app on fresh server with

  • PHP version 7.3.22

I followed the procedures outlined here to install the environment >>
PHP Install
[https://www.cloudbooklet.com/how-to-install-php-7-3-on-ubuntu-18-04/]

Also I installed Apache and mysql

Then configured server to enable .htaccess by adding this to my vhost:
Edited 000-default.conf

sudo nano /etc/apache2/sites-available/000-default.conf

Added the following on 000-default.conf whereby public is my public folder in my laravel app

<Directory /var/www/laravel_app_folder_name/public/>
    Options Indexes FollowSymLinks
    AllowOverride All
    Require all granted
</Directory>

Then have mod_rewrite enabled.

Replies: 5 comments 1 reply

Comment options

You must be logged in to vote
1 reply
@Nyasha-13
Comment options

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by Nyasha-13
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
5 participants