Debian Server

Check that your debian box does not have a firewall configured and that apache is configured to allow external IP addresses.
 
Hello, are you sure it's /etc/apache2/apache2.conf ive check through it all and cant see that option.

I also purposely put a random thing after 192.168.2.2/fdh and got this if its any help?

Apache/2.2.9 (Debian) PHP/5.2.6-1+lenny3 with Suhosin-Patch mod_python/3.3.1 Python/2.5.2 mod_perl/2.0.4 Perl/v5.10.0 Server at 192.168.2.2 Port 80

above is from working ubuntu laptop.

thanks.

[It also works on XP, wired and wireless]
 
Hmm lol check in the /etc/apache2/ folder and see if there is a conf.d folder.

and look in the configs in there if there are any?

Also.

That message you got seems to verify your server is bound correctly to your external IP address.

create an index.php in your htdocs folder and put

PHP:
<?php phpinfo() ?>

In the file, save it and try and access the server again @ http://192.168.2.2/index.php

:)
 
Can I just ask one question? How accustomed to Linux are you?

OK Here we go:

1.

Code:
cd /

ls

cd /etc/apache2/

ls

You should get this:

Code:
starpost:/etc/apache2# ls

apache2.conf  envvars     mods-available  ports.conf       sites-enabled

conf.d        httpd.conf  mods-enabled    sites-available

The config files are apache2.conf and httpd.conf you may have either or both.

Search those files for DocumentRoot and see what the path is like this:
Code:
DocumentRoot /www

Yours should be /var/www by default under debian.

Do this:
Code:
 cd /

cd /var/www/

ls

Should have something like this:
Code:
starpost:/var/www# ls

analog  apache2-default

if you don't have an apache2-default folder you should have an index.html

if not cd into apache2-default and you should have one in there.

And there is your DocumentRoot :)
 
I get the same as you;

Code:
starpost:/etc/apache2# ls

apache2.conf  envvars     mods-available  ports.conf       sites-enabled

conf.d        httpd.conf  mods-enabled    sites-available

but on this bit i get;

Code:
starpost:/var/www# ls

index.html
 
Well it seems that your DocumentRoot is /var/www :)

Now you can place any files you want accessible on your web server in there.

To verify this is your DocumentRoot do this:
Code:
starpost:/var/www# rm index.html

starpost:/var/www# nano index.php

Then type: <?php phpinfo() ?>

Press Ctrl-O

Press Enter

You should see: [ Wrote 1 line ]

Press Ctrl-X

Now do ls and you should see something like this:
Code:
starpost:/var/www# ls

analog  apache2-default  index.php

go to http://192.168.2.2/index.php and you should see the nice PHP info screen. :D
 
Sorry for double post, Off to sleep now work at 6am.

I'll try and help you throughout tommorow if you need more help :)

Somebody else maybe able to taken over through my absence.

Have fun with Linux :D
 
Thanks for the reply :D

when i go to;

cd /

ls

cd /var/www

ls

i get;

index.php nothing else.

But, i've got 192.168.2.2 working on windows 7 now :)

Picture of nice screen;

mki4ps.png
 
:D Welcome back,

So now i have the main page set up; next i was thinking of uploading files on there and passwording the page so only i can get on. Any ideas?
 
Back
Top