LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 01-16-2021, 08:53 AM   #46
computersavvy
Senior Member
 
Registered: Aug 2016
Posts: 3,345

Rep: Reputation: 1484Reputation: 1484Reputation: 1484Reputation: 1484Reputation: 1484Reputation: 1484Reputation: 1484Reputation: 1484Reputation: 1484Reputation: 1484

There are a lot of recommendations for learning the linux command line at https://www.linuxquestions.org/quest...41#post6208241
 
Old 01-16-2021, 10:14 AM   #47
TBotNik
Member
 
Registered: May 2016
Location: Greenville, TX
Distribution: Kubuntu 18.04
Posts: 796

Original Poster
Rep: Reputation: Disabled
computersavvy,

Another Q: For the aliases for each virtual-host do I need it to be <domain.com.aliases.conf??

Asking that as always had aliases.conf in either /etc/apache2/conf-available or /etc/apache2/conf-enabled and never considered where the alias file needs to be for each virtual-host.

Cheers!

TBNK
 
Old 01-16-2021, 10:28 AM   #48
TBotNik
Member
 
Registered: May 2016
Location: Greenville, TX
Distribution: Kubuntu 18.04
Posts: 796

Original Poster
Rep: Reputation: Disabled
computersavvy,

Wow CPU locked up, so rebooted and now both virtual-hosts are seeing their correct index.html files! Yeah!!

Somehow restarting Apache did not load some of the config files, but the reboot did.

Now really only dealing with the phpmyAdmin and aliases issues.

Step by step progress is frustrating, but al least it's progress!

Cheers!

TBNK
 
Old 01-16-2021, 07:01 PM   #49
TBotNik
Member
 
Registered: May 2016
Location: Greenville, TX
Distribution: Kubuntu 18.04
Posts: 796

Original Poster
Rep: Reputation: Disabled
All,

When I enter http://localhost/phpmyadmin in the browser, I'm getting this message:

Code:
Forbidden.
I think, my .conf file has properly declared the permissions, but just in case, here is my /etc/apache2/phpmyadmin/apache.conf

Code:
# phpMyAdmin default Apache configuration

Alias /phpmyadmin /usr/share/phpmyadmin

<Directory /usr/share/phpmyadmin>
    Options SymLinksIfOwnerMatch
    DirectoryIndex index.php

    <IfModule mod_php5.c>
        <IfModule mod_mime.c>
            AddType application/x-httpd-php .php
        </IfModule>
        <FilesMatch ".+\.php$">
            SetHandler application/x-httpd-php
        </FilesMatch>

        php_value include_path .
        php_admin_value upload_tmp_dir /var/lib/phpmyadmin/tmp
        php_admin_value open_basedir /usr/share/phpmyadmin/:/etc/phpmyadmin/:/var/lib/phpmyadmin/:/usr/share/php/php-gettext/:/usr/share/php/php-php-gettext/:/usr/share/javascript/:/usr/share/php/tcpdf/:/usr/share/doc/phpmyadmin/:/usr/share/php/phpseclib/
        php_admin_value mbstring.func_overload 0
    </IfModule>
    <IfModule mod_php.c>
        <IfModule mod_mime.c>
            AddType application/x-httpd-php .php
        </IfModule>
        <FilesMatch ".+\.php$">
            SetHandler application/x-httpd-php
        </FilesMatch>

        php_value include_path .
        php_admin_value upload_tmp_dir /var/lib/phpmyadmin/tmp
        php_admin_value open_basedir /usr/share/phpmyadmin/:/etc/phpmyadmin/:/var/lib/phpmyadmin/:/usr/share/php/php-gettext/:/usr/share/php/php-php-gettext/:/usr/share/javascript/:/usr/share/php/tcpdf/:/usr/share/doc/phpmyadmin/:/usr/share/php/phpseclib/
        php_admin_value mbstring.func_overload 0
    </IfModule>

</Directory>

# Authorize for setup
<Directory /usr/share/phpmyadmin/setup>
    <IfModule mod_authz_core.c>
        <IfModule mod_authn_file.c>
            AuthType Basic
            AuthName "phpMyAdmin Setup"
            AuthUserFile /etc/phpmyadmin/htpasswd.setup
        </IfModule>
        Require valid-user
    </IfModule>
</Directory>

# Disallow web access to directories that don't need it
<Directory /usr/share/phpmyadmin/templates>
    Require all denied
</Directory>
<Directory /usr/share/phpmyadmin/libraries>
    Require all denied
</Directory>
<Directory /usr/share/phpmyadmin/setup/lib>
    Require all denied
</Directory>
And my /etc/apache2/conf-available/phpmyadmin.conf is:

Code:
# phpMyAdmin default Apache configuration

Alias /phpmyadmin /usr/share/phpmyadmin

<Directory /usr/share/phpmyadmin>
    Options SymLinksIfOwnerMatch
    DirectoryIndex index.php

    <IfModule mod_php5.c>
        <IfModule mod_mime.c>
            AddType application/x-httpd-php .php
        </IfModule>
        <FilesMatch ".+\.php$">
            SetHandler application/x-httpd-php
        </FilesMatch>

        php_value include_path .
        php_admin_value upload_tmp_dir /var/lib/phpmyadmin/tmp
        php_admin_value open_basedir /usr/share/phpmyadmin/:/etc/phpmyadmin/:/var/lib/phpmyadmin/:/usr/share/php/php-gettext/:/usr/share/php/php-php-gettext/:/usr/share/javascript/:/usr/share/php/tcpdf/:/usr/share/doc/phpmyadmin/:/usr/share/php/phpseclib/
        php_admin_value mbstring.func_overload 0
    </IfModule>
    <IfModule mod_php.c>
        <IfModule mod_mime.c>
            AddType application/x-httpd-php .php
        </IfModule>
        <FilesMatch ".+\.php$">
            SetHandler application/x-httpd-php
        </FilesMatch>

        php_value include_path .
        php_admin_value upload_tmp_dir /var/lib/phpmyadmin/tmp
        php_admin_value open_basedir /usr/share/phpmyadmin/:/etc/phpmyadmin/:/var/lib/phpmyadmin/:/usr/share/php/php-gettext/:/usr/share/php/php-php-gettext/:/usr/share/javascript/:/usr/share/php/tcpdf/:/usr/share/doc/phpmyadmin/:/usr/share/php/phpseclib/
        php_admin_value mbstring.func_overload 0
    </IfModule>

</Directory>

# Authorize for setup
<Directory /usr/share/phpmyadmin/setup>
    <IfModule mod_authz_core.c>
        <IfModule mod_authn_file.c>
            AuthType Basic
            AuthName "phpMyAdmin Setup"
            AuthUserFile /etc/phpmyadmin/htpasswd.setup
        </IfModule>
        Require valid-user
    </IfModule>
</Directory>

# Disallow web access to directories that don't need it
<Directory /usr/share/phpmyadmin/templates>
    Require all denied
</Directory>
<Directory /usr/share/phpmyadmin/libraries>
    Require all denied
</Directory>
<Directory /usr/share/phpmyadmin/setup/lib>
    Require all denied
</Directory>
Let me know if you see problems!

Cheers!

TBNK

PS

I think these are dups of each other and wonder if that is the problem and which I should keep vs delete!

Last edited by TBotNik; 01-16-2021 at 07:02 PM.
 
Old 01-17-2021, 10:26 AM   #50
computersavvy
Senior Member
 
Registered: Aug 2016
Posts: 3,345

Rep: Reputation: 1484Reputation: 1484Reputation: 1484Reputation: 1484Reputation: 1484Reputation: 1484Reputation: 1484Reputation: 1484Reputation: 1484Reputation: 1484
Sorry, I have no experience with PHPmyAdmin.
Possibly start a new thread with this problem in the title.
 
Old 01-17-2021, 06:18 PM   #51
scasey
LQ Veteran
 
Registered: Feb 2013
Location: Tucson, AZ, USA
Distribution: CentOS 7.9.2009
Posts: 5,748

Rep: Reputation: 2222Reputation: 2222Reputation: 2222Reputation: 2222Reputation: 2222Reputation: 2222Reputation: 2222Reputation: 2222Reputation: 2222Reputation: 2222Reputation: 2222
Just “Forbidden”? No code...I’d expect a 5XX code.
What’s in the httpd error log when this happens? When a website doesn’t work as expected, the access and error logs are the first place to go.
I’ll go check what I have at half-time. My PHPMyAdmin installation works a treat.
 
Old 01-19-2021, 10:30 AM   #52
TBotNik
Member
 
Registered: May 2016
Location: Greenville, TX
Distribution: Kubuntu 18.04
Posts: 796

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by scasey View Post
Just “Forbidden”? No code...I’d expect a 5XX code.
What’s in the httpd error log when this happens? When a website doesn’t work as expected, the access and error logs are the first place to go.
I’ll go check what I have at half-time. My PHPMyAdmin installation works a treat.
scasey,

Error log:
Code:
[Tue Jan 19 00:05:22.116192 2021] [mpm_prefork:notice] [pid 25665] AH00163: Apache/2.4.29 (Ubuntu) configured -- resuming normal operations
[Tue Jan 19 00:05:22.116256 2021] [core:notice] [pid 25665] AH00094: Command line: '/usr/sbin/apache2'
[Tue Jan 19 10:10:14.272188 2021] [mpm_prefork:notice] [pid 1029] AH00163: Apache/2.4.29 (Ubuntu) configured -- resuming normal operations
[Tue Jan 19 10:10:14.312924 2021] [core:notice] [pid 1029] AH00094: Command line: '/usr/sbin/apache2'
[Tue Jan 19 10:21:19.669093 2021] [access_compat:error] [pid 1056] [client 127.0.0.1:57880] AH01797: client denied by server configuration: /var/www/favicon.ico, referer: http://localhost/
[Tue Jan 19 10:27:18.978479 2021] [access_compat:error] [pid 1052] [client 127.0.0.1:57912] AH01797: client denied by server configuration: /var/www/favicon.ico, referer: http://localhost/phpmyadmin
[Tue Jan 19 10:27:23.525588 2021] [access_compat:error] [pid 1052] [client 127.0.0.1:57912] AH01797: client denied by server configuration: /usr/share/phpmyadmin
[Tue Jan 19 10:27:23.690134 2021] [access_compat:error] [pid 1052] [client 127.0.0.1:57912] AH01797: client denied by server configuration: /var/www/favicon.ico, referer: http://localhost/phpmyadmin
According to the log I have a config issue, but back to my question of which of the 2 config files I posted? and do I need to delete one?

Cheers!

TBNK

Last edited by TBotNik; 01-23-2021 at 05:03 PM.
 
Old 01-27-2021, 01:59 PM   #53
TBotNik
Member
 
Registered: May 2016
Location: Greenville, TX
Distribution: Kubuntu 18.04
Posts: 796

Original Poster
Rep: Reputation: Disabled
Scasey,

Was talking to support at SEO-Panel, so checked in /var/www/html and the directory for seopanel is there, but phpmyadmin is not. Searching to see where /phpmyadmin got installed.

Only find it at: /etc/phpmyadmin/ and no place else. Am I supposed to have the directory:

"/var/www/html/phpmyadmin"

Or is this declared through an alias definition. That is what I remember it being. I do have:

"/etc/apache2/conf-available/phpmyadmin.conf"

but guessing that is not working right.

Cheers!

TBNK

Last edited by TBotNik; 01-27-2021 at 02:01 PM.
 
Old 02-01-2021, 12:44 AM   #54
TBotNik
Member
 
Registered: May 2016
Location: Greenville, TX
Distribution: Kubuntu 18.04
Posts: 796

Original Poster
Rep: Reputation: Disabled
All,

Quick update:

All 3 index.html files are displaying in the browser but still have this issues:
1.) PHP works at command line, but not in the browser,
2.) PHPmyAdmin giving "Forbidden" message in the browser,
3.) SEOPanel giving "Forbidden" message in the browser,
Open to suggestions on these issues!

TBNK
 
Old 02-11-2021, 11:57 AM   #55
TBotNik
Member
 
Registered: May 2016
Location: Greenville, TX
Distribution: Kubuntu 18.04
Posts: 796

Original Poster
Rep: Reputation: Disabled
All,

Wow! Have been out on other projects for about 3 weeks, have not updated, upgraded, nor rebooted and now PHP on the CMD line is not working. Checked the error logs and no errors. I'm doing a re-install to see if it clears then.

I have so many other issues with Kubuntu/Ubuntu 18.04, I'm totally thinking the OS is total crap!

Am I right?

TBNK
 
Old 02-11-2021, 07:57 PM   #56
computersavvy
Senior Member
 
Registered: Aug 2016
Posts: 3,345

Rep: Reputation: 1484Reputation: 1484Reputation: 1484Reputation: 1484Reputation: 1484Reputation: 1484Reputation: 1484Reputation: 1484Reputation: 1484Reputation: 1484
Quote:
Originally Posted by TBotNik View Post
All,

Wow! Have been out on other projects for about 3 weeks, have not updated, upgraded, nor rebooted and now PHP on the CMD line is not working. Checked the error logs and no errors. I'm doing a re-install to see if it clears then.

I have so many other issues with Kubuntu/Ubuntu 18.04, I'm totally thinking the OS is total crap!

Am I right?

TBNK
Reinstall of the entire thing will erase all your hard work in configuring things. Maybe just reinstall php and associates instead.

Actually, if you always make certain to keep a copy of the original config files before you make changes it is easy to restore them and start over. That avoids reinstalling software which often does not replace the mucked up config files anyway.

Once you have something working properly a backup copy of the working config file is often a lifesaver as well.

Last edited by computersavvy; 02-11-2021 at 07:58 PM.
 
1 members found this post helpful.
Old 05-03-2021, 11:48 AM   #57
TBotNik
Member
 
Registered: May 2016
Location: Greenville, TX
Distribution: Kubuntu 18.04
Posts: 796

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by computersavvy View Post
Reinstall of the entire thing will erase all your hard work in configuring things. Maybe just reinstall php and associates instead.

Actually, if you always make certain to keep a copy of the original config files before you make changes it is easy to restore them and start over. That avoids reinstalling software which often does not replace the mucked up config files anyway.

Once you have something working properly a backup copy of the working config file is often a lifesaver as well.
computersavvy,

Ok! I posted the issue on the "Apache Lounge" forum at:

https://www.apachelounge.com/viewtopic.php?t=8666

and the answer, by James Blond, was that whenever any vhost is added, Apacge no longer recognizes nor loads "localhost" He gave me the link:

https://httpd.apache.org/docs/2.4/vh...s.html#default

but as usual these "non gurus" violated the 2nd of the 2 cardinal rules of all data processing:

1.) Never never never never never never never never be ambiguous,
2.) Never never never never never never never never assume anything.

So, assuming you already know, left out the filename of where to make these changes, but I'm guessing it is the "/etc/apache2/sites-available/000-default.config" file, but it might be in the "/etc/apache2/conf-available/" directory instead.

See what is not explained is the the following files are all needed to properly define/config Apache:
  1. /etc/hosts
  2. /etc/apache2/apache.conf
  3. /etc/apache2/sites-available/000-default.conf
  4. /etc/apache2/sites-available/vhost1.conf
  5. /etc/apache2/sites-available/vhost2.conf
  6. ....

Now this is true for all Debian/Kubuntu/Ubuntu flavors, but different for other Unix/Linux flavors, so not listing these and where/which files need modification, does not directly answer the config problems at hand leaving the end user to actually assume certain things and instead of directly effecting a fix, must then assume and experiment, until he/she, through experimentation, finds the answer, since it "was not answered" by this HOWTO writeup!

So I'm now experimenting, as that is the only way to effect a fix!

Cheers!

TBNK

Last edited by TBotNik; 05-03-2021 at 11:51 AM.
 
Old 05-06-2021, 10:57 AM   #58
TBotNik
Member
 
Registered: May 2016
Location: Greenville, TX
Distribution: Kubuntu 18.04
Posts: 796

Original Poster
Rep: Reputation: Disabled
Experimenting

All,

OK! Experimenting with the following code in /etc/apache2/sites-available/000-default.conf

Code:
Listen 80

<VirtualHost *:80>
    ServerAdmin webmaster@localhost
    DocumentRoot /var/www/
    <Directory /var/www/>
        Options Indexes FollowSymLinks MultiViews
        AllowOverride All
        Order deny,allow
        allow from all
    </Directory>
    ScriptAlias /cgi-bin/ /usr/lib/cgi-bin/
    <Directory "/usr/lib/cgi-bin">
        AllowOverride None
        Options +ExecCGI -MultiViews +SymLinksIfOwnerMatch
        Order allow,deny
        Allow from all
    </Directory>
    # Possible values include: debug, info, notice, warn, error, crit,
    # alert, emerg.
    LogLevel warn
    ErrorLog ${APACHE_LOG_DIR}/error.log
    CustomLog ${APACHE_LOG_DIR}/access.log combined
    Alias /doc/ "/usr/share/doc/"
    <Directory "/usr/share/doc/">
        Options Indexes MultiViews FollowSymLinks
        AllowOverride None
        Order deny,allow
        Deny from all
        Allow from 127.0.0.0/255.0.0.0 ::1/128
    </Directory>
    <Location />
        Deny from all
        Options None
        ErrorDocument 403 Forbidden.
    </Location>
</VirtualHost>

<VirtualHost localhost>
    ServerAdmin webmaster@localhost
    DocumentRoot /var/www/
    <Directory /var/www/>
    ServerName localhost
    ServerAlias localhost
</VirtualHost>

<VirtualHost TBotNik,com:80>
    ServerAdmin webmaster@TBotNik,com
    DocumentRoot /3T/Syncs/TBotNik/
    <Directory /3T/Syncs/TBotNik/>
    ServerName www.TBotNik,com
    ServerAlias TBotNik,com
</VirtualHost>

<VirtualHost 'Webs-R-Us.com':80>
    ServerAdmin 'webmaster@Webs-R-Us.com'
    DocumentRoot '/3T/Syncs/Webs-R-Us/'
    <Directory '/3T/Syncs/Webs-R-Us/'>
    ServerName 'www.Webs-R-Us.com'
    ServerAlias 'Webs-R-Us.com'
</VirtualHost>

<VirtualHost TBNK_SVR.com:80>
    ServerAdmin webmaster@TBNK_SVR.com
    DocumentRoot /3T/Syncs/
    <Directory /3T/Syncs/>
    ServerName www.TBNK_SVR.com
    ServerAlias TBNK_SVR.com
</VirtualHost>
I restart apache and get these errors from:
Code:
Job for apache2.service failed because the control process exited with error code.
See "systemctl status apache2.service" and "journalctl -xe" for details.
Where "systemctl status apache2.service" shows:
Code:
● apache2.service - The Apache HTTP Server
   Loaded: loaded (/lib/systemd/system/apache2.service; enabled; vendor preset: enabled)
  Drop-In: /lib/systemd/system/apache2.service.d
           └─apache2-systemd.conf
   Active: failed (Result: exit-code) since Thu 2021-05-06 00:29:58 CDT; 12s ago
  Process: 12197 ExecStop=/usr/sbin/apachectl stop (code=exited, status=1/FAILURE)
  Process: 27762 ExecReload=/usr/sbin/apachectl graceful (code=exited, status=0/SUCCESS)
  Process: 12653 ExecStart=/usr/sbin/apachectl start (code=exited, status=1/FAILURE)
 Main PID: 6384 (code=exited, status=0/SUCCESS)

May 06 00:29:58 TBNK-SVR systemd[1]: Starting The Apache HTTP Server...
May 06 00:29:58 TBNK-SVR systemd[1]: apache2.service: Control process exited, code=exited status=1
May 06 00:29:58 TBNK-SVR systemd[1]: apache2.service: Failed with result 'exit-code'.
May 06 00:29:58 TBNK-SVR systemd[1]: Failed to start The Apache HTTP Server.
May 06 00:29:58 TBNK-SVR apachectl[12653]: apache2: Syntax error on line 61 of /etc/apache2/apache2.conf: Synta
May 06 00:29:58 TBNK-SVR apachectl[12653]: Action 'start' failed.
May 06 00:29:58 TBNK-SVR apachectl[12653]: The Apache error log may have more information.
and "journalctl -xe" shows:
Code:
-- Subject: Unit apache2.service has failed
-- Defined-By: systemd
-- Support: http://www.ubuntu.com/support
-- 
-- Unit apache2.service has failed.
-- 
-- The result is RESULT.
May 06 00:14:24 TBNK-SVR apachectl[12492]: apache2: Syntax error on line 61 of /etc/apache2/apache2.conf: Synt
May 06 00:14:24 TBNK-SVR apachectl[12492]: Action 'start' failed.
May 06 00:14:24 TBNK-SVR apachectl[12492]: The Apache error log may have more information.
May 06 00:17:01 TBNK-SVR CRON[12522]: pam_unix(cron:session): session opened for user root by (uid=0)
May 06 00:17:01 TBNK-SVR CRON[12523]: (root) CMD (   cd / && run-parts --report /etc/cron.hourly)
May 06 00:17:01 TBNK-SVR CRON[12522]: pam_unix(cron:session): session closed for user root
May 06 00:18:44 TBNK-SVR systemd[1]: Starting The Apache HTTP Server...
-- Subject: Unit apache2.service has begun start-up
-- Defined-By: systemd
-- Support: http://www.ubuntu.com/support
-- 
-- Unit apache2.service has begun starting up.
May 06 00:18:44 TBNK-SVR apachectl[12542]: apache2: Syntax error on line 61 of /etc/apache2/apache2.conf: Synt
May 06 00:18:44 TBNK-SVR apachectl[12542]: Action 'start' failed.
May 06 00:18:44 TBNK-SVR apachectl[12542]: The Apache error log may have more information.
May 06 00:18:44 TBNK-SVR systemd[1]: apache2.service: Control process exited, code=exited status=1
May 06 00:18:44 TBNK-SVR systemd[1]: apache2.service: Failed with result 'exit-code'.
May 06 00:18:44 TBNK-SVR systemd[1]: Failed to start The Apache HTTP Server.
-- Subject: Unit apache2.service has failed
-- Defined-By: systemd
-- Support: http://www.ubuntu.com/support
-- 
-- Unit apache2.service has failed.
-- 
-- The result is RESULT.
And both are pointing to line 61, which is the "</VirtualHost>" closing argument for the declaration of VHost "Webs-R-Us", but then reports it as being "TBNK-SVR". See this is why debugging Apache is so difficult as it never ever points to the actual error but instead gives you all these lies about code, configs and definition surrounding the problem, but never the problem itself and you have to become an Apache guru, or consult an Apache guru to actually "interpret" the error results itself and though it tells you the defining error is explained in the error log, the error log has less information than these 2 msg sources, so leaves you clueless about the error.

What I suspect it that the "-"'s in the "Webs-R-Us" and "TBNK-SVR" definition are why the errors are occuring, but understand I have defined multiple time (over 100 times) vhosts on remote machines, via "CPanel" domains with the "-" in them qnd they work just fine.

So what is the syntax issues here or do I just use include statements to pull in the actual .conf files for each vhost. I also realize that all conf files in "sites-available" are symlinked to "sites-enabled" or should be and checking my "sites-enabled" to see if the system established the symlinks and if not do so manually!

Cheers!

TBNK

Last edited by TBotNik; 05-06-2021 at 10:59 AM.
 
Old 05-06-2021, 11:27 AM   #59
bathory
LQ Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 13,173
Blog Entries: 1

Rep: Reputation: 2040Reputation: 2040Reputation: 2040Reputation: 2040Reputation: 2040Reputation: 2040Reputation: 2040Reputation: 2040Reputation: 2040Reputation: 2040Reputation: 2040
Quote:
And both are pointing to line 61, which is the "</VirtualHost>" closing argument for the declaration of VHost "Webs-R-Us", but then reports it as being "TBNK-SVR". See this is why debugging Apache is so difficult as it never ever points to the actual error but instead gives you all these lies about code, configs and definition surrounding the problem, but never the problem itself and you have to become an Apache guru, or consult an Apache guru to actually "interpret" the error results itself and though it tells you the defining error is explained in the error log, the error log has less information than these 2 msg sources, so leaves you clueless about the error.
Quote:
<-snip->
<VirtualHost 'Webs-R-Us.com':80>
ServerAdmin 'webmaster@Webs-R-Us.com'
DocumentRoot '/3T/Syncs/Webs-R-Us/'
<Directory '/3T/Syncs/Webs-R-Us/'>
ServerName 'www.Webs-R-Us.com'
ServerAlias 'Webs-R-Us.com'
</VirtualHost>
<-snip->
The problem is with the single quotes in the <VirtualHost ...> tag, when defining the Webs-R-Us.com vhost
 
Old 05-06-2021, 01:09 PM   #60
astrogeek
Moderator
 
Registered: Oct 2008
Distribution: Slackware [64]-X.{0|1|2|37|-current} ::12<=X<=15, FreeBSD_12{.0|.1}
Posts: 6,269
Blog Entries: 24

Rep: Reputation: 4206Reputation: 4206Reputation: 4206Reputation: 4206Reputation: 4206Reputation: 4206Reputation: 4206Reputation: 4206Reputation: 4206Reputation: 4206Reputation: 4206
Apache is not prevaricating, I suspect the error is actually the closing virtual host tag. That is not valid within <Directory ...> context so that is where the error is reported:

Code:
<VirtualHost 'Webs-R-Us.com':80>
    ServerAdmin 'webmaster@Webs-R-Us.com'
    DocumentRoot '/3T/Syncs/Webs-R-Us/'
    <Directory '/3T/Syncs/Webs-R-Us/'>
    ServerName 'www.Webs-R-Us.com'
    ServerAlias 'Webs-R-Us.com'
</VirtualHost>
Also, I suspect this is not what you intended...

Code:
<VirtualHost TBotNik,com:80>
Read the error messages and try to understand what they are telling you, and read your own configs with a more critical eye rather than jump to the conclusion that the application is telling lies.
 
  


Reply

Tags
aliases, apache, configuration



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
bash script to display alias commands and un-alias any less than 12 characters bani Linux - Newbie 5 01-19-2014 12:34 PM
LXer: alias.sh puts your Linux shell alias on the clouds LXer Syndicated Linux News 0 01-21-2013 12:00 AM
Wildcard email alias in /etc/alias file custangro Linux - Enterprise 1 10-02-2009 12:17 PM
IP alias? Machine name alias? JohnLocke Linux - Newbie 4 01-16-2008 12:21 PM
Alias question (2 commands for one alias) gflores Linux - Newbie 3 01-21-2006 12:40 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 09:05 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