Login to ZendServer admin and set password
Login to phpmyadmin and set root password
change username and group in /usr/local/zend/apache2/conf/httpd.conf
- CODE:
User myusername
Group mygroupname
I know I had MAMP Pro setup to run under my username, and I think this had to do with permissions when I go and modify all the files it made it easier to work with if everything was running under the same username. I imagine there are some security implications to this, but since my local network is firewalled, and I don’t leave ZendServer running when I’m out of the office, I don’t think I’m at much risk here.
uncomment virtual hosts include in /usr/local/zend/apache2/conf/httpd.conf
- CODE:
# Virtual hosts
Include conf/extra/httpd-vhosts.conf
I wanted to be able to run multiple sites from my system using virtual hosts like I have in MAMP Pro
change port and virtual hosts in /usr/local/zend/apache2/conf/extra/
- CODE:
NameVirtualHost *:80<VirtualHost *:80>
DocumentRoot "/Users/myusername/Sites/mage1"
ServerName mage1.local<Directory "/Users/myusername/Sites/mage1">
Options Includes FollowSymLinks
AllowOverride All
Order allow,deny
Allow from all
</Directory>ErrorLog "logs/mage1.local-error_log"
CustomLog "logs/mage1.local-access_log" common
</VirtualHost><VirtualHost *:80>
ServerName mage2.local
DocumentRoot "/Users/myusername/Sites/dhstyles"<Directory "/Users/myusername/Sites/dhstyles">
Options Includes FollowSymLinks
AllowOverride All
Order allow,deny
Allow from all
</Directory>ErrorLog "logs/mage2.local-error_log"
CustomLog "logs/mage2.local-access_log" common
</VirtualHost>
The directory references were in my MAMP Pro configuration so I copied them over into here. I also set the directory path to be in the user space so it’s easier to manage my site’s code with Zend Studio and other applications.
comment the skip-networking in /usr/local/zend/mysql/data/my.cnf
- CODE:
#skip-networking
For some reason network connectivity is disabled by default, and you have to uncomment this line in order to enable it again. This will allow Magento and other database tools such as Navicat to connect to the MySQL installation.
edit /etc/hosts file for DNS resolution
- CODE:
127.0.0.1 mage1.local
127.0.0.1 mage2.local
Adding entries to the hosts file will allow you to do DNS resolution in the browser and allow the named virtual hosts to work properly.
restart
- CODE:
zendctl.sh restart