Apache webserver

Apache would not start

<VirtualHost *:80> DocumentRoot c:\www\webroot\ ServerName ghostintheshell.ca </VirtualHost> <VirtualHost *:80> DocumentRoot c:\www\webroot\Shane_Scodane\ ServerName davidwatson.no-ip.com </VirtualHost>
with out the end \ would start but still not going to folder Shane_Scodane

<VirtualHost *:80> DocumentRoot c:\www\webroot ServerName ghostintheshell.ca </VirtualHost> <VirtualHost *:80> DocumentRoot c:\www\webroot\Shane_Scodane ServerName davidwatson.no-ip.com </VirtualHost>

used the "

[code]NameVirtualHost 127.0.0.1

<VirtualHost 127.0.0.1>
DocumentRoot "C:\My Sites\Site1"
ServerName site1.local

<VirtualHost 127.0.0.1>
DocumentRoot "C:\My Sites\Site2"
ServerName site2.local
[/code]
but that didnt work…wierd not sure were this leaves me now ?
here is my etc file

[code]# Copyright © 1993-1999 Microsoft Corp.

This is a sample HOSTS file used by Microsoft TCP/IP for Windows.

This file contains the mappings of IP addresses to host names. Each

entry should be kept on an individual line. The IP address should

be placed in the first column followed by the corresponding host name.

The IP address and the host name should be separated by at least one

space.

Additionally, comments (such as these) may be inserted on individual

lines or following the machine name denoted by a ‘#’ symbol.

For example:

102.54.94.97 rhino.acme.com # source server

38.25.63.10 x.acme.com # x client host

127.0.0.1 localhost
127.0.0.1 ghostintheshell.ca
127.0.0.1 davidwatson.no-ip.com[/code]

here is my config

[code]###*********************************************************
###* DeveloperSide.NET *
###* http://www.devside.net *
###* admin@devside.net *
###* v1.14 *
###*********************************************************

Listen 80
ServerRoot "/www/Apache2"
DocumentRoot “/www/webroot”

ServerName localhost:80
ServerAdmin admin@localhost

ServerSignature On
ServerTokens Full

DefaultType text/plain
AddDefaultCharset ISO-8859-1

UseCanonicalName Off

HostnameLookups Off

ErrorLog logs/error.log
LogLevel warn

PidFile logs/httpd.pid

Timeout 300

KeepAlive On
MaxKeepAliveRequests 100
KeepAliveTimeout 15

ThreadsPerChild 250 MaxRequestsPerChild 0

LoadModule access_module modules/mod_access.so
#LoadModule actions_module modules/mod_actions.so
LoadModule alias_module modules/mod_alias.so
#LoadModule asis_module modules/mod_asis.so
LoadModule auth_module modules/mod_auth.so
#LoadModule auth_anon_module modules/mod_auth_anon.so
#LoadModule auth_dbm_module modules/mod_auth_dbm.so
#LoadModule auth_digest_module modules/mod_auth_digest.so
LoadModule autoindex_module modules/mod_autoindex.so
#LoadModule cern_meta_module modules/mod_cern_meta.so
LoadModule cgi_module modules/mod_cgi.so
#LoadModule dav_module modules/mod_dav.so
#LoadModule dav_fs_module modules/mod_dav_fs.so
LoadModule dir_module modules/mod_dir.so
#LoadModule env_module modules/mod_env.so
#LoadModule expires_module modules/mod_expires.so
#LoadModule file_cache_module modules/mod_file_cache.so
LoadModule headers_module modules/mod_headers.so
#LoadModule imap_module modules/mod_imap.so
#LoadModule include_module modules/mod_include.so
LoadModule info_module modules/mod_info.so
#LoadModule isapi_module modules/mod_isapi.so
LoadModule log_config_module modules/mod_log_config.so
LoadModule mime_module modules/mod_mime.so
#LoadModule mime_magic_module modules/mod_mime_magic.so
#LoadModule proxy_module modules/mod_proxy.so
#LoadModule proxy_connect_module modules/mod_proxy_connect.so
#LoadModule proxy_http_module modules/mod_proxy_http.so
#LoadModule proxy_ftp_module modules/mod_proxy_ftp.so
#LoadModule negotiation_module modules/mod_negotiation.so
#LoadModule rewrite_module modules/mod_rewrite.so
LoadModule setenvif_module modules/mod_setenvif.so
#LoadModule speling_module modules/mod_speling.so
LoadModule status_module modules/mod_status.so
#LoadModule unique_id_module modules/mod_unique_id.so
#LoadModule userdir_module modules/mod_userdir.so
#LoadModule usertrack_module modules/mod_usertrack.so
#LoadModule vhost_alias_module modules/mod_vhost_alias.so

LoadModule ssl_module modules/mod_ssl.so

LoadModule logio_module modules/mod_logio.so
LoadModule deflate_module modules/mod_deflate.so

LoadFile "/www/perl/bin/perl58.dll"
LoadModule perl_module modules/mod_perl.so
PerlRequire “/www/Apache2/conf/extra.pl”

LoadFile "/www/php/php4ts.dll"
LoadModule php4_module /www/php/php4apache2.dll

AddOutputFilterByType DEFLATE text/html text/plain text/css Header append Vary User-Agent Options None AllowOverride None Order allow,deny Deny from all

<Directory “/www/webroot”>
Order allow,deny
Allow from all

Order allow,deny Deny from all
Alias /private "/www/private"

<Directory "/www/private">
	<IfModule mod_autoindex.c>
		Options Indexes
	</IfModule>

	Order allow,deny
	Allow from all

	AuthType Basic
	AuthName "Private Access"
	AuthUserFile "/www/private/.htpasswd"
	require valid-user
</Directory>
ScriptAlias /cgi-bin/ "/www/cgi-bin/"
<Directory "/www/cgi-bin">
	Options None
	AllowOverride None
	Order allow,deny
	Allow from all
</Directory>

Alias /phpMyAdmin “/www/phpMyAdmin”

<Directory “/www/phpMyAdmin”>
Options None
AllowOverride None
Order deny,allow
Deny from all
Allow from 127.0.0.1

<Directory “/www/webroot/stats”>
Order deny,allow
Deny from all
Allow from 127.0.0.1

LogFormat "%h %l %u %t \"%r\" %>s %O \"%{Referer}i\" \"%{User-agent}i\"" combined CustomLog logs/access.log combined DeflateFilterNote Input instream DeflateFilterNote Output outstream DeflateFilterNote Ratio ratio LogFormat '"%r" %{outstream}n/%{instream}n (%{ratio}n%%)' deflate CustomLog logs/deflate.log deflate DirectoryIndex index.html index.php TypesConfig conf/mime.types AddType application/x-compress .Z AddType application/x-gzip .gz .tgz AddType application/x-rar-compressed .rar AddType application/x-httpd-php .php AddType application/x-httpd-php-source .phps BrowserMatch "Mozilla/2" nokeepalive BrowserMatch "MSIE 4\.0b2;" nokeepalive downgrade-1.0 force-response-1.0 BrowserMatch "RealPlayer 4\.0" force-response-1.0 BrowserMatch "Java/1\.0" force-response-1.0 BrowserMatch "JDK/1\.0" force-response-1.0 BrowserMatch "Microsoft Data Access Internet Publishing Provider" redirect-carefully BrowserMatch "^WebDrive" redirect-carefully BrowserMatch "^WebDAVFS/1.[012]" redirect-carefully BrowserMatch "^gnome-vfs" redirect-carefully BrowserMatch ^Mozilla/4 gzip-only-text/html BrowserMatch ^Mozilla/4\.0[678] no-gzip BrowserMatch \bMSIE !no-gzip !gzip-only-text/html ExtendedStatus On SetHandler server-status Order deny,allow Deny from all Allow from 127.0.0.1 SetHandler server-info Order deny,allow Deny from all Allow from 127.0.0.1 PerlModule Apache::Status SetHandler perl-script PerlResponseHandler Apache::Status Order deny,allow Deny from all Allow from 127.0.0.1 Include conf/ssl.conf
Start – mod_perl Hello example, \www\perl\site\lib\Apache\Hello.pm

PerlModule Apache::Hello SetHandler modperl PerlResponseHandler Apache::Hello Order deny,allow Deny from all Allow from 127.0.0.1 # ##### End -- mod_perl Hello example NameVirtualHost 127.0.0.1 DocumentRoot c:\www\webroot ServerName ghostintheshell.ca DocumentRoot c:\www\webroot\Shane_Scodane ServerName davidwatson.no-ip.com [/code]

Ok, well i know your problem now… in your config where it says namevirtualhost 127.0.0.1 change 127.0.0.1 to * and restart apache it should work for you.

thanks for helping me with this jesus

now im getting this when going to davidwatson.no-ip.com

[code]Forbidden
You don’t have permission to access / on this server.


Apache/2.0.52 (Win32) PHP/4.3.10 mod_perl/1.99_18 Perl/v5.8.6 Server at davidwatson.no-ip.com Port 80[/code]
I also get an error pop up message from Apache… well we getting some were now…lol

this too didnt work

[quote]NameVirtualHost *:80

<VirtualHost *:80>
ServerName www.ghostintheshell.ca
ServerAlias ghostintheshell.ca *. ghostintheshell.ca
DocumentRoot \www\webroot\

<VirtualHost *:80>
ServerName davidwatson.no-ip.com
DocumentRoot \www\webroot\Shane_Scodane\
[/quote]

this too didnt work

[quote]NameVirtualHost *:80

man Im running out of idea’s[/quote]

[quote=“Astrothug”]thanks for helping me with this jesus

now im getting this when going to davidwatson.no-ip.com

[code]Forbidden
You don’t have permission to access / on this server.


Apache/2.0.52 (Win32) PHP/4.3.10 mod_perl/1.99_18 Perl/v5.8.6 Server at davidwatson.no-ip.com Port 80[/code]
I also get an error pop up message from Apache… well we getting some were now…lol[/quote]

Add permission for anonymous to access the folder and files… make sure to check off inherit permissions or whatever the hell it says… hopefully that will fix this issue… other than that virtual hosts should be working… I cant help much more because to be honest I used a windows webserver for about a week during school… If you have an extra 486 or better I can set a linux server up for ya :wink:

off inherit permissions were the hell is that ?
not this line is it

[quote=“Astrothug”]off inherit permissions were the hell is that ?
not this line is it

[/quote]

its a checkbox in one of the windows file permission dialog boxes… I dont have access to a windows machine or i could tell you exactly anyways if you find it chekc it off it changes the permissions of all subfolders.

As for the hostnamelookups directive thats if you want the server to do a dns lookup on each ip that requests a page.

they never make it easy do they… man i would go with linux for serving my page but would i have to install all my mysql data bases…like coppermine and bb2php. stuff like that ?

Well, yes… if your site is Database driven you will need to install the Mysql server and copy your databases over. Unless of course you have an extra machine then you can just tell your php applications to use the remote database server and set the proper grant permissions on the DB server.

Easiest way though is to do an sql dump of your databases it will give you a text file that you can use to repopulate the new database server.

I have nothing to do tonight so if you need some help just get the linux box online and I can help :wink: Oh i recommend debian… you may feel out of place at first but debian is by far the easiest distribution to get used to. to install apache and mysql you would simply type “apt-get install mysql-server mysql-client apache”

and it will do everything for you.

ya i have a few computers laying around ? but i have some server software that only run on a windows base machine…erg what a fricken dilema i have now…erg…were can i download the software from ? will start there.
thanks jesus

you can download fedora and point and click a server with mySQL and most other stuff in less time than it takes to download the iso’s.
what do you have that won’t run on linux? there’s probably and equivalent.
coppermine and phpBB were a snap to setup…

Sam2 for my online radio and webcamxp
those two i need.

i just want it to work with my set up… frick… damn… i dont want to learn a new operating system…fricken shit…no swearing at u guys at myself… waaa waaaa u been great i cant find the permissions in xp… i need help ol lord give me streagth in my hour of need…lol…frick that never helped. lol…

you can get debian here

Simply download burn it to a cd dont do the advanced install… click next and yea follow the prompts and once its online i can help you/do it for you from there.

i feel dumd but its working guys…lol… I forgot to name a index.html …lol…so its working just fine…
thanks again…

don’t feel dumb. I spent ten hours on Squirrelmail trying to fix something and was ripping my hair out. My friend BRock walked in, glanced and said ‘you forgot to restart it to read the changes’…
http://www.maxit.net/junk/doh.jpg

Thanks again guys.
davidwatson.no-ip.com is up and running now, its a photo blog… Its run by pixualpost…
Mig can you add it to links. thanks that would be cool.
my other site is done too www.ghostintheshell.ca took me awhile to get it to work ok.

also might host other peoples pages for them too. drop me aline if interested.

Hi david,

If it’s ok with you, I’ll put it “in rotation” over there where menino.com and screenlooking.com is right now. There will be a thumbnail that shows up.

I’m going to make it choose between menino.com/screenlooking/and yours at random and show the latest thumbnail. I’ll also put a text link as well.

Want it on the rupertpics.com site as well?

yes thanks MiG …that would be nice… I hope you were not scarred this afternoon when we ran into you down town…Jen is a good dog, your dog is very well trained… My boy loves taking Jen for walks but she can over power him at times. she’s an american amstaf, very gental…Thanks again MiG