Tags
PHP
Asked 7 years ago
3 Dec 2016
Views 528
jqueryLearner

jqueryLearner posted

how to setup cake php in subdomain

i had uploaded cake php in subfolder

-public_html
    -subfolder1
        -cake
          -app

so cake folder have my cake php work.

and when i browse http://www.example.com/subfolder1/cake
i got internal server .


i tried to change .htacess file but dont work .
Phpworker

Phpworker
answered Apr 24 '23 00:00

Setting up CakePHP in a subdomain involves a few key steps. Here's a general overview:

1.Create the subdomain: Start by creating the subdomain in your web hosting control panel. This is usually done under the "Domains" or "Subdomains" section. Be sure to note the directory that the subdomain is pointing to, as you'll need it later.

2.Upload the files: Next, you'll need to upload the CakePHP files to the subdomain directory. This can be done via FTP or the file manager in your web hosting control panel.

3.Configure the database: Create a new database and user for the subdomain in your hosting control panel, and note down the credentials. Then, configure the CakePHP database connection settings in the app/config/database.php file with the database name, host, username, and password.

4.Set the base URL: In the app/config/core.php file, set the base URL to the subdomain URL, so that CakePHP knows which URL to use when generating links.

5.Test the installation: Navigate to the subdomain URL in your web browser to make sure that the installation was successful. You should see the default CakePHP homepage.

These steps are general and may vary slightly depending on your web hosting provider and configuration. Always refer to your web hosting documentation or support team if you have any difficulties.
Post Answer