📜 ⬆️ ⬇️

Installing symfony on VDS / FreeBSD

If this is interesting to you, it means that you also took a VDS virtual machine, were tempted by the ISP Manager and set yourself FreeBSD.

Sit back, we will set.


Further on the notes
- Go to the ISP Manager server -> PHP extensions -> Include the following extensions
- xml.so
- pdo.so
- pdo_mysql.so
')
- Adding dom.so extension
- It is not bad to turn on curl.so - but this is not for everybody .
- Connect via ssh (in Win you can use for example putty )
- Put the pear:

$ cd / usr / ports / devel / pear
$ make all install clean

- Now an exciting moment - we put symfony. We will be bad guys, we will put through pear

$ pear channel-discover pear.symfony-project.com
$ pear install symfony / symfony-1.4.9

- Create a new user and database in ISP Manager

Users -> New User -> example.com -> ... -> PHP as an Apache module
Database Management -> New Database -> MySQL -> ... -> Remote Access

- Fill our project:
a) By ftp:
Copy the project to / www / relative to ftp root
Rename the www project folder to example.com (or whatever your domain name is)
Copy the sf folder to the /www/example.com/ folder (not quite right) '

b) By ssh:
Copy the project to /home/example.com/data/www/ relative to ftp root
Rename the www project folder to example.com (or whatever your domain name is)
Copy the folder / home / example.com/data/www/example.com/ sf folder (not quite right)

- We configure the project we register (we need a file (project) /demstore/config/ProjectConfiguration.class.php)

change require_once '/usr/local/share/pear/data/symfony/autoload/sfCoreAutoload.class.php';

- It remains to configure / var / tmp / because the web server does not have access there only at /home/example.com/data/tmp/
a) The first path is changed in all sys_get_temp_dir symphony files to /home/example.com/data/tmp/
b) The second way, alas, is unknown to me

All is ready.

Source: https://habr.com/ru/post/114699/


All Articles