Linux Help
guides forums blogs
Home Desktops Distributions ISO Images Logos Newbies Reviews Software Support & Resources Linuxhelp Wiki

Welcome Guest ( Log In | Register )



Advanced DNS Management
New ZoneEdit. New Managment.

FREE DNS Is Back

Sign Up Now
 
Reply to this topicStart new topic
> Help To Setup The Apache Server
kicon
post Jan 13 2005, 06:48 PM
Post #1


Whats this Lie-nix Thing?
*

Group: Members
Posts: 16
Joined: 10-January 05
Member No.: 4,468



iam getting so tire when i tried to setup the apache server by myself. i have a redhat linux9. all i want to do is to browse my website from the web browser and upload, download the files using ftp. i went to config the apache sever section. this gonna blink me up. the first step i did i went to check the server status and it said the the apache down. i went back to the apache sever config and start it up it said with this:

Failed to start apache :
Starting httpd: httpd: Could not determine the server's fully qualified domain name, using 127.0.0.1 for ServerName
[FAILED]

would you please help me with this.
Go to the top of the page
 
+Quote Post
Jim
post Jan 13 2005, 07:47 PM
Post #2


Its GNU/Linuxhelp.net
*******

Group: Support Specialist
Posts: 1,280
Joined: 19-November 03
From: University of Minnesota- TC
Member No.: 1,828



You need to cheack your hostname and dnsdomainname files. Both are stored in your /etc folder.

Your /etc/hostname file should contain the specific name of your machine.

The /etc/dnsdomainname should just be localhost or something unless you actually have a domain that this network is running on.

Check the values in each of these files and see if setting them will help.


--------------------
--Jim Lester
jim@linuxhelp.net

Distro: Gentoo
System: AMD Athlon 3000+ XP 2.166 GHz
NVIDIA nForce2 IGP Chipset
1GB 333 MHz DDR SDRAM
NVIDIA nForce2 Dual Head 64 MB Graphics

Server Distro: CentOS
Go to the top of the page
 
+Quote Post
kicon
post Jan 13 2005, 11:49 PM
Post #3


Whats this Lie-nix Thing?
*

Group: Members
Posts: 16
Joined: 10-January 05
Member No.: 4,468



wow it really working now. the i can start the apache server by configure the full hostname. thank so much for this.

would you help me another step what to config so i can upload the index file in the var/www/html and view it in the browser.
Go to the top of the page
 
+Quote Post
Jim
post Jan 14 2005, 02:27 AM
Post #4


Its GNU/Linuxhelp.net
*******

Group: Support Specialist
Posts: 1,280
Joined: 19-November 03
From: University of Minnesota- TC
Member No.: 1,828



Its giving you a permision denied error right? You can do one of two things, either you can log in as root and copy the files over, or you can change the ownership of the folder to your user. If you want to change it you just need this command.

chown -R user /var/www/html

the -R makes it recersive, that means it applies it to everything in the folder too, and obviously sub out user with your user name. Generally, I just log in as root or us su to copy the files over, that way I feel like my folder is a little better protected, but its up to you.


--------------------
--Jim Lester
jim@linuxhelp.net

Distro: Gentoo
System: AMD Athlon 3000+ XP 2.166 GHz
NVIDIA nForce2 IGP Chipset
1GB 333 MHz DDR SDRAM
NVIDIA nForce2 Dual Head 64 MB Graphics

Server Distro: CentOS
Go to the top of the page
 
+Quote Post
kicon
post Jan 14 2005, 06:51 PM
Post #5


Whats this Lie-nix Thing?
*

Group: Members
Posts: 16
Joined: 10-January 05
Member No.: 4,468



thats right it giving a 404 error.

iam trying to do what you said but i have no idea where i copy from and where should it go?

if i want to type command where should i type it?
Go to the top of the page
 
+Quote Post
Jim
post Jan 14 2005, 11:27 PM
Post #6


Its GNU/Linuxhelp.net
*******

Group: Support Specialist
Posts: 1,280
Joined: 19-November 03
From: University of Minnesota- TC
Member No.: 1,828



Wait, what exactly are you trying to do and what exactly is your error?

The /var/www/html folder is where apache stores the files for your websight. So you need to copy to files for you websight (I don't know where you are creating them) and copy to over to /var/www/html

Files in that folder are the root of your sight. So the index.htm file in there gets loaded when you go to www.whatever.com and then folders work like extensions www.whatever.com/folder

If you are getting a 404 error thats from the browser, that means the file isn't there.

The commands I gave you go into a command line, like a terminal. Just start up a terminal/console and type them in.


--------------------
--Jim Lester
jim@linuxhelp.net

Distro: Gentoo
System: AMD Athlon 3000+ XP 2.166 GHz
NVIDIA nForce2 IGP Chipset
1GB 333 MHz DDR SDRAM
NVIDIA nForce2 Dual Head 64 MB Graphics

Server Distro: CentOS
Go to the top of the page
 
+Quote Post
kicon
post Jan 15 2005, 04:13 AM
Post #7


Whats this Lie-nix Thing?
*

Group: Members
Posts: 16
Joined: 10-January 05
Member No.: 4,468



i cant find the terminal. the only thing i see it is the command shell.

i dont know where the apache installed. when i have the server it is already there. the only thing i did is to start up the apache server. and i can only browse the index.html in the folder var/www/html/error. so you think should i remove and install the apache server again. if you suggest me this, how do i uninstall and where should i install it.
Go to the top of the page
 
+Quote Post
Jim
post Jan 15 2005, 05:03 AM
Post #8


Its GNU/Linuxhelp.net
*******

Group: Support Specialist
Posts: 1,280
Joined: 19-November 03
From: University of Minnesota- TC
Member No.: 1,828



No no, don't un-install it. The command shell is the terminal. Shell, terminal, console, they all mean the same thing.

If you don't put anyfiles in the folder, there wont be anything there. You need to make a websight to put into the folder. The /error folder is for error pages, it alows you to create custom pages for things like "404 not found" and what not. Any page that the server is going to put out has to be written by you and placed in the /var/www/html folder, otherwise there will be nothing for the apache server to serve.

When somebody trys to open a webpage link to your IP address, they get what ever is in the /var/www/html folder. Thats the way it works, so what ever you want them to see when they bring up your computer, you need to put in the /var/www/html folder.


--------------------
--Jim Lester
jim@linuxhelp.net

Distro: Gentoo
System: AMD Athlon 3000+ XP 2.166 GHz
NVIDIA nForce2 IGP Chipset
1GB 333 MHz DDR SDRAM
NVIDIA nForce2 Dual Head 64 MB Graphics

Server Distro: CentOS
Go to the top of the page
 
+Quote Post
kicon
post Jan 15 2005, 02:45 PM
Post #9


Whats this Lie-nix Thing?
*

Group: Members
Posts: 16
Joined: 10-January 05
Member No.: 4,468



biggrin.gif thank you it is all working now. i did the command shell like what you said and now i can view my site and browse anything i store in there var/www/html. it seem all done with this.

i think iam going to install the proftpd server when i check the server status, it said not install yet. my server do support RPM script and i just found a scrip called proftpd-1.2.10.tar i dont know is this suitable to my server? if so would you help me what command line using to install this and where should i install it. ty
Go to the top of the page
 
+Quote Post
Jim
post Jan 15 2005, 03:21 PM
Post #10


Its GNU/Linuxhelp.net
*******

Group: Support Specialist
Posts: 1,280
Joined: 19-November 03
From: University of Minnesota- TC
Member No.: 1,828



A .tar contains teh source code for the server. What you need to do it untar the file with the command tar- xv proftpd-1.2.10.tar Then, cd into the new folder that will be created after you run that command, probably proftpd. Then run these three commands
./configure
make
make install


You will have to have root priviliage to run these three so su to root before you run them. After that, you should be able to set up the conf files /etc/proftpd and be on your way.


--------------------
--Jim Lester
jim@linuxhelp.net

Distro: Gentoo
System: AMD Athlon 3000+ XP 2.166 GHz
NVIDIA nForce2 IGP Chipset
1GB 333 MHz DDR SDRAM
NVIDIA nForce2 Dual Head 64 MB Graphics

Server Distro: CentOS
Go to the top of the page
 
+Quote Post
kicon
post Jan 16 2005, 03:05 PM
Post #11


Whats this Lie-nix Thing?
*

Group: Members
Posts: 16
Joined: 10-January 05
Member No.: 4,468



would you show me more specificly. i upload the file proftpd-1.2.10.tar.gz to /usr/local/proftpd then i run the command tar -zxvf /usr/local/proftpd/proftpd-1.2.10.tar.gz.there was a list of files after i untar it but i dont know where these files are stored. then i run the cd command like this cd /usr/local/proftpd nothing happen. then i run the command ./configure. it said like this > ./configure
sh: line 1: ./configure: No such file or directory


it seem like i was successed with the untar step but i dont know what going with others.
Go to the top of the page
 
+Quote Post
Jim
post Jan 16 2005, 05:44 PM
Post #12


Its GNU/Linuxhelp.net
*******

Group: Support Specialist
Posts: 1,280
Joined: 19-November 03
From: University of Minnesota- TC
Member No.: 1,828



For starters, you didn't need to copy it in /usr/local, but it also didn't hurt.

You need to go one more leve down. You unpacked the tar file in /usr/local/proftpd, but the tar file unpacks into another folder, you probably now have the files in /usr/local/proftpd/proftpd you can use the ls command to see whats in the folder. You should be able to see the configure file to run ./configure that should do it. You should be able to run the three commands to compile proftpd then you can set up the config file that start it with /etc/init.d/proftpd start


--------------------
--Jim Lester
jim@linuxhelp.net

Distro: Gentoo
System: AMD Athlon 3000+ XP 2.166 GHz
NVIDIA nForce2 IGP Chipset
1GB 333 MHz DDR SDRAM
NVIDIA nForce2 Dual Head 64 MB Graphics

Server Distro: CentOS
Go to the top of the page
 
+Quote Post
kicon
post Jan 16 2005, 06:24 PM
Post #13


Whats this Lie-nix Thing?
*

Group: Members
Posts: 16
Joined: 10-January 05
Member No.: 4,468



hm i got it. i can browse and see the files after untar. i can see the the file called configure and i called it by using this command /usr/local/proftpd-1.2.10/configure and i am done with this step. then i enter the command /usr/local/proftpd-1.2.10/make but it said there is no such file or directory and i browse the folder proftpd-1.2.10 again i only see two file with the name make.rules.in and other makefile.in. is there anything wrong with this?
Go to the top of the page
 
+Quote Post
Jim
post Jan 16 2005, 09:56 PM
Post #14


Its GNU/Linuxhelp.net
*******

Group: Support Specialist
Posts: 1,280
Joined: 19-November 03
From: University of Minnesota- TC
Member No.: 1,828



no you need to run ./configure from inside the folder, that will set up the make.ini file. Make sure you can see the configure file with an list command, then run ./configure then continue, it wil work.


--------------------
--Jim Lester
jim@linuxhelp.net

Distro: Gentoo
System: AMD Athlon 3000+ XP 2.166 GHz
NVIDIA nForce2 IGP Chipset
1GB 333 MHz DDR SDRAM
NVIDIA nForce2 Dual Head 64 MB Graphics

Server Distro: CentOS
Go to the top of the page
 
+Quote Post
kicon
post Jan 17 2005, 10:41 AM
Post #15


Whats this Lie-nix Thing?
*

Group: Members
Posts: 16
Joined: 10-January 05
Member No.: 4,468



i have no idea after i run the configure file i dont see the make file it is come up a list like below when i run the configure file

checking build system type... i686-pc-linux-gnu
checking host system type... i686-pc-linux-gnu
checking target system type... i686-pc-linux-gnu
checking for gcc... gcc
checking for C compiler default output... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables...
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ANSI C... none needed
checking whether make sets $(MAKE)... yes
checking for a BSD-compatible install... /usr/bin/install -c
checking for ranlib... ranlib
checking for special C compiler options needed for large files... no
checking for _FILE_OFFSET_BITS value needed for large files... 64
checking for _LARGE_FILES value needed for large files... no
checking whether the C compiler accepts -Wall... yes
checking for getopt... yes
checking how to run the C preprocessor... gcc -E
checking for egrep... grep -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking for standalone crypt... no
checking for crypt in -lcrypt... yes
checking for standalone gethostbyname... yes
checking for standalone inet_aton... yes
checking for standalone nsl functions... yes
checking for standalone socket functions... yes
checking for _pw_stayopen variable... no
checking krb.h usability... no
checking krb.h presence... no
checking for krb.h... no
checking prot.h usability... no
checking prot.h presence... no
checking for prot.h... no
checking hpsecurity.h usability... no
checking hpsecurity.h presence... no
checking for hpsecurity.h... no
checking for hpsecurity.h workaround... no
checking for dirent.h that defines DIR... yes
checking for library containing opendir... none required
checking for ANSI C header files... (cached) yes
checking for sys/wait.h that is POSIX.1 compatible... yes
checking fcntl.h usability... yes
checking fcntl.h presence... yes
checking for fcntl.h... yes
checking sys/ioctl.h usability... yes
checking sys/ioctl.h presence... yes
checking for sys/ioctl.h... yes
checking sys/time.h usability... yes
checking sys/time.h presence... yes
checking for sys/time.h... yes
checking junistd.h usability... no
checking junistd.h presence... no
checking for junistd.h... no
checking for memory.h... (cached) yes
checking shadow.h usability... yes
checking shadow.h presence... yes
checking for shadow.h... yes
checking for struct spwd.sp_warn... yes
checking for struct spwd.sp_inact... yes
checking for struct spwd.sp_expire... yes
checking security/pam_appl.h usability... yes
checking security/pam_appl.h presence... yes
checking for security/pam_appl.h... yes
checking pam/pam_appl.h usability... no
checking pam/pam_appl.h presence... no
checking for pam/pam_appl.h... no
checking for pam_start in -lpam... yes
checking linux/capability.h usability... yes
checking linux/capability.h presence... yes
checking for linux/capability.h... yes
checking whether to enable mod_cap... yes
checking ctype.h usability... yes
checking ctype.h presence... yes
checking for ctype.h... yes
checking getopt.h usability... yes
checking getopt.h presence... yes
checking for getopt.h... yes
checking crypt.h usability... yes
checking crypt.h presence... yes
checking for crypt.h... yes
checking bstring.h usability... no
checking bstring.h presence... no
checking for bstring.h... no
checking for inttypes.h... (cached) yes
checking limits.h usability... yes
checking limits.h presence... yes
checking for limits.h... yes
checking for strings.h... (cached) yes
checking stropts.h usability... yes
checking stropts.h presence... yes
checking for stropts.h... yes
checking sys/file.h usability... yes
checking sys/file.h presence... yes
checking for sys/file.h... yes
checking sys/mman.h usability... yes
checking sys/mman.h presence... yes
checking for sys/mman.h... yes
checking for sys/types.h... (cached) yes
checking sys/uio.h usability... yes
checking sys/uio.h presence... yes
checking for sys/uio.h... yes
checking for sys/param.h... yes
checking for sys/mount.h... yes
checking netdb.h usability... yes
checking netdb.h presence... yes
checking for netdb.h... yes
checking netinet/in.h usability... yes
checking netinet/in.h presence... yes
checking for netinet/in.h... yes
checking for netinet/in_systm.h... yes
checking for netinet/ip.h... yes
checking netinet/tcp.h usability... yes
checking netinet/tcp.h presence... yes
checking for netinet/tcp.h... yes
checking arpa/inet.h usability... yes
checking arpa/inet.h presence... yes
checking for arpa/inet.h... yes
checking for sys/stat.h... (cached) yes
checking errno.h usability... yes
checking errno.h presence... yes
checking for errno.h... yes
checking sys/socket.h usability... yes
checking sys/socket.h presence... yes
checking for sys/socket.h... yes
checking sys/termios.h usability... yes
checking sys/termios.h presence... yes
checking for sys/termios.h... yes
checking sys/termio.h usability... no
checking sys/termio.h presence... no
checking for sys/termio.h... no
checking sys/statvfs.h usability... yes
checking sys/statvfs.h presence... yes
checking for sys/statvfs.h... yes
checking sys/vfs.h usability... yes
checking sys/vfs.h presence... yes
checking for sys/vfs.h... yes
checking sys/select.h usability... yes
checking sys/select.h presence... yes
checking for sys/select.h... yes
checking dirent.h usability... yes
checking dirent.h presence... yes
checking for dirent.h... yes
checking ndir.h usability... no
checking ndir.h presence... no
checking for ndir.h... no
checking sys/ndir.h usability... no
checking sys/ndir.h presence... no
checking for sys/ndir.h... no
checking sys/dir.h usability... yes
checking sys/dir.h presence... yes
checking for sys/dir.h... yes
checking vmsdir.h usability... no
checking vmsdir.h presence... no
checking for vmsdir.h... no
checking utime.h usability... yes
checking utime.h presence... yes
checking for utime.h... yes
checking utmpx.h usability... yes
checking utmpx.h presence... yes
checking for utmpx.h... yes
checking regex.h usability... yes
checking regex.h presence... yes
checking for regex.h... yes
checking syslog.h usability... yes
checking syslog.h presence... yes
checking for syslog.h... yes
checking curses.h usability... yes
checking curses.h presence... yes
checking for curses.h... yes
checking ncurses.h usability... yes
checking ncurses.h presence... yes
checking for ncurses.h... yes
checking for an ANSI C-conforming const... yes
checking for inline... inline
checking for uid_t in sys/types.h... yes
checking for pid_t... yes
checking for size_t... yes
checking for mode_t... yes
checking for off_t... yes
checking type of array argument to getgroups... gid_t
checking for timer_t... yes
checking for short... yes
checking size of short... 2
checking for int... yes
checking size of int... 4
checking for long... yes
checking size of long... 4
checking for long long... yes
checking size of long long... 8
checking for off_t... (cached) yes
checking size of off_t... 8
checking whether time.h and sys/time.h may both be included... yes
checking whether struct tm is in sys/time.h or time.h... time.h
checking for umode_t... no
checking for ino_t... yes
checking for intptr_t... yes
checking for socklen_t... yes
checking utmp.h usability... yes
checking utmp.h presence... yes
checking for utmp.h... yes
checking whether your struct utmp has ut_user... yes
checking whether your struct utmp has ut_host... yes
checking whether your struct utmp has ut_exit... yes
checking whether your syslog.h defines LOG_CRON... yes
checking whether your syslog.h defines LOG_FTP... yes
checking for d_fd in DIR structure... no
checking for dd_fd in DIR structure... no
checking for __dd_fd in DIR structure... no
checking for working alloca.h... yes
checking for alloca... yes
checking for alloca in -lucb... no
checking whether gcc needs -traditional... no
checking whether setpgrp takes no argument... yes
checking return type of signal handlers... void
checking for vprintf... yes
checking for _doprnt... no
checking for bcopy... yes
checking for crypt... yes
checking for fgetgrent... yes
checking for fgetpwent... yes
checking for flock... yes
checking for freeaddrinfo... yes
checking for gai_strerror... yes
checking for getaddrinfo... yes
checking for getcwd... yes
checking for getenv... yes
checking for gethostbyname2... yes
checking for gethostname... yes
checking for getnameinfo... yes
checking for getopt_long... yes
checking for gettimeofday... yes
checking for hstrerror... yes
checking for inet_aton... yes
checking for inet_ntop... yes
checking for inet_pton... yes
checking for memcpy... yes
checking for mempcpy... yes
checking for mkdir... yes
checking for mkstemp... yes
checking for mlock... yes
checking for mlockall... yes
checking for munlock... yes
checking for munlockall... yes
checking for rmdir... yes
checking for select... yes
checking for setgroups... yes
checking for socket... yes
checking for statfs... yes
checking for strchr... yes
checking for strcoll... yes
checking for strerror... yes
checking for strsep... yes
checking for strtol... yes
checking for strtoull... yes
checking for setprotoent... yes
checking for endprotoent... yes
checking for vsnprintf... yes
checking for snprintf... yes
checking for setsid... yes
checking for setgroupent... no
checking for seteuid... yes
checking for setegid... yes
checking for setenv... yes
checking for siginterrupt... yes
checking for setpgid... yes
checking for regcomp... yes
checking for tzset... yes
checking for unsetenv... yes
checking for pathconf... yes
checking for fpathconf... yes
checking for fgetspent... yes
checking for setpassent... no
checking for struct sockaddr_in.sin_len... no
checking whether struct addrinfo is defined... yes
checking whether struct sockaddr_storage is defined... yes
checking whether ss_family is defined... yes
checking whether ss_len is defined... no
checking whether __ss_len is defined... no
checking whether setgrent returns void... yes
checking for initscr in -lcurses... yes
checking for initscr in -lncurses... yes
checking for setproctitle... no
checking libutil.h usability... no
checking libutil.h presence... no
checking for libutil.h... no
checking for setproctitle in -lutil... no
checking sys/pstat.h usability... no
checking sys/pstat.h presence... no
checking for sys/pstat.h... no
checking whether __progname and __progname_full are available... yes
checking which argv replacement method to use... writeable
checking whether printf supports %llu format... yes
checking whether gcc accepts -Wno-long-double... no
configure: creating ./config.status
config.status: creating lib/Makefile
config.status: creating modules/Makefile
config.status: creating src/Makefile
config.status: creating src/ftpdctl.8
config.status: creating src/proftpd.8
config.status: creating src/xferlog.5
config.status: creating utils/Makefile
config.status: creating utils/ftpcount.1
config.status: creating utils/ftpshut.8
config.status: creating utils/ftptop.1
config.status: creating utils/ftpwho.1
config.status: creating Makefile
config.status: creating Make.rules
config.status: creating config.h
config.status: executing default commands
Go to the top of the page
 
+Quote Post
kicon
post Jan 17 2005, 10:56 AM
Post #16


Whats this Lie-nix Thing?
*

Group: Members
Posts: 16
Joined: 10-January 05
Member No.: 4,468



also let check this out when i run the configure file in the directory the last section it come up with this:

# configure is writing to config.log, and then calls config.status.
# config.status does its own redirection, appending to config.log.
# Unfortunately, on DOS this fails, as config.log is still kept open
# by configure, so config.status won't be able to write to it; its
# output is simply discarded. So we exec the FD to /dev/null,
# effectively closing config.log, so it can be properly (re)opened and
# appended to by config.status. When coming back to configure, we
# need to make the FD available again.
if test "$no_create" != yes; then
ac_cs_success=:
ac_config_status_args=
test "$silent" = yes &&
ac_config_status_args="$ac_config_status_args --quiet"
exec 5>/dev/null
$SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
exec 5>>config.log
# Use ||, not &&, to avoid exiting from the if with $? = 1, which
# would make configure fail if this is the last instruction.
$ac_cs_success || { (exit 1); exit 1; }
fi
Go to the top of the page
 
+Quote Post

Reply to this topicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:

 



RSS Lo-Fi Version Time is now: 14th December 2017 - 02:03 PM