Tag Archives: apache

Creating sites on VPS

Create new configuration file cp /etc/apache2/sites-available/www.uzza.pl.conf /etc/apache2/sites-available/www.new-domain.pl.conf Edit configuration vi /etc/apache2/sites-available/www.pomoc-dla-pauliny-klin.pl.conf Update apache2.conf file vi /etc/apache2/apache2.conf Enable service #disable service a2dissite www.new-domain.pl #enable service a2ensite www.new-domain.pl   service apache2 reload Additional info: https://help.ubuntu.com/community/ApacheMySQLPHP

How to install PEAR on MAC OSX

First do: curl http://pear.php.net/go-pear > go-pear.php sudo php -q go-pear.php Change installation directory to: /usr/local Add include path in /etc/php.ini: include_path = ".:/usr/share/pear" Restart Apache. Tutorial based on http://clickontyler.com/blog/2008/01/how-to-install-pear-in-mac-os-x-leopard/. Thanks !

Configuring Apache with two VirtualHosts

The begining Start Apache: sudo apachectl start Enabling VirtualHosts Open httpd.conf file sudo mate /etc/apache2/httpd.conf Find the following line: #Include /private/etc/apache2/extra/httpd-vhosts.conf and uncomment it. To enable PHP5, find: #LoadModule php5_module /opt/local/apache2/modules/libphp5.so and uncomment it as well. Adding VirtualHosts # # Use name-based virtual hosting. # NameVirtualHost *:80     # # VirtualHost example: # Almost… Read More »