Apache problem/question

Apache problem/question

am 12.07.2005 18:00:13 von siten

Hello guys i have a question about apache... i have installed Apache
2.0.54 PHP 5 MySQL 4.01 and i was wondering if i could use a name to
access my apache server -> not to use http://localhost but to use
example1.com? i have tried to adjust the vhost section acording to the
guide in the apache web page, but when i try i get error 404. also
when i try http://localhost i also get 404. i've attached my .conf
file.
i want to access my server not only from my local network but from
elsewhere as well.
i have one more small problem... when i installed and loaded some
moduls for PHP /i have loaded 5 modules/ 2 of the moduls doesnt seem
to work ->php_mcrypt.dll, php_pdf.dll. The first one is in the
directory for /php/ext/ for shure, but the otherone is not on my
comp... i was wondering if one is missing, ok, but the other i there
and i get "PHP Startup: Unable to load dynamic library
"f:\apache\php\ext\php_mcrypt.dll" - The specified modul could not be
found." - this is for the both modules...
should i install Apache 1.3.x?
any suggestions to a newb
thx in advance
ps. i've read some of the topics but i couldent find a solution ...

and here are my comp conf:
WindowsXP Pro SP2, CPU 400MHz
Internet over LAN, using PPPoE connection
2 comps in local network
one more thing i've changed my ip for the vhost to 212.116.140.79, and
now whe i type that ip it shows me something like windows explorer...

i see the test page from the other computers on the net, when i type
212.116.140.79 /my PPPoE ip/ i get :
[URL=http://img336.imageshack.us/my.php?image=primer9gi.jpg] [IMG]http://img336.imageshack.us/img336/9170/primer9gi.th.jp g[/IMG][/URL]
this is when i created a folder for amidamaro.com,
no i didnt purchased the domain

my question is : i have an apache server, i want to assign a name
adress to it /for examp amidamaro.com/, other users, not only user
from my local net to be able to access it. is there some guide how to
do that?

now i've set up the server to ip http://212.116.140.79 u should be
able to see it. there r some pics

Re: Apache problem/question

am 12.07.2005 18:58:25 von gordonb.3oxm7

>Hello guys i have a question about apache... i have installed Apache
>2.0.54 PHP 5 MySQL 4.01 and i was wondering if i could use a name to
>access my apache server -> not to use http://localhost but to use
>example1.com? i have tried to adjust the vhost section acording to the
>guide in the apache web page, but when i try i get error 404. also
>when i try http://localhost i also get 404. i've attached my .conf
>file.

>i want to access my server not only from my local network but from
>elsewhere as well.

For that you need a real domain name with real DNS hosting, unless
you're content to use an IP address. You also need a real public
IP, which you don't have if you're behind a NAT gateway.

Entries in the hosts file on your computer take effect only for
your computer. You could, for example, add an entry for www.microsoft.com
that points to your computer. That means you won't be able to reach
the real www.microsoft.com, though.

>i have one more small problem... when i installed and loaded some
>moduls for PHP /i have loaded 5 modules/ 2 of the moduls doesnt seem
>to work ->php_mcrypt.dll, php_pdf.dll. The first one is in the
>directory for /php/ext/ for shure, but the otherone is not on my
>comp...

You installed it but it's not on your computer? Where did you
install it?

>i was wondering if one is missing, ok, but the other i there
>and i get "PHP Startup: Unable to load dynamic library
>"f:\apache\php\ext\php_mcrypt.dll" - The specified modul could not be
>found." - this is for the both modules...
>should i install Apache 1.3.x?
>any suggestions to a newb
>thx in advance
>ps. i've read some of the topics but i couldent find a solution ...
>
>and here are my comp conf:
>WindowsXP Pro SP2, CPU 400MHz
>Internet over LAN, using PPPoE connection
>2 comps in local network
>one more thing i've changed my ip for the vhost to 212.116.140.79, and
>now whe i type that ip it shows me something like windows explorer...
>
>i see the test page from the other computers on the net, when i type
>212.116.140.79 /my PPPoE ip/ i get :
>[URL=http://img336.imageshack.us/my.php?image=primer9gi.jpg ][IMG]http://img336.imageshack.us/img336/9170/primer9gi.th.j pg[/IMG][/URL]
>this is when i created a folder for amidamaro.com,
>no i didnt purchased the domain
>
>my question is : i have an apache server, i want to assign a name
>adress to it /for examp amidamaro.com/, other users, not only user
>from my local net to be able to access it. is there some guide how to
>do that?

It's called purchasing a domain, and setting up DNS hosting.
Most companies where you can purchase a domain will also do DNS
hosting if you want them to. You do have to tell them the IP
address which the name will point at.

You also need to properly set up the vhost on Apache.

>now i've set up the server to ip http://212.116.140.79 u should be
>able to see it. there r some pics

If you want a prettier front page, rather than an index of files,
create a page index.html (or, if you've got Apache set up right,
index.php) which will appear instead of the file index page. You
then need to have links on that page to the other content on
your site.

Gordon L. Burditt

Re: Apache problem/question

am 12.07.2005 19:00:45 von Tim Van Wassenhove

On 2005-07-12, TrashOverride wrote:
> Hello guys i have a question about apache... i have installed Apache
> 2.0.54 PHP 5 MySQL 4.01 and i was wondering if i could use a name to
> access my apache server -> not to use http://localhost but to use
> example1.com? i have tried to adjust the vhost section acording to the
> guide in the apache web page, but when i try i get error 404. also
> when i try http://localhost i also get 404. i've attached my .conf
> file.

First you need to make sure example.com resolves to your host.

C:\WINDOWS\system32\drivers\etc\hosts

127.0.0.1 localhost example.com

Offcourse, you need to edit your DNS server configuration if you
want other people to use it too...

Next you need to edit your httpd.conf

NameVirtualhost *:80


ServerName localhost
DocumentRoot "F:/websites/localhost"

AllowOverride All
Options All




ServerName example.com
DocumentRoot "F:/websites/example.com"

AllowOverride All
Options All



--
Met vriendelijke groeten,
Tim Van Wassenhove