LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 10-24-2016, 12:58 PM   #16
TBotNik
Member
 
Registered: May 2016
Location: Greenville, TX
Distribution: Kubuntu 18.04
Posts: 796

Original Poster
Rep: Reputation: Disabled

c0wb0y,

at: http://127.0.0.1 I get the "Apache2 Ubuntu Default Page" now! So Port 80 is working, but nothing else!

Cheers
 
Old 10-24-2016, 01:04 PM   #17
TBotNik
Member
 
Registered: May 2016
Location: Greenville, TX
Distribution: Kubuntu 18.04
Posts: 796

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by Habitual View Post
terminal>
Code:
sudo apache2ctl -S
In that output there should be a .conf listed.
Use "grep DirectoryIndex" on it.
DirectoryIndex controls "home*" and "index*" pages.

Does it exist?
Habitual,

apache2ctl -S results are:
****************************************************
VirtualHost configuration:
*:80 is a NameVirtualHost
default server <servername> (/etc/apache2/sites-enabled/000-default.conf:1)
port 80 namevhost <servername> (/etc/apache2/sites-enabled/000-default.conf:1)
port 80 namevhost <servername> (/etc/apache2/aliases.conf:1)
ServerRoot: "/etc/apache2"
Main DocumentRoot: "/var/www"
Main ErrorLog: "/var/log/apache2/error.log"
Mutex default: dir="/var/lock/apache2" mechanism=fcntl
Mutex mpm-accept: using_defaults
Mutex watchdog-callback: using_defaults
Mutex rewrite-map: using_defaults
PidFile: "/var/run/apache2/apache2.pid"
Define: DUMP_VHOSTS
Define: DUMP_RUN_CFG
Define: ENABLE_USR_LIB_CGI_BIN
User: name="www-data" id=33
Group: name="www-data" id=33
*********************************************************

so no do not see DirectoryIndex in this dump.

What next?

TBNK
 
Old 10-24-2016, 01:28 PM   #18
TBotNik
Member
 
Registered: May 2016
Location: Greenville, TX
Distribution: Kubuntu 18.04
Posts: 796

Original Poster
Rep: Reputation: Disabled
Habitual,

OK found my apache2 DirectoryIndex in file:

/etc/apache2/mods-enabled/dir.conf

<IfModule mod_dir.c>
DirectoryIndex index.html index.cgi index.pl index.php index.xhtml index.htm
</IfModule>

Not sure what the IfModule thing does with this, which might be the issue. This file is the same on all my machines, so do not see why the laptop is acting different, unless "mod_dir.c" is having a problem.

Cheers!

TBNK

PS
Searching all my machines, none have mod_dir.c

TBNK

Last edited by TBotNik; 10-24-2016 at 01:32 PM.
 
Old 10-24-2016, 02:12 PM   #19
Habitual
LQ Veteran
 
Registered: Jan 2011
Location: Abingdon, VA
Distribution: Catalina
Posts: 9,374
Blog Entries: 37

Rep: Reputation: Disabled
Quote:
Originally Posted by TBotNik View Post
Habitual,

OK found my apache2 DirectoryIndex in file:
Incorrect. Leave that alone.
Code:
grep -i directoryindex /etc/apache2/sites-enabled/000-default.conf
 
Old 10-24-2016, 03:12 PM   #20
TBotNik
Member
 
Registered: May 2016
Location: Greenville, TX
Distribution: Kubuntu 18.04
Posts: 796

Original Poster
Rep: Reputation: Disabled
Habitual,

None of my machines have DirectoryIndex in the 000-default.conf file, but only the laptop does not work.

I was looking this up though but have not seen the correct syntax/config, to declare this in that default.conf file.

Please share what you know on this!

Cheers!

TBNK

Last edited by TBotNik; 10-24-2016 at 03:14 PM.
 
Old 10-26-2016, 12:28 PM   #21
TBotNik
Member
 
Registered: May 2016
Location: Greenville, TX
Distribution: Kubuntu 18.04
Posts: 796

Original Poster
Rep: Reputation: Disabled
Didn't work

All,

OK I added the line:
DirectoryIndex index.cgi index.do index.htm index.html index.html5 index.php index.php5 index.pl index.xhtml home.cgi home.do home.htm home.html home.html5 home.php home.php5 home.pl home.xhtml
to the /etc/apache2/sites-enabled/000-default.conf file and restarted apache2.

Nothing changed, still cannot see the localhost or sites via browser.

Cheers!

TBNK

Last edited by TBotNik; 10-26-2016 at 12:45 PM.
 
Old 10-26-2016, 03:59 PM   #22
TBotNik
Member
 
Registered: May 2016
Location: Greenville, TX
Distribution: Kubuntu 18.04
Posts: 796

Original Poster
Rep: Reputation: Disabled
All,

Hey had a thought so purged firefox, then re-installed, now everything but the aliases are working.

Thinking the re-install is not configured to read the aliases.conf file.

Will check that and let you know!

Cheers!

TBNK
 
Old 10-27-2016, 02:10 PM   #23
TBotNik
Member
 
Registered: May 2016
Location: Greenville, TX
Distribution: Kubuntu 18.04
Posts: 796

Original Poster
Rep: Reputation: Disabled
All,

More progress! All the alias directories not showing are now giving a 403 permissions error, so running:
chown -R $user:users /homedirectory && chmod -R 775 /homedirectory
Will check again when that finishes!

Cheers

TBNK
 
Old 11-02-2016, 05:43 PM   #24
TBotNik
Member
 
Registered: May 2016
Location: Greenville, TX
Distribution: Kubuntu 18.04
Posts: 796

Original Poster
Rep: Reputation: Disabled
All,

Did not fix it, but looking into why not!

Cheers!

TBNK
 
Old 11-25-2016, 09:46 AM   #25
TBotNik
Member
 
Registered: May 2016
Location: Greenville, TX
Distribution: Kubuntu 18.04
Posts: 796

Original Poster
Rep: Reputation: Disabled
All,

The include statement for the alias file does not appear to be working. Checking on that now!

Cheers!

TBNK
 
Old 11-25-2016, 01:48 PM   #26
TBotNik
Member
 
Registered: May 2016
Location: Greenville, TX
Distribution: Kubuntu 18.04
Posts: 796

Original Poster
Rep: Reputation: Disabled
All,

Still getting the 403 permissions errors. Checked logs and the:

Include aliases.conf

line is working with no errors, but appears the apache2 user & user group is where the permissions errors are coming from.

Not good at that so help please!

Cheers!

TBNK
 
Old 11-30-2016, 11:25 AM   #27
TBotNik
Member
 
Registered: May 2016
Location: Greenville, TX
Distribution: Kubuntu 18.04
Posts: 796

Original Poster
Rep: Reputation: Disabled
Closed

All,

Since I'm down to just "apache user permissions", closing this and will re-opne new thread on just that issue.

Cheers!

TBNK
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Issue with Apache? your_shadow03 Linux - Newbie 2 04-23-2009 10:38 PM
Apache issue plk Linux - Server 2 04-14-2008 09:30 AM
apache issue kidswipe Linux - Server 8 07-09-2007 08:16 AM
Is this an apache issue? opsraja Linux - Networking 1 03-02-2005 11:03 PM
apache issue... Robin01 Linux - Newbie 3 09-21-2003 06:12 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 02:06 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration