View previous topic :: View next topic |
Author |
Message |
bradharmon n00b
Joined: 14 Sep 2004 Posts: 15
|
Posted: Sun Oct 10, 2004 11:31 pm Post subject: installing/configuring all things LAMP??? |
|
|
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 |
|
|
giblet n00b
Joined: 28 Jan 2004 Posts: 38
|
Posted: Mon Oct 11, 2004 5:34 am Post subject: |
|
|
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 |
|
|
bradharmon n00b
Joined: 14 Sep 2004 Posts: 15
|
Posted: Mon Oct 11, 2004 8:16 pm Post subject: |
|
|
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 |
|
|
bradharmon n00b
Joined: 14 Sep 2004 Posts: 15
|
Posted: Mon Oct 11, 2004 9:26 pm Post subject: |
|
|
bump |
|
Back to top |
|
|
giblet n00b
Joined: 28 Jan 2004 Posts: 38
|
Posted: Tue Oct 12, 2004 12:38 am Post subject: |
|
|
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 |
|
|
bradharmon n00b
Joined: 14 Sep 2004 Posts: 15
|
Posted: Tue Oct 12, 2004 1:23 am Post subject: |
|
|
Thank you very much... It works now... Im sure that Ill have more questions though. |
|
Back to top |
|
|
|