OpenSIPS Control Panel 6 on Linode instance (Debian Wheezy)
> 2. Configure Apache
- you can add the configuration below into one of Apache's existent VHOSTs or
create a new one:
Options Indexes FollowSymLinks MultiViews AllowOverride None
Order allow,deny
allow from all
Options Indexes FollowSymLinks MultiViews AllowOverride None
Order deny,allow
deny from all
Alias /cp6 /var/www/cp6/web
- you can read more about Apache's VHOSTS here:
http://httpd.apache.org/docs/current/vh … mples.html">http://httpd.apache.org/docs/current/vhosts/examples.html 2. Apache is going to need write permissions on some files / folders in the
/var/www/cp6 subdirectory :
so you can do:
for debian: chown -R www-data:www-data /var/www/cp6/
for redhat: chown -R apache:apache /var/www/cp6/
or, at least chown the mandatory files:
for debian: chown -R www-data:www-data /var/www/cp6/web/tools/system/smonitor/generated
chown www-data:www-data /var/www/cp6/config/tools/system/drouting/group_ids.txt
chown www-data:www-data /var/www/cp6/config/tools/system/drouting/gw_types.txt
- for redhat: chown -R apache:apache /var/www/cp6/web/tools/system/smonitor/generated
chown apache:apache /var/www/cp6/config/tools/system/drouting/group_ids.txt
chown apache:apache /var/www/cp6/config/tools/system/drouting/gw_types.txt
I added the OS CP VHOST config from Paragraph 2 into the /etc/apache2/sites-available/default VHOSTS file. (OS CP will not be available as a public Web page so we just need to get to it by typing the public IP address.) However, when I type "http://[public IP address]/cp6" into Chrome (latest version), I get a HTML 404 message
> The requested URL /cp6 was not found on this server.
Apache/2.2.22 (Ubuntu) Server at xxx.xxx.xxxx.xxx Port 80
So, it seems that I'm getting to the Web server but just not getting to OS CP. Any suggestions on where I should look for config errors? Thanks.