
Install Symfony on VDS / FreeBSD
If this is interesting to you, then you also took a VDS virtual machine, flattered about ISP Manager and installed FreeBSD for yourself.
Sit back, we will set.
Further on the notes
- Go to the ISP Manager server -> PHP extensions -> Turn on the following extensions
- xml.so
- pdo.so
- pdo_mysql.so
- Add the dom.so extension
- It’s nice to turn on curl.so too - but this is not for everyone .
- Connect via ssh (in Win you can use putty for example )
- Put pear:
$ cd / usr / ports / devel / pear
$ make all install clean
- Now an exciting moment - install 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 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 project www folder to example.com (or whatever) your domain is called)
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 the ftp root
Rename the project’s www folder to example.com (or
whatever your domain name is) Copy the sf folder to the /home/example.com/data/www/example.com/ folder (not quite right)
- configure the project (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 only to /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.
Everything is ready.
Sit back, we will set.
Further on the notes
- Go to the ISP Manager server -> PHP extensions -> Turn on the following extensions
- xml.so
- pdo.so
- pdo_mysql.so
- Add the dom.so extension
- It’s nice to turn on curl.so too - but this is not for everyone .
- Connect via ssh (in Win you can use putty for example )
- Put pear:
$ cd / usr / ports / devel / pear
$ make all install clean
- Now an exciting moment - install 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 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 project www folder to example.com (or whatever) your domain is called)
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 the ftp root
Rename the project’s www folder to example.com (or
whatever your domain name is) Copy the sf folder to the /home/example.com/data/www/example.com/ folder (not quite right)
- configure the project (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 only to /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.
Everything is ready.