Click to See Complete Forum and Search --> : Apache stuff...


animex2
09-02-2003, 09:20 PM
hey all! i wanna get my apache server working, i had one running on windows... If i rmemeber corectly on windows there was a folder i put index.html in and thats what the apache server loaded if it wen to... Im wondering if anyone can point me to the folder? Currently im guessing my index.html is stuff that says this -

Welcome to 192.168.1.101
This site is powered by: Apache-AdvancedExtranetServer/2.0.44 (Mandrake Linux/11mdk) mod_perl/1.99_08 Perl/v5.8.0 mod_ssl/2.0.44 OpenSSL/0.9.7a PHP/4.3.1!
Note: If you are seeing this instead of the webpage you expected, it's most likely because the server is not yet fully configured, or is under an upgrade. Come again tomorrow and your usual content should be back.
Congratulations! The Web Server software on this system is operational. If you're the webmaster of 192.168.1.101, you may now add content to this directory and replace this page.
Please note that you can choose between Apache 1.3 and 2.0, and that you can install them in parallel. If you have both versions installed, 2.0 will start by default. To switch from one to the other, run the following commands: "/usr/sbin/advxrun1.3" or "/usr/sbin/advxrun2.0".

The Apache documentation packages (if installed) are available here: [2.0] [1.3], as well as the Documentation for some standard modules [2.0] [1.3]. Also, if you're accessing this page as http://localhost, you can read the documentation for some ADVX specific addon modules.

+ more!

it was very simmilar for windows.... So im guessing im correct in saying there is a folder i put all my files in...

do_guh_new
09-02-2003, 09:37 PM
I believe it depends on which distro you're using but looking in /var/www/ you should find what you're looking for.

animex2
09-02-2003, 09:51 PM
alright, tyvm! that was it!!!

now i am behind a linksys router, i belive i have to do port forwarding for people to see this... What ports need to be forwarded?

ph34r
09-02-2003, 10:08 PM
80. Unless your ISP is nice enough to block that for you...

animex2
09-02-2003, 10:22 PM
http://testx2.no-ip.com/

it used to work... but my isp has been GHEY lately... lemme make shure i got the right port forwared...

http://roxx0rz.netfirms.com/linksys.png

thats what my linksys router looks like... Anything im doing wrong or is it my ISP's fault...

::EDIT::

also, if i go to it i see it fine, same if i go to localhost or 192.168.1.101

i think the other comps in my house can see it too...

animex2
09-02-2003, 10:50 PM
OH, and the 5555-5558 is for giFT about 80-80...

animex2
09-03-2003, 03:52 PM
just thought of something... Could it be that i configured it wrong?

:: EDIT::

ya... ive been searching... I looked for a httpd.conf and i couldnt find one on my PC... I installed apache like it said in the directions, when i go to run -

[root@localhost apache2]# /usr/local/apache2/bin/apachectl start

i got-

httpd: Could not determine the server's fully qualified domain name, using 127.0.0.1 for ServerName
[root@localhost apache2]#

so i gotta edit a file that tells it to go to 192.168.1.101 instead of 127.0.0.1

animex2
09-03-2003, 05:48 PM
more news...

[root@localhost phear]# /usr/local/apache2/bin/apachectl start
httpd: Could not determine the server's fully qualified domain name, using 127.0.0.1 for ServerName
(99)Cannot assign requested address: make_sock: could not bind to address 24.51.86.99:80
no listening sockets available, shutting down
Unable to open logs

i cant find anywhere in httpd.conf where it says anything about 127.0.0.1 though still... so im guessing thats something default... These are my settings on top httpd.conf (http://roxx0rz.netfirms.com/httpd.conf)

sploo22
09-03-2003, 05:59 PM
See the line:
#ServerName 24.51.86.99:80
in httpd.conf? Change that to
ServerName testx2.no-ip.com

But it shouldn't really affect much.

BTW, what's that "Listen 24.51.86.99:80" line doing there? It should be your IP address on your internal network.

animex2
09-03-2003, 06:07 PM
[root@localhost phear]# /usr/local/apache2/bin/apachectl start
(99)Cannot assign requested address: make_sock: could not bind to address 192.168.1.101:80
no listening sockets available, shutting down
Unable to open logs

::EDIT::

also i updated httpd.conf

http://roxx0rz.netfirms.com/httpd.conf

sploo22
09-03-2003, 06:23 PM
Try just
Listen 80
and see if that helps. :)

animex2
09-03-2003, 06:38 PM
ty =D

but now i think im back to router trouble or something, if i go to localhost or 192.168.1.102, i get what i should, but if i go to my ip or testx2.no-ip.com i get this -

what page looks like (http://roxx0rz.netfirms.com/page.png)

animex2
09-03-2003, 07:14 PM
conclusion... My isp is teh ghey people... They blocked my port 80... Is there any port i can run apache on besides 80 and still have people connect to it through web browser? (im almost positive its possible to conect to one, not shure u can make apache do it)

animex2
09-03-2003, 07:53 PM
got it working, ty for help...

http://phear.cjb.net

The Whizzard
09-03-2003, 07:55 PM
I use port 8080.
You'll need to use http://testx2.no-ip.com:8080 to get to your site. It's possible no-ip has a domain forwarding feature which can have http://testx2.no-ip.com point to http://testx2.no-ip.com:8080. If this is not the case, you can get a free account at www.zoneedit.com which will do this.

Never mind, it looks like you found an alternitave solution.

BTW, that phear.jpg is huge. Use gimp to converty it to PNG.
And yes, windows can view PNG files.

animex2
09-03-2003, 08:01 PM
can windows view .png files?

do_guh_new
09-03-2003, 10:19 PM
yes