In this example we extract the source code to a directory under /usr/local/src/
cp httpd-2.0.46.tar.gz /usr/local/src cd /usr/local/src gunzip httpd-2.0.46.tar.gz tar -xvf httpd-2.0.46.tar rm -f httpd-2.0.46.tar cd httpd-2.0.46
You will see quite a few options there, we will set the prefix (the directory to install apache, we picked /usr/local/apache2) and also tell it which modules to compile and install. We will tell configure to compile and install all modules as shared DSO libraries, that way we can easily enable and disable them in the httpd.conf file. Here's how we ran configure:
./configure --prefix=/usr/local/apache2 --enable-mods-shared=all
Compile Apache Now to compile apache we run make this compiles the source code into executable binaries.
make
Installing Apache The next step copies the binaries into the install directory, and sets up the modules.
make install
Starting/Stopping/Restarting Apache Now to start/stop apache use apachectl in the bin directory of your install dir.
cd /usr/local/apache2/bin ./apachectl start ./apachectl stop ./apachectl restart
A script for init.d (optional) Here's a script you can save to /etc/init.d/httpd it is a modified version of the one that came in the rpm for Apache 2.0.40
#!/bin/bash # # Startup script for the Apache Web Server # # chkconfig: - 85 15 # description: Apache is a World Wide Web server. It is used to serve \ # HTML files and CGI. # processname: httpd # pidfile: /usr/local/apache2/logs/httpd.pid # config: /usr/local/apache2/conf/httpd.conf # Source function library. . /etc/rc.d/init.d/functions if [ -f /etc/sysconfig/httpd ]; then . /etc/sysconfig/httpd fi # This will prevent initlog from swallowing up a pass-phrase prompt if # mod_ssl needs a pass-phrase from the user. INITLOG_ARGS="" # Path to the apachectl script, server binary, and short-form for messages. apachectl=/usr/local/apache2/bin/apachectl httpd=/usr/local/apache2/bin/httpd pid=$httpd/logs/httpd.pid prog=httpd RETVAL=0 # The semantics of these two functions differ from the way apachectl does # things -- attempting to start while running is a failure, and shutdown # when not running is also a failure. So we just do it the way init scripts # are expected to behave here. start() { echo -n $"Starting $prog: " daemon $httpd $OPTIONS RETVAL=$? echo [ $RETVAL = 0 ] && touch /var/lock/subsys/httpd return $RETVAL } stop() { echo -n $"Stopping $prog: " killproc $httpd RETVAL=$? echo [ $RETVAL = 0 ] && rm -f /var/lock/subsys/httpd $pid } reload() { echo -n $"Reloading $prog: " killproc $httpd -HUP RETVAL=$? echo } # See how we were called. case "$1" in start) start ;; stop) stop ;; status) status $httpd RETVAL=$? ;; restart) stop start ;; condrestart) if [ -f $pid ] ; then stop start fi ;; reload) reload ;; graceful|help|configtest|fullstatus) $apachectl $@ RETVAL=$? ;; *) echo $"Usage: $prog {start|stop|restart|condrestart|reload|status" echo $"|fullstatus|graceful|help|configtest}" exit 1 esac exit $RETVAL
Next run chkconfig to setup runlevels for which httpd will run:
chkconfig --add httpd chkconfig --level 2345 httpd on chkconfig --list
Nice information. Thank you for sharing such post...!
usefull and awesome article.
Really helpful post.
Verynice aricle.
Thank you for sharing.
very nice blog thanks for sharing
very nice blog It was really useful
Nice blog
uipath training in bangalore
angular4 interview questions
python interview questions
artificial intelligence interview questions
python online training
artificial intelligence online training
talend training
docker training
I got nice blog
sap partner companies in bangalore
sap implementation companies in bangalore
sap partners in india
aws staffing
jquery interview questions
sql interview questions
Excellent blog
python interview questions
git interview questions
django interview questions
sap grc interview questions and answers
advanced excel training in bangalore
zend framework interview questions
apache kafka interview questions
Nice blog
myTectra Profile | Trainingindustry.com
myTectra | Instagram
myTectra | Youtube
Thank you for sharing this type of interview questions
Iot Online Training
Itil Interview Questions
Salesforce Interview Questions
Msbi Interview questions
Salesforce Interview Questions
C Interview Questions
Your good knowledge and kindness in playing with all the pieces were very useful. I don’t know what I would have done if I had not encountered such a step like this.
AWS TRAINING IN BANGALORE
Your good knowledge and kindness in playing with all the pieces were very useful. I don’t know what I would have done if I had not encountered such a step like this.
AWS TRAINING IN BANGALORE
Thank you a lot for providing individuals with a very spectacular possibility to read critical reviews from this site.
Angularjs2 Training in Porur
I feel really happy to have seen your webpage and look forward to so many more entertaining times reading here. Thanks once more for all the details.
php training in porur
I‘d mention that most of us visitors are endowed to exist in a fabulous place with very many wonderful individuals with very helpful things.
oracle training in porur
It has been simply incredibly generous with you to provide openly
what exactly many individuals would’ve marketed for an eBook to end
up making some cash for their end, primarily given that you could
have tried it in the event you wanted.
aws training in chennai
aws training in bangalore
It has been simply incredibly generous with you to provide openly
what exactly many individuals would’ve marketed for an eBook to end
up making some cash for their end, primarily given that you could
have tried it in the event you wanted.
aws training in chennai
aws training in bangalore
Needed to compose you a very little word to thank you yet again regarding the nice suggestions you’ve contributed here.
python training in chennai
Find latest interview questions on PHP, MySQL, Zend PHP, MySQL, Zend Framework, CakePHP, jQuery, NodeJS, Laravel, Angularjs, Angular 2, React Js, Vue js, JSF, struct, CSS3, HTML5, Javascript, JSON, MAVEN, jQuery, NodeJS, Laravel, Angularjs, React Js
https://www.onlineinterviewquestions.com/
Hi, Great.. Tutorial is just awesome..It is really helpful for a newbie like me.. I am a regular follower of your blog. Really very informative post you shared here. Kindly keep blogging. If anyone wants to become a Front end developer learn from Javascript Training in Chennai . or learn thru Javascript Training in Chennai. Nowadays JavaScript has tons of job opportunities on various vertical industry. JavaScript Training in Chennai
Good collection of information do keep updating us with useful information thanks...
Best Online Software Training Institute | Apache Spark Training
Awesome blog with smart content...
Summer Course Training in Chennai | Summer Course Training in Velachery
Wonderful article, very useful and well explanation. Thanks a lot for offering this unique post with us. I really enjoyed by reading your blog post.
Citrix Exams in Chennai | Xenapp exam center in Chennai
I really enjoyed reading the Post. It was very informative and useful..Embedded Project Center in Chennai | Embedded Project Center in Velachery
Thanks for your informative article. Your post helped me a lot in understanding the career prospects
OCJP Exam Center in Chennai | OCJP Exam Center in Velachery
nice blog cloud computing training in chennai
Wonderful post. I learned so many things from your blog.. keep posting.Java Project Center in Chennai | Java Project Center in Velachery
Your blog was so awesome., you explained clearly each and every topic..VLSI Project Center in Chennai | VLSI Project Center in Velachery
Excellent information...It was getting more information about your blog. Thanks for sharing, keep updating.
Python Courses Certifications Training in Chennai | Excellent Python Classes in Saidapet
Very good informative article. Thanks for sharing such nice article, keep on up dating such good articles.
Cisco Certifications Coaching Center in Chennai | Best Cisco Courses in Chromepet
I am happy to read your blog,its really amazing with useful information.keep updating
ISTQB Certifications Course in Chennai | QA Testing in Medavakkam
AWS Training in Bangalore - Live Online & Classroom
myTectra Amazon Web Services (AWS) certification training helps you to gain real time hands on experience on AWS. myTectra offers AWS training in Bangalore using classroom and AWS Online Training globally. AWS Training at myTectra delivered by the experienced professional who has atleast 4 years of relavent AWS experince and overall 8-15 years of IT experience. myTectra Offers AWS Training since 2013 and retained the positions of Top AWS Training Company in Bangalore and India.
IOT Training in Bangalore - Live Online & Classroom
IOT Training course observes iot as the platform for networking of different devices on the internet and their inter related communication. Reading data through the sensors and processing it with applications sitting in the cloud and thereafter passing the processed data to generate different kind of output is the motive of the complete curricula. Students are made to understand the type of input devices and communications among the devices in a wireless media.
Thank you so much for sharing this.
Amazon has a simple web services interface that you can use to store and retrieve any amount of data, at any time, from anywhere on the web. Amazon Web Services (AWS) is a secure cloud services platform, offering compute power, database storage, content delivery and other functionality to help businesses scale and grow.For more information visit.
aws online training
aws training in hyderabad
amazon web services(AWS) online training
amazon web services(AWS) training online
Great Article
Final Year Projects for CSE in Python
FInal Year Project Centers in Chennai
Python Training in Chennai
Python Training in Chennai
One of the best blogs that I have read till now. Thanks for your contribution in sharing such a useful information. Waiting for your further updates.
IELTS Training Institute in T Nagar
IELTS Classes in KK Nagar
IELTS Classes in Chennai Ashok Nagar
IELTS Coaching near Porur
IELTS Training in Poonamallee
IELTS Coaching Center near me
IELTS in Ramapuram
Blog with more latest info stuffed. Thanks for sharing with us.
selenium training in tambaram
selenium training in adyar
iOS Training in Chennai
French Classes in Chennai
Big Data Training in Chennai
web design training in chennai
website designing training
web designing training in chennai
the above information is valuable and i got so many good ideas from this.thanks for this information.
Devops course in Chennai
Best devops Training in Chennai
Devops Training institutes in Chennai
AWS course in Chennai
AWS Certification in Chennai
R Training in Chennai
After i read this blog i know more related things about technology.this blog helps me to study...useful blog.
ccna Training in Chennai
ccna course in Chennai
Python Training in Chennai
Python course in Chennai
Data Science Course in Chennai
Data Science Training in Chennai
thanks for giving a chance to read this.its very very helpful for study.good job
Amazon web services Training in Chennai
Best AWS Training in Chennai
AWS Training institute in Chennai
Its such a wonderful arcticle.the above article is very helpful to study the technology thanks for that.
Python Classes in Chennai
Python Training Institute in Chennai
ccna Training Institute in Chennai
ccna Institute in Chennai
R Training in Chennai
R Programming Training in Chennai
Python Training in OMR
Python Training in Porur
Have questions about online casino games? Come to us and you will succeed best online casino slots only we have big winnings.
Really awesome blog. Your blog is really useful for me
Regards,
Data Science Course In Chennai
Data Science Course Training
Data Science Training in Chennai
Data Science Certification Course
Data Science Certification Training
Data Science Training Institute
Your blog is full of creative ideas and that shows your thoughts.thank you very much for giving us this blog.
SEO Training in Chennai
Digital Marketing Course in Chennai
JAVA Training in Chennai
german classes in chennai
SEO Training in Chennai
SEO Training Center in Chennai
SEO Training in OMR
You are doing a great job. I would like to appreciate your work for good accuracy
Data Science Course in Chennai
Data Science With R
Python Training in Chennai
Machine Learning in Chennai
SAS Traioning in Chennai
Алюминиевый светодиодный профиль для led ленты я обычно беру в Ekodio там достойное качество и отличные цены.
Very super article! I really happy to read your post and I got different ideas from your great blog. I am waiting for more kinds of posts...
Tableau Training in Chennai
Tableau Course in Chennai
Excel Training in Chennai
Oracle Training in Chennai
Oracle DBA Training in Chennai
Power BI Training in Chennai
Embedded System Course Chennai
Linux Training in Chennai
Tableau Training in Chennai
Tableau Course in Chennai
Its a wonderful post and very helpful, thanks for all this information. You are including better information regarding this topic in an effective way. T hank you so much.
Big Data Analytics Courses in Chennai
Big Data Analytics Training in Chennai
Angularjs Training in Chennai
Selenium Training in Chennai
German Classes in Chennai
Big Data Analytics Training in Velachery
Big Data Analytics Training in Tambaram
Thanks for blog really informative. Hope i will find more interesting post from you
UiPath Training in Bangalore
UiPath Training in BTM
Artificial Intelligence training in Bangalore
Artificial Intelligence training in BTM
data science with python training in Bangalore
data science with python training in BTM
Your info is really amazing with impressive content..Excellent blog with informative concept. Really I feel happy to see this useful blog, Thanks for sharing such a nice blog..
If you are looking for any Data science Related information please visit our website Data science courses in Pune page!
Good job! Fruitful article. I like this very much. It is very useful for my research. It shows your interest in this topic very well. I hope you will post some more information about the software. Please keep sharing!!
SEO Training in Chennai
SEO Training in Bangalore
SEO Training in Coimbatore
SEO Training in Madurai
SEO Course in Chennai
SEO Course in Chennai
SEO Course in Bangalore
SEO Course in Coimbatore
Nice...
bitwise aptitude questions
how to hack flipkart legally
zenq interview questions
count ways to n'th stair(order does not matter)
zeus learning subjective test
ajax success redirect to another page with data
l&t type 2 coordination chart
html rollover image
hack android phone using cmd
how to hack internet speed upto 100mbps
Good...
internships in chennai
winter internship mechanical engineering
internship for aeronautical engineering students in india 2019
kaashiv
list of architectural firms in chennai for internship
paid internships in pune for computer science students
diploma final year project topics for information technology
internship
data science internship report
inplant training
Nice post...
3d-modeler-resume-samples
3d modeler resume samples
accounting-assistant-resume-sample
accounting-clerk-resume-sample
accounting-manager-resume-samples
account-manager-resume-examples
accounts-payable-resume-sample
admin-manager-resume-samples
advocate-resume-sample
advocate-resume-sample
Nice blog!!!
Internships in pune for computer science students
Internships in pune for computer science students
Inplant training certificate format
Internships in bangalore for ece students
Industrial training for electronics and communication engineering students
Internship for computer science students in bangalore
Internship for ece students
Mba internship in chennai
Inplant training in chennai for ece
Internship in nagpur for cse
FANTASTIC!!!
Robotics training in chennai
Internship for cse students in chennai
Iot internship in chennai
Kaashiv infotech in bangalore
Free internship in chennai for mechanical engineering students
Inplant training
Ece internship in chennai
Internship for cse students in bangalore
Free internship for cse students in chennai
Internship for eee students in chennai
I am really happy to say it’s an interesting post to read. I learn new information from your article, you are doing a great job, Keep it up.
mobile phone repair in Novi
iphone repair in Novi
cell phone repair in Novi
phone repair in Novi
tablet repair in Novi
ipad repair in Novi
mobile phone repair Novi
iphone repair Novi
cell phone repair Novi
phone repair Novi
Thanks for sharing the valiuable post, it is easy to un derstand the contepts.
PHP Training in Bangalore
PHP Training in Chennai
PHP Course in Bangalore
PHP Training Institute in Bangalore
PHP Classes in Bangalore
AWS Training in Bangalore
Data Science Courses in Bangalore
DevOps Training in Bangalore
DOT NET Training in Bangalore
Data Science Course in Chennai
Get inspired by your blog. Keep doing like this....
Ethical Hacking Course in Chennai
Ethical hacking course in bangalore
Ethical hacking course in coimbatore
Hacking course in bangalore
Ethical hacking in bangalore
Ethical hacking training in bangalore
Ethical Hacking institute in Bangalore
Ethical hacking Training institute in bangalore
Tally Course in Bangalore
German Classes in Bangalore
very nice blogger thanks for sharing......!!!
coronavirus update
inplant training in chennai
inplant training
inplant training in chennai for cse
inplant training in chennai for ece
inplant training in chennai for eee
inplant training in chennai for mechanical
internship in chennai
online internship
Resources like the one you mentioned here will be very useful to me ! I will post a link to this page on my blog. I am sure my visitors will find that very useful
AWS training in chennai | AWS training in anna nagar | AWS training in omr | AWS training in porur | AWS training in tambaram | AWS training in velachery
This great article has really peaked my interest. I am going to book mark your blog and keep checking for new information about once per week.
Selenium Training in chennai | Selenium Training in anna nagar | Selenium Training in omr | Selenium Training in porur | Selenium Training in tambaram | Selenium Training in velachery
Really good information to show through this blog. I really appreciate you for all the valuable information that you are providing us through your blog.
visit : Digital Marketing Training in Chennai || Digital Marketing Course in Chennai
Great post. Thanks for sharing.....
AWS Training in Bangalore
AWS Training in Pune
AWS Training in Hyderabad
AWS Training in Delhi
AWS Training in Gurgaon
Good Informative Blog.. Keep updating
PHP Training in Chennai
PHP Course in Chennai
PHP Training Institute in Chennai
PHP Classes in Bangalore
Best PHP Training Institute in Bangalore
Much obliged for sharing a Information to us. Assuming somebody need to think about Blog...
AWS Training in Hyderabad
Extraordinary Blog. Provides necessary information.
german institute in Chennai
german coaching center in Chennai
This post is so interactive and informative.keep update more information…
Android Training in Anna Nagar
Android Training in Chennai
This post is so interactive and informative.keep update more information...
Artificial Intelligence Course in Tambaram
Artificial Intelligence Course in Chennai
Great post. keep sharing such a worthy information.
Angularjs Training in Chennai
Angularjs Certification Online
Angularjs Training In Bangalore
Thank you for sharing this valuable information with us.
Thirukkural pdf
Sai Satcharitra in English pdf
Sai Satcharitra in Tamil pdf
Sai Satcharitra in Telugu pdf
Sai Satcharitra in Hindi pdf
How to Crack Hotspot Shield VPN Elite · Firstly, uninstall all the previous versions of Hotspot Shield installed in your system. Hotspot Shield Elite For Pc
Great post. keep sharing such a worthy information.
Data Science Course in Chennai
The Unexpected Moment Is Always Sweeter Words Quotes Inspirational Words Words. Thoughtful Surprise Gift Quote Gift Quotes Surprise Gifts Personalized Gifts. Life Surprise Quotes