php - Symfony 1.4 installation and security issues -
i have shared hosting account in want install symfony 1.4 , deploy , application. bumped issues because of inability change apache config on production server.
the structure of web server is:
hosting_account_name html <--- public folder i moved files in symfony local app folder hosting_account_name , put web folder content in html
so got following structure:
hosting_account_name apps cache config data html css js index.php .htaccess frontend_dev.php lib log plugins test and added line bellow config/projectconfiguration.class.php
$this->setwebdir($this->getrootdir().'/www');
i have couple of issues though: 1. when access frontend_dev.php no images due fact symfony expects files under sf/ folder. should move files there? 2. index.php gives error. display errors set yes , 500 internal server error presented.
also had set permissions 777 on cache , log. under folder html that's ok security right?
first, said "public" folder html, used $this->setwebdir($this->getrootdir().'/www');. html or www? (just make sure)
then: setting sf_web_dir should work expected, shouldn't throw errors.
to link /sf symfony folder, need add apache configuration. described on first page of jobeet tutorial, need add alias /lib/vendor/symfony/data/web/sf. if don't have access httpd.conf, add .htaccess.
777 log , cache ok. it's default project:permissions task well.
Comments
Post a Comment