Page 1 of 1

Installing a webServer

Posted: Fri Sep 22, 2006 2:50 pm
by mitxel
Hi, somebody knows where are a tutorial or a manual to install a web server(apache+mysql) since the begining?
That I am trying to say is if somebody knows a document whit all the steps for install this.
Thanks.

Posted: Fri Sep 22, 2006 4:26 pm
by clpalmer
Again, a simple click of the search button at the top would help you out =)

viewtopic.php?t=1423

Posted: Sat Sep 23, 2006 9:46 am
by mitxel
sorry. Thanks XD

Posted: Sun Sep 24, 2006 11:34 am
by mitxel
Hi , i have mysql, samba and apache instaled on the xbox, but now i?m trying to acces to apache since my pc by http://xbox_adress and there is the error 404 not found.
When i started the apache

Code: Select all

Pro ssl # /etc/init.d/apache2 start
 * Starting apache2 ...
[Sun Sep 24 11:28:41 2006] [warn] NameVirtualHost *:80 has no VirtualHos  [ ok ]
I don?t know if i have a problem with the virutal host.
HELP!!
thanks.

Posted: Sun Sep 24, 2006 8:20 pm
by dopey
404 just means that the file requested doesn't exist. In your case it's the default web page. First be sure to do an etc-update and restart apache. Then check /var/www/localhost/htdocs/ for your page. If you don't have and index.html file in there or have autoindex turned on for / then the server will have nothing to display and give you a 404 error.

Posted: Mon Sep 25, 2006 8:25 pm
by mitxel
Hi, i find a problem, apache searchs the pages in /usr/htdocs
How can I change the directory?
Im looking for it in the file httpd.conf but i dont find it.
thanks XD

Posted: Tue Sep 26, 2006 12:31 am
by dopey
Edit the file /etc/apache2/httpd.conf and add the the following line

Code: Select all

DocumentRoot "YourDirectoryHere"
Also make sure the directory has appropriate permissions, then restart apache.

Posted: Tue Sep 26, 2006 11:18 am
by mitxel
thanks, its ok XD!!!!!

Posted: Tue Sep 26, 2006 11:27 am
by mitxel
Now im trying to install phpBB2 and gives my an error
Warning: mysql_error(): supplied argument is not a valid MySQL-Link resource in /var/www/localhost/htdocs/phpBB2/db/mysql4.php on line 330

Warning: mysql_errno(): supplied argument is not a valid MySQL-Link resource in /var/www/localhost/htdocs/phpBB2/db/mysql4.php on line 331
phpBB : Critical Error

Could not connect to the database
I think that apache dont know where are mysql, and mysql is installed but i dont know.