Installing a webServer

Ask questions regarding Gentoox, Gentoo and Linux in general in these forums and we'll do our best to help you!
Post Reply
mitxel
Linux User
Posts: 15
Joined: Sat Aug 12, 2006 12:26 pm

Installing a webServer

Post 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.
clpalmer
Power user
Posts: 288
Joined: Sat Jan 29, 2005 6:38 pm

Post by clpalmer »

Again, a simple click of the search button at the top would help you out =)

viewtopic.php?t=1423
mitxel
Linux User
Posts: 15
Joined: Sat Aug 12, 2006 12:26 pm

Post by mitxel »

sorry. Thanks XD
mitxel
Linux User
Posts: 15
Joined: Sat Aug 12, 2006 12:26 pm

Post 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.
dopey
Novice
Posts: 47
Joined: Tue Apr 18, 2006 11:24 pm

Post 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.
mitxel
Linux User
Posts: 15
Joined: Sat Aug 12, 2006 12:26 pm

Post 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
dopey
Novice
Posts: 47
Joined: Tue Apr 18, 2006 11:24 pm

Post 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.
mitxel
Linux User
Posts: 15
Joined: Sat Aug 12, 2006 12:26 pm

Post by mitxel »

thanks, its ok XD!!!!!
mitxel
Linux User
Posts: 15
Joined: Sat Aug 12, 2006 12:26 pm

Post 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.
Post Reply