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 - Distributions > CentOS
User Name
Password
CentOS This forum is for the discussion of CentOS Linux. Note: This forum does not have any official participation.

Notices


Reply
  Search this Thread
Old 04-05-2015, 01:53 PM   #16
masterross
Member
 
Registered: Nov 2005
Distribution: CentOS 7.x
Posts: 107

Original Poster
Rep: Reputation: 17

Sorry to hear that
I hope all is ok now!

About my problems, yes the socket is there.
And both starts (apachectl or systemctl ) should be run from root user.
I dont have any idea why the mysql bin path missing from path env when runs with systemctl

P.S.

Actually you maybe right about socket permissions.
I moved the socket to new location and now is not readable by both starts.
Do you know how to check is the apache has permission to access the socket and how to give it?

Last edited by masterross; 04-05-2015 at 02:34 PM.
 
Old 04-05-2015, 03:51 PM   #17
kmhuntly
Member
 
Registered: Mar 2015
Location: Cheektowaga, NY
Distribution: ArchLinux
Posts: 34

Rep: Reputation: 7
755 on the directory and 644 on the file
 
Old 04-05-2015, 04:01 PM   #18
masterross
Member
 
Registered: Nov 2005
Distribution: CentOS 7.x
Posts: 107

Original Poster
Rep: Reputation: 17
Both are 777
but this doesnt explain why apache started with apachectl start can read the socket and started with systemctl start httpd.service cant.
 
Old 04-05-2015, 04:18 PM   #19
kmhuntly
Member
 
Registered: Mar 2015
Location: Cheektowaga, NY
Distribution: ArchLinux
Posts: 34

Rep: Reputation: 7
In your httpd.conf file, what's set for user and group? when you run using apachectl are you running using that user?
 
Old 04-06-2015, 03:34 AM   #20
masterross
Member
 
Registered: Nov 2005
Distribution: CentOS 7.x
Posts: 107

Original Poster
Rep: Reputation: 17
Hi,

user and group - nobody:

here is top from systemctl:

Quote:
34 root 20 0 0 0 0 S 0.7 0.0 29:45.22 rcu_sched
175 root 20 0 0 0 0 S 0.3 0.0 0:19.63 kworker/11:1
21632 nobody 20 0 363436 13804 7868 S 0.3 0.0 0:00.02 httpd
21634 nobody 20 0 363288 11248 5676 S 0.3 0.0 0:00.01 httpd
21636 nobody 20 0 363452 13016 7096 S 0.3 0.0 0:00.01 httpd
21638 nobody 20 0 362420 12720 7316 S 0.3 0.0 0:00.01 httpd
21642 nobody 20 0 363456 13876 7816 S 0.3 0.0 0:00.02 httpd
21643 nobody 20 0 363180 12956 7244 S 0.3 0.0 0:00.01 httpd
21645 nobody 20 0 363456 13752 7748 S 0.3 0.0 0:00.02 httpd
21653 nobody 20 0 362412 12388 7068 S 0.3 0.0 0:00.01 httpd
21655 nobody 20 0 363456 13076 7088 S 0.3 0.0 0:00.01 httpd
21656 root 20 0 123772 1760 1148 R 0.3 0.0 0:00.05 top
1 root 20 0 197160 3868 2304 S 0.0 0.0 0:08.07 systemd
and here is from /usr/local/apache2/bin/apachectl :

Quote:
21725 nobody 20 0 497260 56384 21688 S 27.9 0.2 0:02.80 httpd
21767 nobody 20 0 485196 45344 20540 S 11.6 0.1 0:01.69 httpd
21714 nobody 20 0 490452 50948 22952 S 5.6 0.2 0:02.51 httpd
21768 nobody 20 0 487040 43940 17624 S 4.3 0.1 0:01.13 httpd
1185 mysql 15 -5 3464920 267420 4520 S 4.0 0.8 41:43.39 mysqld
21689 nobody 20 0 491856 50448 22916 S 2.3 0.2 0:02.63 httpd
21701 nobody 20 0 488936 49400 21672 S 2.0 0.2 0:03.76 httpd
21698 nobody 20 0 491304 49504 23164 S 1.7 0.2 0:01.62 httpd
34 root 20 0 0 0 0 S 0.7 0.0 29:47.05 rcu_sched
36 root 20 0 0 0 0 S 0.3 0.0 0:46.86 rcuos/1
45 root 20 0 0 0 0 S 0.3 0.0 1:42.88 rcuos/10
No difference at all.
 
Old 04-06-2015, 05:18 AM   #21
masterross
Member
 
Registered: Nov 2005
Distribution: CentOS 7.x
Posts: 107

Original Poster
Rep: Reputation: 17
ok,

I fixed!
I saw this in /usr/lib/systemd/system/httpd.service:

Quote:
PrivateTmp=true
I realized that should be:
Quote:
PrivateTmp=false
Thanks mate!
You help me point me to /tmp
 
Old 04-08-2015, 01:11 AM   #22
unSpawn
Moderator
 
Registered: May 2001
Posts: 29,415
Blog Entries: 55

Rep: Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600
Quote:
Originally Posted by masterross View Post
Hi guys.

I have problems with Apache v2.2.29 build from source and systemd.
This thread is a duplicate of https://www.linuxquestions.org/quest...md-4175538315/. Please do not do that again.
 
Old 04-08-2015, 07:51 AM   #23
sag47
Senior Member
 
Registered: Sep 2009
Location: Raleigh, NC
Distribution: Ubuntu, PopOS, Raspbian
Posts: 1,899
Blog Entries: 36

Rep: Reputation: 477Reputation: 477Reputation: 477Reputation: 477Reputation: 477
Have you checked selinux? Search my LQ blog posts for selinux. It details how I typically troubleshoot it. Blog is in the user description of this post on the left.
 
  


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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
LXer: An introduction to systemd for CentOS 7 LXer Syndicated Linux News 0 09-19-2014 01:01 AM
CentOS 5.3 - Too many httpd process sokha Linux - Server 7 03-12-2010 01:31 AM
httpd problem and caused my httpd to shut-down golpemortal Linux - Server 2 04-08-2007 03:44 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > CentOS

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