Installing Apache22 on PCBSD
This apparently should be easy but after reading EasyFreeBSD I'm totally confused. I apparently cannot AGAIN run a "make install"
I'm running PCBSD Isotope and would like to set up a practice server outside of the Jails environment. (That I seemed to have done successfully.)
Last week I thought I installed Apache from AppCafe and it appears to be in my installed software set.
I have installed the ports through System Manager. So I guess I'm working in the /usr/ports/www/apache22 directory.
Can someone point me to a good guide on how to install Apache? I'm really working toward developing a wiki which will entail installing PAMP (which I assume is the equivalent of WAMP and LAMP).
I've got apache working.
It was touch and go for a while. I found no wiki guide to help me through at all. I might be able to answer a question or two if I'm lucky.
One kicker that frustrated me was the accf_data.ko and the accf_http.ko that have to be loaded before apache will work properly. Had to google around for awhile before I found that. Otherwise it's pretty much read and run. Any other questions, feel free to ask. I'm sure someone will have an answer.
Having migrated from FreeBSD to PCBSD I much prefer the ports over the appcafe. You could do a 'make reinstall' if you really wanted to install from ports. Also a glitch for me was to insure www owned and operated apache22 and it's subdirectories. I use the group wheel, just to be sure. A third glitch for me was to insure the ip address apache was listening on was placed outside my modem's dmz. Why I don't know, but that's my setup. Your mileage may vary.
If you did install from ports you might want to think about a make then a make install or reinstall. Be sure to look over the output. As many executables are put into the /usr/local/bin directory. If your setup mirrors mine then you might want to look over the /usr/local/etc directory and the /usr/local/etc/rc.d directory for apache scripts. My install of apache22 on 9-1 Isotope put apache22 in the /usr/local/www directory.
When running PC-BSD, you'll probably running it as a user.
start up a terminal and do a "su" (without the quotes) and passwd
that'll brings you into /usr/home/username
2. cd /usr/ports/www/apache22
3. do a "make config" (configure what you want)
4. do a "make install clean"
5. after finish installing do a "vi /etc/rc.conf" and enter "apache22_enable="YES"
6. cd /usr/local/etc/rc.d
7. ./apache22 start
8. start a browser: http://localhost and it should say "It works!!"
vi = an editor
I've installed on my laptop (Lenovo Edge 15) apache, Mysql-server, php and phpmyadmin, all working local without a problem.
|All times are GMT. The time now is 02:25 PM.|
Powered by vBulletin® Version 3.8.5
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.