Error -(13) opening /documents/ - C ++ CGI mounted on httpd can not read a folder [on hold]
I am trying to access a folder using C ++ / CGI in apache httpd in Centos 7.
I do not know if it's because of apache permits in centos.
I can pass different routes to the cgi using a url:
http://192.168.1.2/cgi-bin/micgi.cgi?path=/documents/
But he shows me this message:
Error - (13) opening </ br> / documents /
Thank you
Log Apache:
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
[Thu Dec 20 17:37:36.925383 2018] [auth_digest:notice] [pid 5515] AH01757: generating secret for digest authentication ...
[Thu Dec 20 17:37:36.926002 2018] [lbmethod_heartbeat:notice] [pid 5515] AH02282: No slotmem from mod_heartmonitor
[Thu Dec 20 17:37:36.927791 2018] [mpm_prefork:notice] [pid 5515] AH00163: Apache/2.4.6 (CentOS) configured -- resuming normal operations
[Thu Dec 20 17:37:36.927810 2018] [core:notice] [pid 5515] AH00094: Command line: '/usr/sbin/httpd -D FOREGROUND'
[Thu Dec 20 18:00:07.856620 2018] [mpm_prefork:notice] [pid 5515] AH00170: caught SIGWINCH, shutting down gracefully
[Thu Dec 20 18:00:10.995808 2018] [core:notice] [pid 6753] SELinux policy enabled; httpd running as context system_u:system_r:httpd_t:s0
[Thu Dec 20 18:00:11.016249 2018] [suexec:notice] [pid 6753] AH01232: suEXEC mechanism enabled (wrapper: /usr/sbin/suexec)
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
[Thu Dec 20 18:00:11.022846 2018] [auth_digest:notice] [pid 6753] AH01757: generating secret for digest authentication ...
[Thu Dec 20 18:00:11.023391 2018] [lbmethod_heartbeat:notice] [pid 6753] AH02282: No slotmem from mod_heartmonitor
[Thu Dec 20 18:00:11.025378 2018] [mpm_prefork:notice] [pid 6753] AH00163: Apache/2.4.6 (CentOS) configured -- resuming normal operations
[Thu Dec 20 18:00:11.025395 2018] [core:notice] [pid 6753] AH00094: Command line: '/usr/sbin/httpd -D FOREGROUND'
[Thu Dec 20 18:09:06.126061 2018] [mpm_prefork:notice] [pid 6753] AH00170: caught SIGWINCH, shutting down gracefully
linux centos apache-httpd c++ cgi
New contributor
put on hold as unclear what you're asking by Rui F Ribeiro, Jeff Schaller, Michael Homer, andcoz, grochmal 17 hours ago
Please clarify your specific problem or add additional details to highlight exactly what you need. As it's currently written, it’s hard to tell exactly what you're asking. See the How to Ask page for help clarifying this question. If this question can be reworded to fit the rules in the help center, please edit the question.
add a comment |
I am trying to access a folder using C ++ / CGI in apache httpd in Centos 7.
I do not know if it's because of apache permits in centos.
I can pass different routes to the cgi using a url:
http://192.168.1.2/cgi-bin/micgi.cgi?path=/documents/
But he shows me this message:
Error - (13) opening </ br> / documents /
Thank you
Log Apache:
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
[Thu Dec 20 17:37:36.925383 2018] [auth_digest:notice] [pid 5515] AH01757: generating secret for digest authentication ...
[Thu Dec 20 17:37:36.926002 2018] [lbmethod_heartbeat:notice] [pid 5515] AH02282: No slotmem from mod_heartmonitor
[Thu Dec 20 17:37:36.927791 2018] [mpm_prefork:notice] [pid 5515] AH00163: Apache/2.4.6 (CentOS) configured -- resuming normal operations
[Thu Dec 20 17:37:36.927810 2018] [core:notice] [pid 5515] AH00094: Command line: '/usr/sbin/httpd -D FOREGROUND'
[Thu Dec 20 18:00:07.856620 2018] [mpm_prefork:notice] [pid 5515] AH00170: caught SIGWINCH, shutting down gracefully
[Thu Dec 20 18:00:10.995808 2018] [core:notice] [pid 6753] SELinux policy enabled; httpd running as context system_u:system_r:httpd_t:s0
[Thu Dec 20 18:00:11.016249 2018] [suexec:notice] [pid 6753] AH01232: suEXEC mechanism enabled (wrapper: /usr/sbin/suexec)
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
[Thu Dec 20 18:00:11.022846 2018] [auth_digest:notice] [pid 6753] AH01757: generating secret for digest authentication ...
[Thu Dec 20 18:00:11.023391 2018] [lbmethod_heartbeat:notice] [pid 6753] AH02282: No slotmem from mod_heartmonitor
[Thu Dec 20 18:00:11.025378 2018] [mpm_prefork:notice] [pid 6753] AH00163: Apache/2.4.6 (CentOS) configured -- resuming normal operations
[Thu Dec 20 18:00:11.025395 2018] [core:notice] [pid 6753] AH00094: Command line: '/usr/sbin/httpd -D FOREGROUND'
[Thu Dec 20 18:09:06.126061 2018] [mpm_prefork:notice] [pid 6753] AH00170: caught SIGWINCH, shutting down gracefully
linux centos apache-httpd c++ cgi
New contributor
put on hold as unclear what you're asking by Rui F Ribeiro, Jeff Schaller, Michael Homer, andcoz, grochmal 17 hours ago
Please clarify your specific problem or add additional details to highlight exactly what you need. As it's currently written, it’s hard to tell exactly what you're asking. See the How to Ask page for help clarifying this question. If this question can be reworded to fit the rules in the help center, please edit the question.
1
Please edit and add appropriate formatting (as code, etc)
– ivanivan
yesterday
I'm new posting
– Boris
yesterday
Is necesary to give permission to httpd to access to any folder ?
– Boris
yesterday
Hi Boris, we need more information. What does the cgi do? Do you know how it words? Can you access to cgi sources? Does it use some local resources?
– andcoz
20 hours ago
Thaks, this is useful I could not allow to connecto with postgres using libpqxx cgi/c++ but running this command I could run the process sucessfull #sudo setsebool -P httpd_can_network_connect_db on And I could access to the folder : /var/www/cgi-web/[my folders] Problem Solved Thanks
– Boris
11 hours ago
add a comment |
I am trying to access a folder using C ++ / CGI in apache httpd in Centos 7.
I do not know if it's because of apache permits in centos.
I can pass different routes to the cgi using a url:
http://192.168.1.2/cgi-bin/micgi.cgi?path=/documents/
But he shows me this message:
Error - (13) opening </ br> / documents /
Thank you
Log Apache:
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
[Thu Dec 20 17:37:36.925383 2018] [auth_digest:notice] [pid 5515] AH01757: generating secret for digest authentication ...
[Thu Dec 20 17:37:36.926002 2018] [lbmethod_heartbeat:notice] [pid 5515] AH02282: No slotmem from mod_heartmonitor
[Thu Dec 20 17:37:36.927791 2018] [mpm_prefork:notice] [pid 5515] AH00163: Apache/2.4.6 (CentOS) configured -- resuming normal operations
[Thu Dec 20 17:37:36.927810 2018] [core:notice] [pid 5515] AH00094: Command line: '/usr/sbin/httpd -D FOREGROUND'
[Thu Dec 20 18:00:07.856620 2018] [mpm_prefork:notice] [pid 5515] AH00170: caught SIGWINCH, shutting down gracefully
[Thu Dec 20 18:00:10.995808 2018] [core:notice] [pid 6753] SELinux policy enabled; httpd running as context system_u:system_r:httpd_t:s0
[Thu Dec 20 18:00:11.016249 2018] [suexec:notice] [pid 6753] AH01232: suEXEC mechanism enabled (wrapper: /usr/sbin/suexec)
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
[Thu Dec 20 18:00:11.022846 2018] [auth_digest:notice] [pid 6753] AH01757: generating secret for digest authentication ...
[Thu Dec 20 18:00:11.023391 2018] [lbmethod_heartbeat:notice] [pid 6753] AH02282: No slotmem from mod_heartmonitor
[Thu Dec 20 18:00:11.025378 2018] [mpm_prefork:notice] [pid 6753] AH00163: Apache/2.4.6 (CentOS) configured -- resuming normal operations
[Thu Dec 20 18:00:11.025395 2018] [core:notice] [pid 6753] AH00094: Command line: '/usr/sbin/httpd -D FOREGROUND'
[Thu Dec 20 18:09:06.126061 2018] [mpm_prefork:notice] [pid 6753] AH00170: caught SIGWINCH, shutting down gracefully
linux centos apache-httpd c++ cgi
New contributor
I am trying to access a folder using C ++ / CGI in apache httpd in Centos 7.
I do not know if it's because of apache permits in centos.
I can pass different routes to the cgi using a url:
http://192.168.1.2/cgi-bin/micgi.cgi?path=/documents/
But he shows me this message:
Error - (13) opening </ br> / documents /
Thank you
Log Apache:
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
[Thu Dec 20 17:37:36.925383 2018] [auth_digest:notice] [pid 5515] AH01757: generating secret for digest authentication ...
[Thu Dec 20 17:37:36.926002 2018] [lbmethod_heartbeat:notice] [pid 5515] AH02282: No slotmem from mod_heartmonitor
[Thu Dec 20 17:37:36.927791 2018] [mpm_prefork:notice] [pid 5515] AH00163: Apache/2.4.6 (CentOS) configured -- resuming normal operations
[Thu Dec 20 17:37:36.927810 2018] [core:notice] [pid 5515] AH00094: Command line: '/usr/sbin/httpd -D FOREGROUND'
[Thu Dec 20 18:00:07.856620 2018] [mpm_prefork:notice] [pid 5515] AH00170: caught SIGWINCH, shutting down gracefully
[Thu Dec 20 18:00:10.995808 2018] [core:notice] [pid 6753] SELinux policy enabled; httpd running as context system_u:system_r:httpd_t:s0
[Thu Dec 20 18:00:11.016249 2018] [suexec:notice] [pid 6753] AH01232: suEXEC mechanism enabled (wrapper: /usr/sbin/suexec)
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
[Thu Dec 20 18:00:11.022846 2018] [auth_digest:notice] [pid 6753] AH01757: generating secret for digest authentication ...
[Thu Dec 20 18:00:11.023391 2018] [lbmethod_heartbeat:notice] [pid 6753] AH02282: No slotmem from mod_heartmonitor
[Thu Dec 20 18:00:11.025378 2018] [mpm_prefork:notice] [pid 6753] AH00163: Apache/2.4.6 (CentOS) configured -- resuming normal operations
[Thu Dec 20 18:00:11.025395 2018] [core:notice] [pid 6753] AH00094: Command line: '/usr/sbin/httpd -D FOREGROUND'
[Thu Dec 20 18:09:06.126061 2018] [mpm_prefork:notice] [pid 6753] AH00170: caught SIGWINCH, shutting down gracefully
linux centos apache-httpd c++ cgi
linux centos apache-httpd c++ cgi
New contributor
New contributor
edited yesterday
ivanivan
3,4421414
3,4421414
New contributor
asked yesterday
Boris
1
1
New contributor
New contributor
put on hold as unclear what you're asking by Rui F Ribeiro, Jeff Schaller, Michael Homer, andcoz, grochmal 17 hours ago
Please clarify your specific problem or add additional details to highlight exactly what you need. As it's currently written, it’s hard to tell exactly what you're asking. See the How to Ask page for help clarifying this question. If this question can be reworded to fit the rules in the help center, please edit the question.
put on hold as unclear what you're asking by Rui F Ribeiro, Jeff Schaller, Michael Homer, andcoz, grochmal 17 hours ago
Please clarify your specific problem or add additional details to highlight exactly what you need. As it's currently written, it’s hard to tell exactly what you're asking. See the How to Ask page for help clarifying this question. If this question can be reworded to fit the rules in the help center, please edit the question.
1
Please edit and add appropriate formatting (as code, etc)
– ivanivan
yesterday
I'm new posting
– Boris
yesterday
Is necesary to give permission to httpd to access to any folder ?
– Boris
yesterday
Hi Boris, we need more information. What does the cgi do? Do you know how it words? Can you access to cgi sources? Does it use some local resources?
– andcoz
20 hours ago
Thaks, this is useful I could not allow to connecto with postgres using libpqxx cgi/c++ but running this command I could run the process sucessfull #sudo setsebool -P httpd_can_network_connect_db on And I could access to the folder : /var/www/cgi-web/[my folders] Problem Solved Thanks
– Boris
11 hours ago
add a comment |
1
Please edit and add appropriate formatting (as code, etc)
– ivanivan
yesterday
I'm new posting
– Boris
yesterday
Is necesary to give permission to httpd to access to any folder ?
– Boris
yesterday
Hi Boris, we need more information. What does the cgi do? Do you know how it words? Can you access to cgi sources? Does it use some local resources?
– andcoz
20 hours ago
Thaks, this is useful I could not allow to connecto with postgres using libpqxx cgi/c++ but running this command I could run the process sucessfull #sudo setsebool -P httpd_can_network_connect_db on And I could access to the folder : /var/www/cgi-web/[my folders] Problem Solved Thanks
– Boris
11 hours ago
1
1
Please edit and add appropriate formatting (as code, etc)
– ivanivan
yesterday
Please edit and add appropriate formatting (as code, etc)
– ivanivan
yesterday
I'm new posting
– Boris
yesterday
I'm new posting
– Boris
yesterday
Is necesary to give permission to httpd to access to any folder ?
– Boris
yesterday
Is necesary to give permission to httpd to access to any folder ?
– Boris
yesterday
Hi Boris, we need more information. What does the cgi do? Do you know how it words? Can you access to cgi sources? Does it use some local resources?
– andcoz
20 hours ago
Hi Boris, we need more information. What does the cgi do? Do you know how it words? Can you access to cgi sources? Does it use some local resources?
– andcoz
20 hours ago
Thaks, this is useful I could not allow to connecto with postgres using libpqxx cgi/c++ but running this command I could run the process sucessfull #sudo setsebool -P httpd_can_network_connect_db on And I could access to the folder : /var/www/cgi-web/[my folders] Problem Solved Thanks
– Boris
11 hours ago
Thaks, this is useful I could not allow to connecto with postgres using libpqxx cgi/c++ but running this command I could run the process sucessfull #sudo setsebool -P httpd_can_network_connect_db on And I could access to the folder : /var/www/cgi-web/[my folders] Problem Solved Thanks
– Boris
11 hours ago
add a comment |
active
oldest
votes
active
oldest
votes
active
oldest
votes
active
oldest
votes
active
oldest
votes
1
Please edit and add appropriate formatting (as code, etc)
– ivanivan
yesterday
I'm new posting
– Boris
yesterday
Is necesary to give permission to httpd to access to any folder ?
– Boris
yesterday
Hi Boris, we need more information. What does the cgi do? Do you know how it words? Can you access to cgi sources? Does it use some local resources?
– andcoz
20 hours ago
Thaks, this is useful I could not allow to connecto with postgres using libpqxx cgi/c++ but running this command I could run the process sucessfull #sudo setsebool -P httpd_can_network_connect_db on And I could access to the folder : /var/www/cgi-web/[my folders] Problem Solved Thanks
– Boris
11 hours ago