user3786032
user3786032

Reputation: 21

symfony2 error: /opt/lampp/htdocs/Symfony/web/../app/bootstrap.php.cache' (include_path='.:/opt/lampp/lib/php')

I have a problem this morning with my symfony project. I develop an application online sales that works without problem on my pc running on a ubuntu system. I 'bought a dedicated server (centos) in which I wanted to put my application. so I transferred all my project in the FTP serveur.mais qd I want to accede to the site with mozilla I get this error

Warning: require_once (/opt/lampp/htdocs Symfony/web/.. /app/bootstrap.php.cache..): Failed to open stream: No such file or folder of this type in /opt/lampp/htdocs/Symfony/web/app.php on line 6

Fatal error: require_once (): Failed opening required '/opt/lampp/htdocs/Symfony/web/../app/bootstrap.php.cache..' (Include_path = ':/opt/lampp/lib/php.') In / opt / lampp / htdocs / Symfony / web / app.php on line 6

and when I do php app / console in the terminal told me Could not open input file: app / console

[root @ server Symfony] # sudo php app / console cache: clear - env = prod Could not open input file: app / console [root @ server Symfony] # php app / console Could not open input file: app / console

please i need help

Upvotes: 1

Views: 2984

Answers (2)

Canser Yanbakan
Canser Yanbakan

Reputation: 3870

I know this is an old topic but i want to help.

You can save your document with utf-8 encoding option.

If you are on windows use Notepad++.

Encoding > Encode in UTF-8

If you are mac or linux use SublimeText2.

File > Save With Encoding > UTF-8

Upvotes: 0

David Jacquel
David Jacquel

Reputation: 52819

do a :

composer update

and eventually an :

app/console cache:clear -env=prod

not

app / console cache: clear - env = prod

Upvotes: 1

Related Questions