简体   繁体   中英

Symfony2 on FTP Webhoster

I wrote a little site with Symfony2 and I want to host it on my WebSpace. I only have FTP access, so I can not access any console/terminal!

Problem is: Symfony cannot create the cache directory properly! There might be a permission problem still?!

These are y steps so far:

  1. Uploading my whole project with empty Cache directory (since I can't clean it due to no console)
  2. Changing permissions of cache and logs directories using my ftp client
  3. unmasking console, app.php and app_dev.php like explained here
  4. Adding my IP to the whitelist in the files: config.php and app_dev.php
  5. Checking the config.php to see if my configuration meets symfony's requirements (they do! no major problems!)
  6. Checking PHP settings: PHP 5.3.3-7, SQLite3 and PDO-Driver there!
  7. Opening app_dev.php/_configurator/step/0 concludes into a RuntimeException:

    RuntimeException: Unable to create the cache directory (/var/www/userx/html/MySiteSymfony/app/cache/dev/twig/83/4c).

  8. Opening app.php results in a 500 server error and no log file is being created

Someone an idea how to get symfony working?

进入app /文件夹,在缓存文件夹中单击“获取信息”,然后设置正确的权限(确保单击“应用于随附的文件夹/文件”)。

Finally changed my provider. Seems like its OS was just deprecated.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM