Hi all,
I'm a user (no root permissions) but I've been given permissions to the /export directory; I need to start apache but I cannot use port 80 (...not root). They've installed apache for me but it's a bit different than /etc/httpd like I'm used to.
Here's an ls of my directory
Code:
bash-3.2$ ls
ABOUT_APACHE config.status InstallBin.dsp NWGNUmakefile
acinclude.m4 configure LAYOUT os
Apache.dsw configure_backup.in libhttpd.dsp README
build configure.in LICENSE README.platforms
BuildAll.dsp configure.in~ Makefile README-win32.txt
BuildBin.dsp docs Makefile.in ROADMAP
buildconf emacs-style Makefile.win server
buildmark.o httpd modules srclib
CHANGES httpd.dsp modules.c support
config.layout httpd.spec modules.lo test
config.log include modules.o VERSIONING
config.nice INSTALL NOTICE
There is httpd.conf in the docs folder but that looks more like a template, so I figure the only file that makes sense to search is configure.in and then run the configure script. I found some port settings in configure.in but changing them didn't make a difference.
So right now I just searched in the configure script and found a couple lines that are interesting.
Code:
Optional Packages:
--with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
--without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
--with-included-apr Use bundled copies of APR/APR-Util
--with-apr=PATH prefix for installed APR or the full path to
apr-config
--with-apr-util=PATH prefix for installed APU or the full path to
apu-config
--with-pcre=PATH Use external PCRE library
--with-port=PORT Port on which to listen (default is 80)
--with-sslport=SSLPORT Port on which to securelisten (default is 443)
Is this saying to specify port run
Code:
./configure --with-port=8081
???
Then I found this line down below where I specified port in the else (default was 80)..
Code:
# Check whether --with-port was given.
if test "${with_port+set}" = set; then
withval=$with_port; if test "$withval" = "yes"; then { { $as_echo "$as_me:$LINENO: error: 'option --with-port requires a value (the TCP port number)'" >&5
$as_echo "$as_me: error: 'option --with-port requires a value (the TCP port number)'" >&2;}
{ (exit 1); exit 1; }; }; else PORT="$withval"; fi
else
PORT=8081
fi
Thanks for the help!
Chris