Rename and move a Solaris zone

Solaris Zones No Comments

I created a test zone which is to function as my webserver. Lo and behold it went so well there was no need to destroy and start again. The only problem is i am not happy with the name of the zone, which is webzone. I also didn’t like the location it was on the filesystem. So first to move it from /work/webzone to /work/zones/constantine:

charlemagne:/ # zoneadm -z webzone move /work/zones/constantine

Now to rename the zone itself:

charlemagne:/ # zonecfg -z webzone
zonecfg:webzone> set zonename=constantine
zonecfg:constantine> commit
zonecfg:constantine> exit

charlemagne:/ # zoneadm list -vc
ID NAME STATUS PATH BRAND IP
0 global running / native shared
- constantine installed /work/zones/constantine native shared

The zone cannot be running to perform either task.

“client denied by server configuration” apache error

apache No Comments

I am trying a new version of apache on Solaris. I jumped from 2.058 to 2.2.9. The httpd.conf from the old to the new was no longer valid, so i started again. Made the classic mistake of trying to do everything before testing and the whole configuration was screwed up so i started again. There was an error in the browser i had not seen before:

Forbidden

You don’t have permission to access / on this server

So i looked at all the permission files, all ok. I had another look at the httpd.conf file and found the <Directory> directive has changed to “a very restrictive set of features”. I changed “Deny from all” to “Allow from all” and it is now working.