Centuran / OTRS-Community-Edition

((OTRS)) Community Edition is a freely available, open source, web-based ticketing system used for Help Desk, Customer Service, and IT Service Management purposes.
https://otrscommunityedition.com/
GNU General Public License v3.0
45 stars 10 forks source link

6.032-httpd.service failed #4

Closed tune6688 closed 3 years ago

tune6688 commented 3 years ago

Dear experts System: centos7 and otrs-community-editon 6.032.

I perform "shell> ln -s /opt/otrs/scripts/apache2-httpd.include.conf /etc/conf.d/zzz_otrs.conf" and" systemctl restart httpd" got error message"Job for httpd.service failed. See "systemctl status httpd.service" and "journalctl -xe" for details."

Run " shell>systemctl status httpd.service -l" got "● httpd.service - The Apache HTTP Server Loaded: loaded (/usr/lib/systemd/system/httpd.service; enabled; vendor preset: disabled) Active: failed (Result: protocol) since 四 2021-06-24 15:17:04 CST; 52s ago Docs: man:httpd(8) man:apachectl(8) Process: 5955 ExecStop=/bin/kill -WINCH ${MAINPID} (code=exited, status=0/SUCCESS) Process: 10572 ExecStart=/usr/sbin/httpd $OPTIONS -DFOREGROUND (code=exited, status=0/SUCCESS) Main PID: 10572 (code=exited, status=0/SUCCESS)

6月 24 15:17:04 localhost.localdomain systemd[1]: Starting The Apache HTTP Server... 6月 24 15:17:04 localhost.localdomain httpd[10572]: AH00558: httpd: Could not reliably determine the server's fully qualified domain name, using localhost.localdomain. Set the 'ServerName' directive globally to suppress this message 6月 24 15:17:04 localhost.localdomain httpd[10572]: httpd (pid 6759) already running 6月 24 15:17:04 localhost.localdomain systemd[1]: Failed to start The Apache HTTP Server. 6月 24 15:17:04 localhost.localdomain systemd[1]: Unit httpd.service entered failed state. 6月 24 15:17:04 localhost.localdomain systemd[1]: httpd.service failed."

As to how to solve this problem ,I have no idea.Could you give me some suggestions? Thank you !

kgluszak commented 3 years ago

Hello tune6688, did you run /opt/otrs/bin/otrs.SetPermissions.pl and you are sure that the file "/opt/otrs/scripts/apache2-httpd.include.conf" is readable by the apache?

Also try simply restarting the machine and see if the problem persist.

tune6688 commented 3 years ago

Dear Kgluszak Thanks for your help! opt/otrs/bin/otrs.SetPermissions.pl ---Yes,I did it. /opt/otrs/scripts/apache2-httpd.include.conf"---I confirmed that soft link is ready. Actually if I remove etc/httpd/conf.d /zzz_otrs.conf, then apache can be worked.

kgluszak commented 3 years ago

Hello, I am still not over with possible file permission issue :D

Please try the following:

  1. Remove the link.
  2. Check if apache can be started without a problem.
  3. Copy the file from /opt/otrs/scripts/apache2-httpd.include.conf directly to /etc/httpd/conf.d (so we can check if the link is an issue)
  4. restart apache.

In case of error still persisting try following:

  1. Paste output of: getenforce
  2. Hit the new file "/etc/httpd/conf.d/apache2-httpd.include.conf" with permission update chmod 777 for testing pupouse so it can be read by anyone.
  3. Check apache log (/var/log/httpd/error_log) if it says something valuable right after the apache restarting and copy/paste.
  4. Do the same with: journalctl -xe
  5. Check what: service httpd configtest prints - should be "Syntax OK"
  6. Please print httpd -v
  7. Check if any of the required apache modules is not missing: /opt/otrs/bin/otrs.CheckModules.pl

Be sure to delete any sensitive data before posting here or you can email me the things I requested at kamil.gluszak@centuran.com and I will get back to You.

tune6688 commented 3 years ago

Dear kgluszak I tried to reinstall centos7 and otrs , it is fine now. Thank you so much for your help again.