Author |
|
dclarke
Joined: 09 Feb 2016 Posts: 12
|
Posted: Tue 09 Feb '16 22:17 Post subject: Apache Configuration Issues |
|
|
Hey,
So here is my problem. I am currently trying to install and configure LAMPP on Ubuntu Server 14.04 LTS for the purpose of installing Joomla using this tutorial:
https://docs.joomla.org/Configuring_a_LAMPP_server_for_PHP_development/Linux_desktop
I am able to successfully get to "Creating the New Site" section, specifically where is wants to test the new site by placing a today.php script in the folder then test it by using the web browser. When I try going to localhost/today.php I get the following error:
Forbidden
You don't have permission to access /today.php on this server.
Apache/2.4.7 (Ubuntu) Server at 192.168.200.17 Port 80
I went ahead and followed the rest of the tutorial and thought I would troubleshoot after I was done, so here I am. Can someone help with this issue?
I am also planning on hosting multiple sites/domains from this one Virtual Server so any help on that would be appreciated as well.
Thanks in advance. |
|
Back to top |
|
glsmith Moderator
Joined: 16 Oct 2007 Posts: 2268 Location: Sun Diego, USA
|
Posted: Wed 10 Feb '16 19:56 Post subject: |
|
|
try
instead of Code: | Order allow,deny
allow from all | use Code: | Require all granted |
instead of Code: | Order deny,allow
Deny from all
Allow from 127.0.0.0/255.0.0.0 ::1/128 | use
Order, allow, deny & satisfy were used by Apache prior to 2.4. There is a module (mod_auth_compat) to allow the use of these but in my experience it can have problems if mixed with Apache's new "Require *" only type access control.
see: http://httpd.apache.org/docs/2.4/howto/access.html |
|
Back to top |
|
dclarke
Joined: 09 Feb 2016 Posts: 12
|
Posted: Thu 11 Feb '16 16:27 Post subject: |
|
|
Hey,
Ok when I do this I can get this to work but only locally. How can we make this work so it can be accessed from anywhere like a real website?
Thanks |
|
Back to top |
|
glsmith Moderator
Joined: 16 Oct 2007 Posts: 2268 Location: Sun Diego, USA
|
|
Back to top |
|
dclarke
Joined: 09 Feb 2016 Posts: 12
|
Posted: Thu 11 Feb '16 21:27 Post subject: |
|
|
Hey, thanks for the reply. I got it working by adding port 80 to the firewall. Thanks for the help on that issue.
Now can we talk about how I can set this machine up for multiple domains on a single IP?
Can someone provide me some details and documentation on how I can complete this. Or even a config I could modify and use on my system?
Thanks |
|
Back to top |
|
dclarke
Joined: 09 Feb 2016 Posts: 12
|
Posted: Fri 12 Feb '16 16:43 Post subject: |
|
|
BUMP
Can someone please provide details on what file I need to configure to allow multiple domains on a single IP, have seen this documentation:
http://httpd.apache.org/docs/2.4/vhosts/name-based.html
I am just not sure what directory/file I need to change.
Thanks in advance. |
|
Back to top |
|
DnvrSysEngr
Joined: 15 Apr 2012 Posts: 226 Location: Denver, CO USA
|
|
Back to top |
|
dclarke
Joined: 09 Feb 2016 Posts: 12
|
Posted: Fri 12 Feb '16 18:43 Post subject: |
|
|
Hey thanks for the link but that hasn't seemed to help me. I am new to Linux and Apache so this has been a confusing project to say the least. Please bare with me.
Here is how Apache is currently setup on my machine (folder structure wise)
/etc/apache2/ (inside this folder are all the folders listed below plus these files: apache2.conf, envars, magic, ports.conf)
/etc/apache2/conf-available
/etc/apache2/conf-enabled
/etc/apache2/mods-available
/etc/apache2/mods-enabled
/etc/apache2/sites-available
/etc/apache2/sites-enabled
I have created the 3 sites that I would like to host, I have also enabled them in Apache. So where do I create or configure the file for the multiple host? Am I suppose to have a vhost.conf file somewhere? Do I need to enable a mod for Apache that I missed?
Thanks in advance
-daniel |
|
Back to top |
|
DnvrSysEngr
Joined: 15 Apr 2012 Posts: 226 Location: Denver, CO USA
|
Posted: Fri 12 Feb '16 18:58 Post subject: |
|
|
That is an excellent question. I am way more familiar with Apache in the Windows world than I am in the Linux world.
I bet Gregg or James knows the answer to your question; where the vhost conf file is located at in Apache in the Linux environment.
In the meantime, might this help?
sudo nano /etc/httpd/conf/httpd.conf
Make sure that this line is uncommented (it is located at the very end of the file):
# Virtual hosts
Include conf/extra/httpd-vhosts.conf
You can access your virtual host file within the apache folder:
sudo nano /etc/httpd/conf/extra/httpd-vhosts.conf
-Scott |
|
Back to top |
|
dclarke
Joined: 09 Feb 2016 Posts: 12
|
Posted: Fri 12 Feb '16 19:50 Post subject: |
|
|
Scott, again thanks for trying to assist me. when I try to run:
sudo nano /etc/httpd/conf/httpd.conf
It prompts me for my password, after I submit my password it opens up a screen shown below:
http://imgur.com/tkoOm4C
Nothing else is in there to uncomment ect...
I feel like I am missing something here...
Thanks
-Daniel |
|
Back to top |
|
DnvrSysEngr
Joined: 15 Apr 2012 Posts: 226 Location: Denver, CO USA
|
Posted: Sat 13 Feb '16 0:16 Post subject: |
|
|
I am going to venture to guess that your httpd.conf file is not in that location.
need to figure out where it is at. |
|
Back to top |
|
DnvrSysEngr
Joined: 15 Apr 2012 Posts: 226 Location: Denver, CO USA
|
|
Back to top |
|