LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 08-09-2018, 07:56 PM   #1
bk328115
LQ Newbie
 
Registered: Jul 2018
Posts: 22

Rep: Reputation: Disabled
Help setting up Apache2 Server


This might be a little long, so I apologize. I'm running Debian Stretch with KDE Plasma 5, kernel 4.9.0-7-amd64 on a Lenovo thinkpad x61 2Ghz, 4 GB RAM.

I'm trying to run RISC with RPCemu and also need to set up apache2 server.

Are there any good tutorials on how to set up and run an apache2 server.
I have apache2 installed and it seems to be set up correctly, but I can't figure out how to get all the config files set up properly. When I try to do a restart after some changes, I get the following:

/usr/sbin/apache2ctl: 49: /etc/apache2/envvars: User: not found
/usr/sbin/apache2ctl: 50: /etc/apache2/envvars: Group: not found
[Thu Aug 09 20:52:23.416069 2018] [core:warn] [pid 13329] AH00111: Config variable ${/var/lock/apache2} is not defined
[Thu Aug 09 20:52:23.429434 2018] [so:warn] [pid 13329] AH01574: module dav_module is already loaded, skipping
AH00526: Syntax error on line 74 of /etc/apache2/apache2.conf:
Invalid Mutex directory in argument file:${/var/lock/apache2}
Action 'restart' failed.


in the apache2.conf file, I have this for user and grouo:

User mylogin
Group mylogin

where mylogin = my username

Any help would be appreciated and if you need addition info (which I probably left out), please let me know. Thank you very much in advance; I know this is child's play for some of you. I'm learning, lol....
 
Old 08-09-2018, 11:52 PM   #2
Turbocapitalist
LQ Guru
 
Registered: Apr 2005
Distribution: Linux Mint, Devuan, OpenBSD
Posts: 7,328
Blog Entries: 3

Rep: Reputation: 3726Reputation: 3726Reputation: 3726Reputation: 3726Reputation: 3726Reputation: 3726Reputation: 3726Reputation: 3726Reputation: 3726Reputation: 3726Reputation: 3726
The choices for User and Group are strange. How did you actuallly install Apache2?

Code:
apt-get remove --purge apache2;
mv -i /etc/apache2/ /etc/old.apache2/;

apt-get update;
apt-get install apache2;
If you install it that way, the basics should be done automatically. From there it depends on what you are trying to do in the way of adding vhosts or reconfiguring the default vhost.
 
  


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
Trouble setting up HTTPS with Apache2 on a non-default site (Ubuntu 16.04 Server) dave247 Linux - Server 4 02-14-2018 04:37 PM
Trouble setting up basic user authentication on apache2 web server LinuxIntern445 Linux - Newbie 8 02-04-2015 09:15 AM
Problem with setting up authentication on an Apache2 server kaplan71 Linux - Software 1 01-04-2011 11:58 AM
I need help setting up my Debian/apache2/php/mysql server antinull Linux - Newbie 17 10-31-2007 05:18 AM
LXer: Setting up an SSL server with Apache2 LXer Syndicated Linux News 0 02-12-2006 09:31 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 04:08 PM.

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