HOW TO START NOIP AND APACHE ON FEDORA 7
START NOIP
Check your local ip address.
Open terminal mode [root@localhost myname]# ifconfig
Check your router in your browser
http://192.168.1.1 (for Linksys WRT54G)
enter password (yyyy) (select applications and gaming)
application (apache) start(80) to (80) protocol (TCP) ip address 192.168.1 (xxx)
the local ip address xxx found with ifconfig
add further ports mysql (3306). ftp (21). email (25).
make sure the enable [is ticked]
( SAVE SETTINGS)
Open a terminal window in linux
[myname@localhost ~]$
# su (login to root super user).
Password: yyyyyy
[root@localhost myname]# /usr/local/bin/noip2 (starts the no-ip.com duc client)
[root@localhost myname]# /usr/local/bin/noip2 -S (shows the status of noip)
1 noip2 process active.
Process 6273, started as noip2, (version 2.1.9)
Using configuration from /usr/local/etc/no-ip2.conf
Last IP Address set 52.200.11.107
Account your-email@.co.uk
configured for:
host one.myftp.org
host two.myftp.org
Updating every 30 minutes via /dev/eth0 with NAT enabled.
START APACHE ON FEDORA LINUX.
[root@localhost myname]$ su (login as root super user)
[root@localhost myname]# /sbin/service httpd start (-S checks file. or help)
[root@localhost myname]# /sbin/service httpd start ( starts apache)
Starting httpd: [ OK ]
[
[root@localhost myname]# /sbin/service httpd ? (displays options (help) for full list)
Usage: httpd {start|stop|restart|condrestart|reload|status|fullstatus|graceful|help|configtest}
Usage: /usr/sbin/httpd [-D name] [-d directory] [-f file]
#logout
# exit or ctrl d
Copy your web site to /var/www/html
Superuser for konqueror
Open a terminal window $su (enter password:))
# kdesu konqueror
This will open konqueror as normal but will have root privileges.
Assign a domain name for apache
while konqueror is still in root privileges
edit /etc/httpd/conf
modify httpd.conf
The commands without the # require entering add any extra domain names
# Please see the documentation at
# <URL:http://httpd.apache.org/docs/2.2/vhosts/>
# for further details before you try to setup virtual hosts.
#
# You may use the command line option '-S' to verify your virtual host
# configuration.
#
# Use name-based virtual hosting.
#
NameVirtualHost *:80
#
# NOTE: NameVirtualHost cannot be used without a port specifier
# (e.g. :80) if mod_ssl is being used, due to the nature of the
# SSL protocol.
#
#
# VirtualHost example:
# Almost any Apache directive may go into a VirtualHost container.
# The first VirtualHost section is used for requests without a known
# server name.
#
<VirtualHost *:80>
ServerAdmin your-email@.co.uk
DocumentRoot /var/www/html
ServerName one.myftp.org
ErrorLog /var/log/httpd/ one.myftp.org.com-error_log
CustomLog /var/log/httpd/ one.myftp.org-access_log common
</VirtualHost>
#
<VirtualHost *:80>
ServerAdmin your-email@.co.uk
DocumentRoot /var/www/html/two
ServerName two.myftp.org
ErrorLog /var/log/httpd/ two.myftp.org.com-error_log
CustomLog /var/log/httpd/ two.myftp.org-access_log common
</VirtualHost>
Create the folders for your add on domain names
/var/www/html/two
Subsititue one & two with your own domain names and folders.
Open your internet browser htttp://localhost
try opening your url in the browser
for a server status report edit the httpd.conf to configure apache mod_status
Open your httpd.conf file:
# vi httpd.conf
Append / modify (or uncomment) directives as follows:
<Location /server-status>
SetHandler server-status
Order Deny,Allow
Deny from all
Allow from 127.0.0.1
</Location>
To view status report type
http://localhost/server-status.
or
http://l127.0.0.1/server-statusbest of luck
tony
happy computing