This is how you do it in Cakephp 2.x
After setting up the web space, you do not need to change or ruin the php configuration (as long as php is set as the default for this web space) and when you create web_space in Plesk, the Plesk server usually does everything for you .
But you need to configure CakePhp application on the Plesk server, you need to follow these steps:
When you create a new DNS or Plesk web_space, create a directory structure for you, you need to place the application in the created directory and configure htaccess in these folders as follows (just add some "/" in the path):
CakePHP root directory (must be copied to your document; redirects everything to your CakePHP app and updated to): <IfModule mod_rewrite.c> RewriteEngine on RewriteRule ^$ app/webroot/ [L]
Of course, you will need to set up your database.
To do this, you need to configure a new database for your application on the plesk server, and then get:
- Database IP
- database name
- database username
- database password
and update the /Config/database.php application with the new database information. as you would know:
public $default = array( 'datasource' => 'Database/Mysql', 'persistent' => false, 'host' => 'ip address here', 'login' => 'database username', 'password' => 'database password', 'database' => 'database name' );
Here's how to configure Cakephp 3.x
Hope this helps
source share