Category Archives: Apache

Creating sites on VPS

Create new configuration file cp /etc/apache2/sites-available/ /etc/apache2/sites-available/ Edit configuration vi /etc/apache2/sites-available/ Update apache2.conf file vi /etc/apache2/apache2.conf Enable service #disable service a2dissite #enable service a2ensite   service apache2 reload Additional info:

How to install PEAR on MAC OSX

First do: curl > 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 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/ and uncomment it as well. Adding VirtualHosts # # Use name-based virtual hosting. # NameVirtualHost *:80     # # VirtualHost example: # Almost… Read More »

SSH Connection

Open terminal and type: ssh <host> -l <username> <password> Then log in as sudo if needed: sudo su – Other useful commands: – Logging in to mysql: mysql -h <host> -u <username> -p – Logging in to mysql on some port: mysql -h <host> -u <username> -p –port=<port> use <db-name> source <sql-file> – Unzipping: unzip… Read More »