• We should now be fully online following an overnight outage. Apologies for any inconvenience, we do not expect there to be any further issues.

Setting up a linux webserver

Page 3 - Seeking answers? Join the AnandTech community: where nearly half-a-million members share solutions and discuss the latest tech.

anthony88guy

Senior member
Feb 3, 2005
220
0
0
amdserver@amdserver:~/Desktop/gftp/gftp-2.0.18$ ./configure
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for gawk... no
checking for mawk... mawk
checking whether make sets $(MAKE)... yes
checking build system type... i686-pc-linux-gnu
checking host system type... i686-pc-linux-gnu
checking for gcc... no
checking for cc... no
checking for cc... no
checking for cl... no
configure: error: no acceptable C compiler found in $PATH
See `config.log' for more details.

config.log:
This file contains any messages produced by compilers while
running configure, to aid debugging if configure makes a mistake.

It was created by configure, which was
generated by GNU Autoconf 2.59. Invocation command line was

$ ./configure

## --------- ##
## Platform. ##
## --------- ##

hostname = amdserver
uname -m = i686
uname -r = 2.6.10-5-386
uname -s = Linux
uname -v = #1 Tue Apr 5 12:12:40 UTC 2005

/usr/bin/uname -p = unknown
/bin/uname -X = unknown

/bin/arch = i686
/usr/bin/arch -k = unknown
/usr/convex/getsysinfo = unknown
hostinfo = unknown
/bin/machine = unknown
/usr/bin/oslevel = unknown
/bin/universe = unknown

PATH: /usr/local/bin
PATH: /usr/local/sbin
PATH: /sbin
PATH: /usr/sbin
PATH: /bin
PATH: /usr/bin
PATH: /usr/bin/X11
PATH: /usr/games


## ----------- ##
## Core tests. ##
## ----------- ##

configure:1372: checking for a BSD-compatible install
configure:1427: result: /usr/bin/install -c
configure:1438: checking whether build environment is sane
configure:1481: result: yes
configure:1514: checking for gawk
configure:1543: result: no
configure:1514: checking for mawk
configure:1530: found /usr/bin/mawk
configure:1540: result: mawk
configure:1550: checking whether make sets $(MAKE)
configure:1570: result: yes
configure:1778: checking build system type
configure:1796: result: i686-pc-linux-gnu
configure:1804: checking host system type
configure:1818: result: i686-pc-linux-gnu
configure:1872: checking for gcc
configure:1901: result: no
configure:1952: checking for cc
configure:1981: result: no
configure:1994: checking for cc
configure:2040: result: no
configure:2093: checking for cl
configure:2122: result: no
configure:2136: error: no acceptable C compiler found in $PATH
See `config.log' for more details.

## ---------------- ##
## Cache variables. ##
## ---------------- ##

ac_cv_build=i686-pc-linux-gnu
ac_cv_build_alias=i686-pc-linux-gnu
ac_cv_env_CC_set=
ac_cv_env_CC_value=
ac_cv_env_CFLAGS_set=
ac_cv_env_CFLAGS_value=
ac_cv_env_CPPFLAGS_set=
ac_cv_env_CPPFLAGS_value=
ac_cv_env_CPP_set=
ac_cv_env_CPP_value=
ac_cv_env_LDFLAGS_set=
ac_cv_env_LDFLAGS_value=
ac_cv_env_build_alias_set=
ac_cv_env_build_alias_value=
ac_cv_env_host_alias_set=
ac_cv_env_host_alias_value=
ac_cv_env_target_alias_set=
ac_cv_env_target_alias_value=
ac_cv_host=i686-pc-linux-gnu
ac_cv_host_alias=i686-pc-linux-gnu
ac_cv_path_install='/usr/bin/install -c'
ac_cv_prog_AWK=mawk
ac_cv_prog_make_make_set=yes

## ----------------- ##
## Output variables. ##
## ----------------- ##

ACLOCAL='${SHELL} /home/amdserver/Desktop/gftp/gftp-2.0.18/missing --run aclocal-1.7'
ALLOCA=''
AMDEPBACKSLASH=''
AMDEP_FALSE=''
AMDEP_TRUE=''
AMTAR='${SHELL} /home/amdserver/Desktop/gftp/gftp-2.0.18/missing --run tar'
ANSI2KNR=''
AUTOCONF='${SHELL} /home/amdserver/Desktop/gftp/gftp-2.0.18/missing --run autoconf'
AUTOHEADER='${SHELL} /home/amdserver/Desktop/gftp/gftp-2.0.18/missing --run autoheader'
AUTOMAKE='${SHELL} /home/amdserver/Desktop/gftp/gftp-2.0.18/missing --run automake-1.7'
AWK='mawk'
BUILD_INCLUDED_LIBINTL=''
CATOBJEXT=''
CC=''
CCDEPMODE=''
CFLAGS=''
CPP=''
CPPFLAGS=''
CYGPATH_W='echo'
DATADIRNAME=''
DB2HTML=''
DEFS=''
DEPDIR=''
ECHO_C=''
ECHO_N='-n'
ECHO_T=''
EGREP=''
EXEEXT=''
EXTRA_LIBS=''
GENCAT=''
GFTP_GTK=''
GFTP_TEXT=''
GLIBC21=''
GLIB_CFLAGS=''
GLIB_CONFIG=''
GLIB_LIBS=''
GMSGFMT=''
GTHREAD_LIBS=''
GTK_CFLAGS=''
GTK_CONFIG=''
GTK_LIBS=''
HAVE_ASPRINTF=''
HAVE_DOCBOOK_FALSE=''
HAVE_DOCBOOK_TRUE=''
HAVE_POSIX_PRINTF=''
HAVE_SNPRINTF=''
HAVE_WPRINTF=''
INSTALL_DATA='${INSTALL} -m 644'
INSTALL_PROGRAM='${INSTALL}'
INSTALL_SCRIPT='${INSTALL}'
INSTALL_STRIP_PROGRAM='${SHELL} $(install_sh) -c -s'
INSTOBJEXT=''
INTLBISON=''
INTLLIBS=''
INTLOBJS=''
INTL_LIBTOOL_SUFFIX_PREFIX=''
LDFLAGS=''
LIBICONV=''
LIBINTL=''
LIBOBJS=''
LIBS=''
LN_S=''
LTLIBICONV=''
LTLIBINTL=''
LTLIBOBJS=''
MAINT=''
MAINTAINER_MODE_FALSE=''
MAINTAINER_MODE_TRUE=''
MAKEINFO='${SHELL} /home/amdserver/Desktop/gftp/gftp-2.0.18/missing --run makeinfo'
MKINSTALLDIRS=''
MSGFMT=''
MSGMERGE=''
OBJEXT=''
PACKAGE='gftp'
PACKAGE_BUGREPORT=''
PACKAGE_NAME=''
PACKAGE_STRING=''
PACKAGE_TARNAME=''
PACKAGE_VERSION=''
PATH_SEPARATOR=':'
PKG_CONFIG=''
POSUB=''
PREFIX=''
PTHREAD_CFLAGS=''
PTHREAD_LIBS=''
RANLIB=''
READLINE_LIBS=''
SET_MAKE=''
SHELL='/bin/sh'
SSL_LIBS=''
STRIP=''
U=''
USE_INCLUDED_LIBINTL=''
USE_NLS=''
VERSION='2.0.18'
XGETTEXT=''
ac_ct_CC=''
ac_ct_RANLIB=''
ac_ct_STRIP=''
am__fastdepCC_FALSE=''
am__fastdepCC_TRUE=''
am__include=''
am__leading_dot='.'
am__quote=''
bindir='${exec_prefix}/bin'
build='i686-pc-linux-gnu'
build_alias=''
build_cpu='i686'
build_os='linux-gnu'
build_vendor='pc'
datadir='${prefix}/share'
exec_prefix='NONE'
host='i686-pc-linux-gnu'
host_alias=''
host_cpu='i686'
host_os='linux-gnu'
host_vendor='pc'
includedir='${prefix}/include'
infodir='${prefix}/info'
install_sh='/home/amdserver/Desktop/gftp/gftp-2.0.18/install-sh'
libdir='${exec_prefix}/lib'
libexecdir='${exec_prefix}/libexec'
localstatedir='${prefix}/var'
mandir='${prefix}/man'
oldincludedir='/usr/include'
prefix='NONE'
program_transform_name='s,x,x,'
sbindir='${exec_prefix}/sbin'
sharedstatedir='${prefix}/com'
sysconfdir='${prefix}/etc'
target_alias=''

## ----------- ##
## confdefs.h. ##
## ----------- ##

#define PACKAGE "gftp"
#define PACKAGE_BUGREPORT ""
#define PACKAGE_NAME ""
#define PACKAGE_STRING ""
#define PACKAGE_TARNAME ""
#define PACKAGE_VERSION ""
#define VERSION "2.0.18"

configure: exit 1

Im trying to install gftp, i've downloaded it from their website.
 

n0cmonkey

Elite Member
Jun 10, 2001
42,936
1
0
Originally posted by: anthony88guy
amdserver@amdserver:~/Desktop/gftp/gftp-2.0.18$ ./configure
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for gawk... no
checking for mawk... mawk
checking whether make sets $(MAKE)... yes
checking build system type... i686-pc-linux-gnu
checking host system type... i686-pc-linux-gnu
checking for gcc... no
checking for cc... no
checking for cc... no
checking for cl... no
configure: error: no acceptable C compiler found in $PATH
See `config.log' for more details.

No need for the config.log, the error is self explanatory. You didn't install the development tools. :p

Isn't gftp an ftp client anyhow?

Use your distro's package system, don't compile software on your own.
 

n0cmonkey

Elite Member
Jun 10, 2001
42,936
1
0
I think the package management client you want is synaptic, so try running that from a console.
 

anthony88guy

Senior member
Feb 3, 2005
220
0
0
I realized that Cpanel is not free. Could you recommend a free web host manager. I would like to have several accounts so users can manage their own site.

EDIT: VHCS?
 

Brazen

Diamond Member
Jul 14, 2000
4,259
0
0
Originally posted by: anthony88guy
I realized that Cpanel is not free. Could you recommend a free web host manager. I would like to have several accounts so users can manage their own site.

EDIT: VHCS?

I think I remember a guy in fedoraforum.org talking about this. In the How-To forum I think.

Also, as I tell most everyone, try Webmin for managing your server. I use it on servers with no gui, and I still use it on desktops with a gui cuz I think 9 times outa 10 it's better than any X-Window based tool out there. It's web-based by the way.
 

nsafreak

Diamond Member
Oct 16, 2001
7,093
3
81
Here's a recommendation for you. Even though I'm fairly sure this will be a low traffic webserver it's still a good idea to add some more protection to Apache since lots of folks like to go after it. I suggest installing the mod security module from http://www.modsecurity.org so that you have additional security on top of Apache.
 

anthony88guy

Senior member
Feb 3, 2005
220
0
0
Originally posted by: nsafreak
Here's a recommendation for you. Even though I'm fairly sure this will be a low traffic webserver it's still a good idea to add some more protection to Apache since lots of folks like to go after it. I suggest installing the mod security module from http://www.modsecurity.org so that you have additional security on top of Apache.

Im going to need to compile this right?


Use your distro's package system, don't compile software on your own.
How?
 

n0cmonkey

Elite Member
Jun 10, 2001
42,936
1
0
Originally posted by: anthony88guy
Originally posted by: nsafreak
Here's a recommendation for you. Even though I'm fairly sure this will be a low traffic webserver it's still a good idea to add some more protection to Apache since lots of folks like to go after it. I suggest installing the mod security module from http://www.modsecurity.org so that you have additional security on top of Apache.

Im going to need to compile this right?


Use your distro's package system, don't compile software on your own.
How?

It depends on your distro, check their docs.
 

Nothinman

Elite Member
Sep 14, 2001
30,672
0
0
mod_security is packaged in Debian, if you're using that (or probably Ubuntu too) you don't need to compile anything

$apt-cache search mod_security
libapache-mod-security - Tighten web applications security for Apache 1.x
libapache2-mod-security - Tighten web applications security for Apache 2.x
mod-security-common - Tighten web applications security - common files
 

anthony88guy

Senior member
Feb 3, 2005
220
0
0
INSTALL
=======


DSO
---

Compiling the module as a dynamic library is easy. Go to
the folder that contains the source code for your Apache
branch, and type the following:

apxs -cia mod_security.c
apachectl stop
apachectl start

Of course, now you need to add mod_security specific
directives to make it do something. Take a look at files
httpd.conf.example-minimal or httpd.conf.example-full to
get some idea of that to do. Or even better, read the manual.


Apache 1.x static compilation
-----------------------------

To compile the module into the body of the web server do
the following:

1. Copy the file mod_security.c to /src/modules/extra

2. Configure Apache distribution with two additional
configuration options:

--activate-module=src/modules/extra/mod_security
--?enable-module=securiy

3. Compile and install as usual

Sorry, But I'm very confused. I need this translated into noob instructions. Ive been running around in circles.
 

n0cmonkey

Elite Member
Jun 10, 2001
42,936
1
0
Originally posted by: anthony88guy
INSTALL
=======


DSO
---

Compiling the module as a dynamic library is easy. Go to
the folder that contains the source code for your Apache
branch, and type the following:

apxs -cia mod_security.c
apachectl stop
apachectl start

Of course, now you need to add mod_security specific
directives to make it do something. Take a look at files
httpd.conf.example-minimal or httpd.conf.example-full to
get some idea of that to do. Or even better, read the manual.


Apache 1.x static compilation
-----------------------------

To compile the module into the body of the web server do
the following:

1. Copy the file mod_security.c to /src/modules/extra

2. Configure Apache distribution with two additional
configuration options:

--activate-module=src/modules/extra/mod_security
--?enable-module=securiy

3. Compile and install as usual

Sorry, But I'm very confused. I need this translated into noob instructions. Ive been running around in circles.

Read Nothinman's post. You shouldn't be compiling if the software is available in your distro's package management interface.

EDIT: And those instructions are pretty easy.
 

anthony88guy

Senior member
Feb 3, 2005
220
0
0

Webmin uses its own password protected web server to provide access
to the administration programs. The setup script needs to know :
- What port to run the web server on. There must not be another
web server already using this port.
- The login name required to access the web server.
- The password required to access the web server.
- If the webserver should use SSL (if your system supports it).
- Whether to start webmin at boot time.

Web server port (default 10000):

Should I just go with the default? I dont know if apache is configured for this port.
 

n0cmonkey

Elite Member
Jun 10, 2001
42,936
1
0
Originally posted by: anthony88guy

Webmin uses its own password protected web server to provide access
to the administration programs. The setup script needs to know :
- What port to run the web server on. There must not be another
web server already using this port.
- The login name required to access the web server.
- The password required to access the web server.
- If the webserver should use SSL (if your system supports it).
- Whether to start webmin at boot time.

Web server port (default 10000):

Should I just go with the default? I dont know if apache is configured for this port.

Webmin uses its own webserver, so don't worry about apache.
 

anthony88guy

Senior member
Feb 3, 2005
220
0
0
I think I've installed Webmin correctly, seems to work fine. How would I make it so i can FTP into my own server? Also how do I access my server from the web? I can type the local IP address but say Im at my freinds house? Do I need to purchase a domain or can I use my IP address?

Thanks for your help.
 

n0cmonkey

Elite Member
Jun 10, 2001
42,936
1
0
Originally posted by: anthony88guy
I think I've installed Webmin correctly, seems to work fine. How would I make it so i can FTP into my own server?

Start your ftp daemon.

Also how do I access my server from the web? I can type the local IP address but say Im at my freinds house? Do I need to purchase a domain or can I use my IP address?

Thanks for your help.

You can use your IP address. Make sure it's an external IP address and not an RFC1918 IP (like you get when you're behind a SOHO router).
 

anthony88guy

Senior member
Feb 3, 2005
220
0
0
I think I've installed Webmin correctly, seems to work fine. How would I make it so i can FTP into my own server?

Start your ftp daemon.
"The FTP server /usr/sbin/in.ftpd could not be found on your system. Maybe it is not installed, or your FTP Server module configuration is incorrect."

"The Frox configuration file /usr/local/etc/frox.conf was not found on your system. Maybe it is not installed, or the module configuration is incorrect."

I looked in my distro package system but didnt find those (programs?).

Alot of the features I am trying to use give me an error similar to that.



Also how do I access my server from the web? I can type the local IP address but say Im at my freinds house? Do I need to purchase a domain or can I use my IP address?

Thanks for your help.

You can use your IP address. Make sure it's an external IP address and not an RFC1918 IP (like you get when you're behind a SOHO router).

The server is behind a linksys router. How would I go about an external IP?

 

n0cmonkey

Elite Member
Jun 10, 2001
42,936
1
0
Originally posted by: anthony88guy
"The FTP server /usr/sbin/in.ftpd could not be found on your system. Maybe it is not installed, or your FTP Server module configuration is incorrect."

"The Frox configuration file /usr/local/etc/frox.conf was not found on your system. Maybe it is not installed, or the module configuration is incorrect."

I looked in my distro package system but didnt find those (programs?).

Alot of the features I am trying to use give me an error similar to that.

What's giving you those errors? Webmin?

What's frox? :p

Did you install an ftp daemon?



The server is behind a linksys router. How would I go about an external IP?

http://www.whatismyip.com/

Make sure you forward port 80 from your router to your server. A service like dyndns.org might also be helpful.
 

Nothinman

Elite Member
Sep 14, 2001
30,672
0
0
Make sure you forward port 80 from your router to your server. A service like dyndns.org might also be helpful.

80 would be for HTTP, if you want FTP you'll need to forward 21.
 

anthony88guy

Senior member
Feb 3, 2005
220
0
0
http://amdserver.kicks-ass.net

I set up with my static IP, and have the router sending forwarding ports 80 and 21 to my local server IP. The DNS works locally, but not over the internet. Anyideas?

http://img274.imageshack.us/img274/4935/forwarding5zc.jpg How should it be set up?

Also alot of my modules cannot be found. Do I have install each and everyone?


EDIT: I just enabled DMZ Host IP, and its pointing to my local server IP.
 

Nothinman

Elite Member
Sep 14, 2001
30,672
0
0
EDIT: I just enabled DMZ Host IP, and its pointing to my local server IP.

AFAIK that essentially forwards all ports to that IP, you had better be damned sure about what you're doing before you do that.
 

n0cmonkey

Elite Member
Jun 10, 2001
42,936
1
0
Originally posted by: anthony88guy
http://amdserver.kicks-ass.net

I set up with my static IP, and have the router sending forwarding ports 80 and 21 to my local server IP. The DNS works locally, but not over the internet. Anyideas?

http://img274.imageshack.us/img274/4935/forwarding5zc.jpg How should it be set up?

It looks like you have it setup correctly. Try a weird high port, maybe your ISP blocks port 80.

Also alot of my modules cannot be found. Do I have install each and everyone?

Modules for what?