Upload files from web in centos 7

General support questions
Post Reply
xo)mora
Posts: 58
Joined: 2017/01/13 20:52:59

Upload files from web in centos 7

Post by xo)mora » 2019/01/22 17:05:38

Hi, I had been migrate a web server from RedHat with a site and web application to Centos 7, the web application in Redhat I can upload files but in Centos I can't , will you help me please?

The Website and web application in Centos are ok, but in the web application I can't upload files. I had been use the httpd.conf from RedHat and the errors were:

# systemctl restart httpd.service
Job for httpd.service failed because the control process exited with error code. See "systemctl status httpd.service" and "journalctl -xe" for details.

# systemctl status httpd.service
● httpd.service - The Apache HTTP Server
Loaded: loaded (/usr/lib/systemd/system/httpd.service; enabled; vendor preset: disabled)
Active: failed (Result: exit-code) since Tue 2019-01-22 10:30:25 CST; 5s ago
Docs: man:httpd(8)
man:apachectl(8)
Process: 9312 ExecStop=/bin/kill -WINCH ${MAINPID} (code=exited, status=1/FAILURE)
Process: 24703 ExecReload=/usr/sbin/httpd $OPTIONS -k graceful (code=exited, status=0/SUCCESS)
Process: 9311 ExecStart=/usr/sbin/httpd $OPTIONS -DFOREGROUND (code=exited, status=1/FAILURE)
Main PID: 9311 (code=exited, status=1/FAILURE)

Jan 22 10:30:25 ep.com systemd[1]: Starting The Apache HTTP Server...
Jan 22 10:30:25 ep.com httpd[9311]: httpd: Syntax error on line 151 of /etc/httpd/conf/httpd.conf: Cannot load modules/mod_authn_alias.so into ser... directory

Line 151:
LoadModule authn_alias_module modules/mod_authn_alias.so

Jan 22 10:30:25 ep.com systemd[1]: httpd.service: main process exited, code=exited, status=1/FAILURE
Jan 22 10:30:25 ep.com kill[9312]: kill: cannot find process ""
Jan 22 10:30:25 ep.com systemd[1]: httpd.service: control process exited, code=exited status=1
Jan 22 10:30:25 ep.com systemd[1]: Failed to start The Apache HTTP Server.
Jan 22 10:30:25 ep.com systemd[1]: Unit httpd.service entered failed state.
Jan 22 10:30:25 ep.com systemd[1]: httpd.service failed.
Hint: Some lines were ellipsized, use -l to show in full.

Please, will you help me?
Thank a lot. Regards.

lightman47
Posts: 1522
Joined: 2014/05/21 20:16:00
Location: Central New York, USA

Re: Upload files from web in centos 7

Post by lightman47 » 2019/01/22 18:44:36

When googled, I found an old report that seems to refer to a new 'conf' file. This may or may not be helpful for sleuthing the issue. It was for Fedora.

https://bugzilla.redhat.com/show_bug.cgi?id=903616

pjsr2
Posts: 614
Joined: 2014/03/27 20:11:07

Re: Upload files from web in centos 7

Post by pjsr2 » 2019/01/22 20:57:57

The command

Code: Select all

yum provides /etc/httpd/modules/mod_authn_alias.so 
returns "No matches found", which means that this module does not exist in CentOS-7.

In CentOS-7 there are no modules directly loaded from /etc/httpd/conf/httpd.conf; all modules are loaded through the configuration files in the /etc/httpd/conf.modules.d directory. Looks like you have changed your httpd.conf. Perhaps copied a file from an older system? Compare your httpd.conf with the one original file /etc/httpd/conf/httpd.conf that CentOS-7 provides.

Post Reply