greenace92 Posted November 6, 2015 Share Posted November 6, 2015 (edited) I'm following Apache's directions to install apache and they say to "...unpack them into /httpd_source_tree_root/srclib/apr" and I'm wondering, since even the folder /etc/apache2 doesn't even exist yet, does that mean that the above directory doesn't exist yet? Was that implied? Am I supposed to create that directory? If so, what is the starting point or is the initial / literally the root directory? quick question: when downloading source .zip files or tar.gz whatever, should I put these in a folder outside of the folder where it will be extracted into? OR does that not matter? It's probably a preference thing right? It's not like I have a GUI with icons to see clutter. another question: when downloading all of the aspects of apache, how should I structure my directory, should everything stem from /etc/apache2 ? in the meantime I will reinstall a vps with the older os as they have apache preinstalled and I'll look at their directory structure as a reference. thanks for any help Here is the link I'm following: https://httpd.apache.org/docs/2.4/install.html specifically this paragraph: APR and APR-Util Make sure you have APR and APR-Util already installed on your system. If you don't, or prefer to not use the system-provided versions, download the latest versions of both APR and APR-Util from Apache APR, unpack them into /httpd_source_tree_root/srclib/apr and /httpd_source_tree_root/srclib/apr-util (be sure the directory names do not have version numbers; for example, the APR distribution must be under /httpd_source_tree_root/srclib/apr/) and use ./configure's --with-included-apr option. On some platforms, you may have to install the corresponding -dev packages to allow httpd to build against your installed copy of APR and APR-Util. Edited November 6, 2015 by greenace92 Quote Link to comment Share on other sites More sharing options...
QuickOldCar Posted November 6, 2015 Share Posted November 6, 2015 Why are you manually installing apache when is amp stacks or native packages linux? Quote Link to comment Share on other sites More sharing options...
scootstah Posted November 7, 2015 Share Posted November 7, 2015 (edited) You can install Apache on Linux with a single command. apt (Debian, Ubuntu) sudo apt-get install -y apache2 yum (CentOS, Fedora, RHEL) sudo yum install -y httpdThere's no need to compile it yourself unless you know what you're doing. Edited November 7, 2015 by scootstah Quote Link to comment Share on other sites More sharing options...
greenace92 Posted November 11, 2015 Author Share Posted November 11, 2015 Why are you manually installing apache when is amp stacks or native packages linux? Apache isn't included in my vps. The old version 2.2 used to be included in Debian 7 but even that no longer has Apache installed by default, I'm using Debian 8. Quote Link to comment Share on other sites More sharing options...
greenace92 Posted November 11, 2015 Author Share Posted November 11, 2015 (edited) You can install Apache on Linux with a single command. apt (Debian, Ubuntu) sudo apt-get install -y apache2 yum (CentOS, Fedora, RHEL) sudo yum install -y httpdThere's no need to compile it yourself unless you know what you're doing. Well I'll give that a shot, hopefully "it" chooses the latest version. I'm wondering if this will also install openssl as a "prerequisite" Yeah it installed, wow this was so much easier, I don't know what prompted me to think that this was not the case. Thanks Latest is 2.4.17 default installed 2.4.10 wonder if that has to do with stability or should I have specified which version to install? Tried to install latest by doing apt-get install Apache2=2.4.17-deb8u3 Says "Version '2.4.17-deb8ue' for 'apache2' not found. Maybe 2.4.10 is the best I can get at this point, not sure how detrimental that .17 is. Edited November 11, 2015 by greenace92 Quote Link to comment Share on other sites More sharing options...
scootstah Posted November 11, 2015 Share Posted November 11, 2015 Linux distributions maintain their own packages in their own repositories. You will never have the latest version when using default repositories. When the distro maintainers decide that a package version is stable enough and fit for distribution, it will be updated in the repository. You don't need to bother trying to achieve the latest hot-off-the-press version of software on Linux. If that's what you wanted, you would probably have to compile from source at that point, and then continue doing that every single day for any new releases. Usually you can find newer major versions maintained in third-party repositories, such as for PHP7, which is very easy to install. But if you just want Apache 2.4, use whatever the distro gives you. If you just want PHP 5.6, use whatever the distro gives you. Quote Link to comment Share on other sites More sharing options...
greenace92 Posted November 11, 2015 Author Share Posted November 11, 2015 I'm going to use the ones defined by the distro, not sure why go with the latest as you mentioned. Thanks for your reply Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.