-1

I am new to Symfony4 and i can't deploy it on my host...

I created a sub domain to test my website before uploading it (http://symfony.photoclubchirac.org/) on my host (nuxit).

I asked them if they already have a tutorial for uploading Symfony on their system but they don't know how to do it, and they asked me to see with a web master..

I upload all my files (i think it's the first step to do) and then i am at the "Check requirements" step. Here i am stuck cause i have to install Composer and Symfony but i don't have any ssh access on my host account... How can i know if all the technical requirements are ok please ?

2019-12-03 (11:57) - EDIT 1 :

I also tried to send config, public, src, templates, var, vendors folders and .env file but the website shows me an error (you can see this error on my website)

The autoloader expected class "Symfony\Component\Form\Extension\HttpFoundation\Type\FormTypeHttpFoundationExtension" to be defined in file "/web6/photoclubchirac/www/symfony/vendor/composer/../symfony/form/Extension/HttpFoundation/Type/FormTypeHttpFoundationExtension.php". The file was found but the class was not in it, the class name or namespace probably has a typo.

I checked but i have in this file :

namespace Symfony\Component\Form\Extension\HttpFoundation\Type\FormTypeHttpFoundationExtension

and the class exists in the file...

10
  • 1
    Deploying like this would be hard. Do you have a ssh access at least?
    – COil
    Dec 2, 2019 at 15:28
  • No i don't have any ssh access.. What is the good thing to do tu upload my website easier ?
    – Bryan
    Dec 2, 2019 at 15:42
  • You need a some different things and a ssh access to deploy. Follow the documentation => symfony.com/doc/4.4/deployment.html. Or give us more explainations if you need more help. Dec 2, 2019 at 15:47
  • May be try: medium.com/@runawaycoin/…
    – COil
    Dec 2, 2019 at 15:54
  • Is ssh needed ? I asked for my host but he sais me that he doesn't offer this option...
    – Bryan
    Dec 2, 2019 at 15:59

2 Answers 2

0

Try to install dependencies via:

composer install

//for development mode

composer install --no-dev --optimize-autoloader

//for production mode

3
  • I can't cause as I said in my first post, i don't have any ssh access on my host account
    – Bryan
    Dec 2, 2019 at 15:41
  • You can execute this commands locally to prepare your build for production and then upload with ftp all your project. Be careful to NOT upload the var directory on the other hand. Maybe you will have some trouble with the generation of this directory on your server and you will have to set rights manually (for the cache and the logs) Dec 2, 2019 at 17:55
  • I tried to but the result is my website shows me an error (i updated my question above)
    – Bryan
    Dec 3, 2019 at 11:30
0

why don't you just upload all the project including the vender folder it will take time for sure but that the only way I can see you bypassing the composer install

2
  • Including the vendor can resolve my problem ? I will try this and i come back to you when it's done
    – Bryan
    Dec 3, 2019 at 9:07
  • you are missing .htaccess file on your server for the Not Found The requested URL was not found on this server. Dec 3, 2019 at 21:56

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.