abrarShariar / ffead-cpp

Automatically exported from code.google.com/p/ffead-cpp
0 stars 0 forks source link

serverRootDirectory becomes invalid after requesting index.html page from web browser with apache_ffead_cpp module loaded #4

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Compile and install Apache Web Server 2.4.9 in my Ubuntu 12.04 LTS system

2. Compile ffead package 1.9 with apache_mod_ffeadcpp module using help of 
INSTALL and other User Guide.

3. Started httpd process and see that apache_mod_ffeadcpp module is loaded 
successfully but connection goes into reset state after requesting default 
index.html page from web browser.

"http://<<Server IP>>/ffead-server/web/default/index.html"

What is the expected output? What do you see instead?

I have tried to debug from apache module source code and found that 
"serverRootDirectory" and "webpath URL" becomes invalid after requesting 
index.html page.

Also that "serverRootDirectory" is valid after starting httpd process but 
before calling HTTP request.

What version of the product are you using? On what operating system?

Please provide any additional information below.

This is valid serverRootDirectory path 
"/usr/local/apache2/htdocs/ffead-server/" after starting httpd process and 
before calling HTTP request with default index.html page.

Then serverRootDirectory path becomes invalid 
"/usr/local/apache2/htdocs/ffead-server//usr/local/apache2/htdocs/ffead-server/"
 and also webpath URL 
"URL/usr/local/apache2/htdocs/ffead-server//usr/local/apache2/htdocs/ffead-serve
r/web//ffead-server/web/default/index.html" after calling HTTP request with 
default index.html page.

Also connection goes into reset state and one of child httpd process killed 
after that.

[core:notice] [pid 13260:tid 3075201344] AH00051: child pid 13261 exit signal 
Aborted (6), possible coredump in /usr/local/apache2

Please let me know if you have any idea about this issue.

Original issue reported on code.google.com by rtshpraj...@gmail.com on 6 Aug 2014 at 12:19

GoogleCodeExporter commented 8 years ago
Did you follow the steps mentioned in the INSTALL guide inside the 
apache_mod_ffeadcpp folder, you may just need to change the /var/www to the 
correct httpd web folder for your apache installation,

12. Add the following lines to httpd.conf, the FFEAD_CPP_PATH value should be 
as per point 7,
    LoadModule ffead_cpp_module /usr/lib/apache2/modules/mod_ffeadcpplib.so
    FFEAD_CPP_PATH "/var/www/ffead-cpp-1.9-bin"
13. Add the LD_LIBRARY_PATH variable to your apache envvars file, 
    export LD_LIBRARY_PATH=$FFEAD_CPP_PATH:$LD_LIBRARY_PATH
14. Add a virtual host section to your enabled sites in apache2 configuration,
    <VirtualHost *:8080>
        DocumentRoot /var/www/ffead-cpp-1.9-bin
        SetHandler ffead_cpp_module
    </VirtualHost>
14. Restart apache server, check the url http://localhost/index.html on your 
browser

Original comment by sumeet.chhetri@gmail.com on 6 Aug 2014 at 12:51

GoogleCodeExporter commented 8 years ago
Hi Sumeet,

I have followed all above steps you have mentioned but still failed to execute 
url http://localhost/index.html and httpd child process exited with Sig Abort 
signal.

[core:notice] [pid 22694:tid 3075377472] AH00051: child pid 22781 exit signal 
Aborted (6), possible coredump in /usr/local/apache2

I could not found any core-dump in /usr/local/apache2 folder.

Also serverRootDirectory path becomes invalid 
"/usr/local/apache2/htdocs/ffead-server//usr/local/apache2/htdocs/ffead-server/"

Please let me know if you need any more information. 

Original comment by rtshpraj...@gmail.com on 7 Aug 2014 at 4:45

GoogleCodeExporter commented 8 years ago
Hi Sumeet,

Do you have any idea for above issue?

Original comment by rtshpraj...@gmail.com on 8 Aug 2014 at 6:41

GoogleCodeExporter commented 8 years ago
Please test with the latest master branch at 
github(https://github.com/sumeetchhetri/ffead-cpp/archive/master.zip).

I have fixed the problem, also there were several other issues which have been 
fixed as well.

Original comment by sumeet.chhetri@gmail.com on 8 Aug 2014 at 3:41

GoogleCodeExporter commented 8 years ago
Hi Sumeet,

Thanks for reply,

I will test your update master package at my side and let you know later.

Original comment by rtshpraj...@gmail.com on 9 Aug 2014 at 5:00