This article explains how to format a USB Drive or SD Card on Linux using the parted utility. Or parted to format the drive and create the required partitions. In Linux, you can use a graphical tool like GParted or command-line tools such as fdisk However, in some cases, you may need to format the drive.
Typically most USB drives and SD cards come preformatted using the FAT file system and do not need to be formatted out of the box. ServerAlias ErrorLog "logs/-error_log"ĬustomLog "logs/ you can use an SD card or USB drive, it needs to be formatted and partitioned. For example: ĭocumentRoot "/usr/local/apache2/docs/" You will have to add a section withing the similar to the one above, but for the document root of the VitualHost. If you want to configure more than one site, have a look at nf nano /usr/local/apache2/conf/extra/nf The essential parameters you may want to modify are: ServerName DocumentRoot "/usr/local/apache2/htdocs" If you want to configure your apache for just one site, simply edit the nf nano /usr/local/apache2/conf/nf If the terminal output of the last command shows some lines starting with "apache" then everything is OK. Sed -i -e 's/Group daemon/Group nogroup/g' /usr/local/apache2/conf/nf Sed -i -e 's/User daemon/User apache/g' /usr/local/apache2/conf/nf Secure Apache sudo service apachectl stop Hint: you can call apachectl with sudo service apachectl now. Sudo /usr/sbin/update-rc.d apachectl defaults
Sudo sed -i '2i #\n# BEGIN INIT INFO\n# Provides: apache2\n# Required-Start: $remote_fs\n# Required-Stop: $remote_fs\n# Default-Start: 2 3 4 5\n# Default-Stop: 0 1 6\n# Description: apache2\n# Short-Description: The Apache webserver\n# END INIT INFO' /etc/init.d/apachectl Make Apache start at boot time sudo cp /usr/local/apache2/bin/apachectl /etc/init.d/apachectl Which should output something like this in the terminal: It works! Navigate to in your browser, where you should see a message saying “It works!”.Īlterntively, you can do this via terminal: wget -qO- | grep "It works!" Start Apache: sudo /usr/local/apache2/bin/apachectl start configure -prefix=/usr/local/apache2 -enable-mods-shared=all -enable-deflate -enable-proxy -enable-proxy-balancer -enable-proxy-http wget ĭownload the curent version from the Apache Download Page (httpd-2.2.32.tar.gz as of writing), extract it, navigate to the extracted folder, build, and install. Download the current release from the zlip Hompage (zlib-1.2.11.tar.gz as of writing), extract it, navigate to the extracted folder, build, and install.
To give Apache the ability to compress output to browsers that support it, you need to install zlib. You need to have the build-essentials package installed to do this. How to install Apache 2.2 on an Ubuntu distro that does not have it in the repositories.
With my original question I have since found the original problem while downgrading so did not look into this problem any further since then. It seems like 2.2.22-1ubuntu1.7 does not exist any more. I managed to install it running the following command.