Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
installing/configuring all things LAMP???
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
bradharmon
n00b
n00b


Joined: 14 Sep 2004
Posts: 15

PostPosted: Sun Oct 10, 2004 11:31 pm    Post subject: installing/configuring all things LAMP??? Reply with quote

Im not sure if I have just been looking in the wrong places, but I cannot find much info on how to setup Apache/MySQL/PHP... So far I have emerged apache, mysql, and mod_php, but I really don't know what to do from here. Can someone help or post a link please. My aim is to be able to host a website that uses php and mysql. Any suggestions would be GREAT!

[edit]Also, Im not sure if I was supposed to install in any order, or if i need to do anything specific other than emerge those seperatley...
Back to top
View user's profile Send private message
giblet
n00b
n00b


Joined: 28 Jan 2004
Posts: 38

PostPosted: Mon Oct 11, 2004 5:34 am    Post subject: Reply with quote

well, now you just need to configure apache, just read the documentation, and start making php scripts. php's official website is an excellent resource for it, and its actually really easy...you can read there on how to interact with mysql if you so choose/need
Back to top
View user's profile Send private message
bradharmon
n00b
n00b


Joined: 14 Sep 2004
Posts: 15

PostPosted: Mon Oct 11, 2004 8:16 pm    Post subject: Reply with quote

alright...I have everything installed (hopefully correctly) but when I set up a test page and then try to access it by:
Code:

http://localhost/
or
http://localhost/index.php

the apache server gives: "You don't have permission to access / on this server." The error is 403 Forbidden...any ideas about this? sorry for the "easy" questions, but im really new to this and am trying to get up to speed.
Back to top
View user's profile Send private message
bradharmon
n00b
n00b


Joined: 14 Sep 2004
Posts: 15

PostPosted: Mon Oct 11, 2004 9:26 pm    Post subject: Reply with quote

bump
Back to top
View user's profile Send private message
giblet
n00b
n00b


Joined: 28 Jan 2004
Posts: 38

PostPosted: Tue Oct 12, 2004 12:38 am    Post subject: Reply with quote

check your apache error log (/var/log/apache2/error_log), could be one of two things:
1. index.php is not readable by apache (just chmod it something like 0644)
or
2. your apache conf is too restrictive, open /etc/apache/conf/commonapache2.conf and search for "<Directory />", something like this should work ok:
Code:
###
### This should be changed to whatever you set DocumentRoot to.
###
<Directory /usr/www>
Options Indexes FollowSymLinks
AllowOverride Options
    <IfModule mod_access.c>
      Order allow,deny
      Allow from all
    </IfModule>
</Directory>

you should check out the apache docs to see what all options mean, and tune them to your specific needs though


EDIT: don't forget to restart apache when you change any of the apache conf files :)
Back to top
View user's profile Send private message
bradharmon
n00b
n00b


Joined: 14 Sep 2004
Posts: 15

PostPosted: Tue Oct 12, 2004 1:23 am    Post subject: Reply with quote

Thank you very much... It works now... Im sure that Ill have more questions though. :lol:
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum