Changes between Version 1 and Version 2 of faq/setup-development-workstation

Feb 22, 2008, 12:29:19 PM (14 years ago)
Jamie McClelland



  • faq/setup-development-workstation

    v1 v2  
    88== Installing Debian ==
     10== Installing and configuring critical helper packages ==
     12Being able to send and receive email often part of the web application development process.
     150 fidel:~# aptitude install mailx esmtp-run
     18You will then want to edit the /etc/esmtprc file, modifying the following lines:
     21# Config file for ESMTP sendmail
     23# The SMTP host and service (port)
     26# The user name
     29# The password
     36# Whether to use Starttls
     40FIXME: I can't properly send mail with this configuration, I get the following error:
     43Invalid peer certificate (error 20)
     440 (null) 0 (null)
     46Can't send mail: sendmail process failed with error code 70
     49This could be related to a known [ bug in esmtp].
    1051== Installing PHP, Apache, and MySQL ==
    12 == Configuring PHP, Apache, and MySQL ==
     53Install the required packages with:
     56aptitude install mysql-server php5-cgi php5-cli libapache2-mod-suphp apache2-mpm-prefork php5-mysql
     59== Configuring the environment ==
     61The goal of the configuration is to make it as easy as possible to setup a new development environment for a new project.
     63Each new project will have a unique, non-public domain name based on the name of the workstation. In this example, let's assume the workstation is named "fidel." So - a new project called mfpl would have the development domain name: mfpl.fidel (below we will edit the /etc/hosts file so that this non-public domain name will resolve to the development workstation).
     65Apache can be configured so that it dynamically sets the document root based on the domain name.
     67To enable that feature, create a new file called virtual-document-roots in the /etc/apache2/sites-available directory with the following contents (replace your-username with your actual username).
     70VirtualScriptAlias /home/your-username/projects/%1/cgi-bin/
     71VirtualDocumentRoot /home/your-username/projects/%1/web/
     74Next enable the vhost_alias module and the site configuration file you just created with:
     77a2enmod vhost_alias
     78a2ensite virtual-document-roots
    1482== Steps to create a new project ==