Building Web server

Read the rest of this entry »[note]
  • Ubuntu 10.04 Desktop
  • Apacher 2
  • MySQL 5
  • PHP 5
  • FTP server
[/note]… in progress … This is not a complete manual HOW-TO and, of course, there are other solutions, packages, and software as well as the better or correct settings and modifications. But, it’s straight way to get a small “replica” of Linux VPS on your desk within a few hours. So, please, if you don’t need or you are Linux guru, just skip all of the below. Ubuntu 10.04 on laptop Acer Extensa 5620Z
  • Why is Ubuntu? I tested a few live-CDs with 32- and 64-bit systems, and the only one started and was working smoothly on my laptop was Ubuntu 10.04 32-bit. The problem with 64-bit was, of course, support Adobe Flash and some other desktop features.
  • If it’s necessary, set Ubuntu Linux root password:
    $sudo passwd root
  • Share /var/www directory to have access from another Windows PC.  If for Windows computer is not in  default WORKGROUP , it will be better to change its name in samba configuration file at
    /etc/samba
All the program, modules, including HP and Canon printers drivers are from the Ubuntu repository. Apache 2 server
  • Apache mod_rewrite
  • Modify configuration file in /etc/apache2/site-available
    <Directory /var/www>
      AllowOverride All
    </Directory>
PHP 5.2.* is installed as Apache module
  • It’s installed as an Apache modules
  • Additional modules: gd and curl
MySql 5.* & phpMyAdmin
  • The problem with phpmysqladmin installation is the package is inaccessible through local web server. So, I think the easiest way is to create a link to that folder from the web server’s root directory.
    $sudo ln -s /usr/share/phpadmin /var/www
FTP server
  • You do not need to have FTP server installed until your working/playing with WordPress and you would like to use auto update feature.
  • Uncomment the line
    #local_enable=YES in
    /etc/vsftpd.conf
Remote Access to the server
  • Now we can try to assign the static IP address to the web server to provide access from anywhere by using DDN service.
  • Static IP address is used for wired connection
  • PROBLEM: failed to bind mySQL to the static IP address, so it accessible only with phpamin
  • PROBLEM: to get access to the Windows computers I have to to use wireless card with DHCP

Leave a Reply



Spam Protection by WP-SpamFree