Category: Linux
-
Apache2 on Ubuntu – Hosting multiple websites
Create directories for a new site. E.g./var/www/sites/mysite.com/htdocs/var/www/sites/mysite.com/logs/var/www/sites/mysite.com/cg-bin In /etc/apache2/conf.d/ create new file virtual.conf## Running multiple virtual hosts.#NameVirtualHost * /etc/apache2/sites-availableThis contains configuration files for sites which are available but not necessarily enabled./etc/apache2/sites-enabledThis directory contains site files which are enabled.Each configuration file in the sites-enabled directory is loaded when the server starts – whilst the files in…
-
Ubuntu server network stops working after moving to another VMware host
Resolved by deleting:/etc/udev/rules.d/70-persistent-net.rules Restart machineThis will update the MAC address
-
Set up Ubuntu Web Server
Install LAMP (Linux-Apache-MySQL-PHP) Select the LAMP option during installation.orsudo tasksel install lamp-server default WWW root folder/var/www To restart apache:sudo /usr/sbin/apache2ctl restart Install PHPMyAdmin sudo aptitude install phpmyadminaddress: http://serverip/phpmyadmin/ If installation was successful, but browsing to the above address you are getting “Not Found” error, try to create a symbolic link phpmyadmin pointing to /usr/share/phpmyadmin your…
-
Useful Linux Terminal commands
HDD and partitions df -h – How much free disk space is available for each mount.mount -t auto /dev/cdrom /cdfolder – mounts cd-rom to /cdfolderumount /cdfolder – unmounts cdfolder fdisk -l – show hard drives and partitionsfdisk /dev/sda – start fdisk for sda hard drivecommands:a – bootable flagp – display partitions tabled – delete a…
