PDA

View Full Version : Apache 2 - how to configure "localhost"



gonzalezmfrank
06-01-2005, 05:30 PM
I installed Knoppix 3.8.1,and i just install Apache2, but at startup the next mesagge appears (or somethnig like)

Could not determine the server fully qualifiqued name, assumes 127.0.0.1

The effect is....

I cant connect to localhost using for example

http://localhost/my-host-Directory/index

It didnt works..... how y configure the localhost correctly.....

Ohhh.... i forgot that the file extention for index is php, and i installed the php4 for knoppix

the other problem is when i try to connect to a MySql Database... the error that show is

Call to undefined function : mysql_connect() in....aut_verifica.inc.php

How i correct this

I know that there are a lot of topics here but i appreciate a lot your help

Frank

UnderScore
06-01-2005, 06:16 PM
You probably need to configure the apache2 server first before trying to run it. Things like the server name, how to server up files & directories, loadable modules are all set in the config files. Look for a httpd.conf in /etc/httpd/ or /etc/apache. Use google or visit the apache site for the documentation.

I hope this helps.
James

gonzalezmfrank
06-04-2005, 01:22 AM
I resolved the first problem un-installing and re-installing apache2 and phpmyadmin..... at least it works and the message still appears

the second problem "mysql_connect()" is still make a headache to me

if someone have any solution i aprecciate a lot

thanks.

Frank

pureone
06-05-2005, 10:00 PM
chances are you mysql serevr is not running. or you have no configured username and password for it.