I have problems in having two web app running on the same server. The error shown is:
Missing Controller
Error: SchoolController could not be found.
Error: Create the class SchoolController below in file: app/Controller/SchoolController.php
<?php
class SchoolController extends AppController {
}
Notice: If you want to customize this error message, create app/View/Errors/missing_controller.ctp
Stack Trace
APP/webroot/index.php line 110 → Dispatcher->dispatch(CakeRequest, CakeResponse)
The configuration file is the following:
virtual host 1
<VirtualHost *:80>
ServerName localhost
ServerAlias localhost1
DocumentRoot /var/www/webapp1/app/webroot
<Directory />
Options FollowSymLinks
AllowOverride None
</Directory>
<Directory /var/www/webapp1/app/webroot>
Options -Indexes
AllowOverride none
Order deny,allow
Allow from all
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^ index.php [L]
</Directory>
#Mod_Rewriter
RewriteEngine on
RewriteRule ^index\.html$ /index.php [L]
ErrorLog ${APACHE_LOG_DIR}/error.log
CustomLog ${APACHE_LOG_DIR}/access.log combined
</VirtualHost>
virtual host 2
<VirtualHost *:80>
ServerName localhost
ServerAlias localhost2
DocumentRoot /var/www/webapp2/app/webroot
<Directory />
Options FollowSymLinks
AllowOverride None
</Directory>
<Directory /var/www/webapp2/app/webroot>
Options -Indexes
AllowOverride none
Order deny,allow
Allow from all
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^ index.php [L]
</Directory>
#Mod_Rewriter
RewriteEngine on
RewriteRule ^index\.html$ /index.php [L]
ErrorLog ${APACHE_LOG_DIR}/error.log
CustomLog ${APACHE_LOG_DIR}/access.log combined
</VirtualHost>