Daily Archives: December 15, 2010

Apache 2.2 “It works” message – vhost and hosts file

I recently switched from using windows to a mac. With windows, you can structure your hosts file like this localhost test.localhost

However, if you do this and you’re on a mac like me and go to test.localhost, you’ll get a “It works!” message no matter how your vhost is configured. The solution is to structure the hosts file for the IP address on a single line like this – localhost test.localhost

Zend Server on Mac OS X phpMyAdmin import size problem

I just switched over from using windows for years to a mac. I installed Zend Server CE and when working with phpMyAdmin I needed to increase the upload limit in the php.ini file again so I could import a database. I modified the post_max_size and upload_max_filesize then restarted apache as I’ve done in the past. Phpmyadmin still said 2048kb max file size for the import. I finally found the solution here http://stackoverflow.com/questions/3958615/import-file-size-limit-in-phpmyadmin . Apparently phpMyAdmin is running under Lighttpd and has it’s own php.ini file located here /usr/local/zend/gui/lighttpd/etc/php-fcgi.ini . Modify the post_max_size and upload_max_filesize values in that file then restart apache. See my post on how to restart Zend Server CE apache on Mac OS X.