-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Admin UI & Search Feature not for Two Instances #1
Comments
Are you talking about two virtual hosts, i.e. 2 sites served by the same Apache web server? If yes, did you see my instructions on the FreeBSD forums? The important part is, that you need to launch 2 instances of ContentCGI, and one of which got a different name. That means you need to edit a copy of the ContentCGI's rc file as shown in said post and then launch it in addition to the first instance. In the second virtual host configuration, you would point the directive Regarding the search problem, please inform the location of the search index on your system. As I mentioned in another post on the FreeBSD Forums, the location was changed in the past, and perhaps, your setup still refers to the old location. Files which are placed into the However, it would not harm to backup the |
Thanks for the URLs. In the second virtual host configuration, you would point the directive ProxyPass to the second ContentCGI daemon. I guess, this would resolve the login issue.
I reckon the problem with the search is linked to Apache. I can't think of how else to point nail it down to a particular cause - lib versions, conf, etc. And for the upgrade, your recommendation is noted. Thanks. |
Please send the virtual host files of the respective sites (you may obfuscate the site's domain names). Also I would like to see the cloned rc-file of the second ContentCGI instance. Alternatively send links to it, e.g. pastebin. The search problem is most probably an issue with a displaced directory of the search index. I am very bad in telling fortunes. Please let me analyse the facts, and then we may resolve the issues. I operate three servers each running multiple sites in different domains by the way of Apache's virtual hosts configuration. Everything, including searching is running smooth and without any hick-ups. |
I can confirm that SecondCGI.sock and SecondCGI.pid do not exist yet the second site loads. All hacks to bring them up fail. |
Do the following as user
Once you see the socket file |
Most of these commands had been run in the past save the sed's. Unfortunately, on trying them again, the SecondCGI sock and pid files were not created. The only notification that can help further trace the problem can be found in the messages log. Here is it:
|
I revised the sed command. Please try it again. The rc script must be made executable as well, therefore please do not forget to execute step 2. |
No luck. |
No luck what? Do you still see the following?
In case yes, you want to repeat the exact sed-command as I have written above, here in this issue thread. I mean neither that of the FreeBSD thread nor that in the history of your shell. In case this turns out to be too difficult, add the following directive to the file
In case it is no more the PID issue, do you see another notification in |
ContentCGI makes a socket connection at HostIP:4000 when 'sockstat -4l' lists all port connections. SecondCGI isn't listed. I presume it could not run at the same port. I tried checking where 4000 was specified. It seems it's hardcoded into the src. You reckon we need 'make install' again after changing the port no for SecondCGI? |
The options -l 0, -s 0 prevent SecondCGI from open TCP sockets, and therefore it won't be in conflict with ContentCGI. SecondCGI will only operate via the UNIX domain socket at see: |
No difference. SecondCGI.sock & SecondCGI.pid not created. |
Do you work with the latest ContentCGI, if no, when was the last update? On the command line enter as user root:
In case you are working with an old version, In case you don't want to update, redo the sed command using other TCP port numbers: |
This command - sed -e "s|ContentCGI|SecondCGI|g;s|-w /usr/local/www/SecondCGI/webdocs|-l 4000 -s 4001 -u www:www -d /tmp/SecondCGI.sock -p /var/run/SecondCGI.pid -w /usr/local/www/SecondCGI/webdocs|" /usr/local/etc/rc.d/ContentCGI > /usr/local/etc/rc.d/SecondCGI
|
Please update to the latest version. The point is, that your old version does not allow specifying the socket path by the way of the -d option. You need to update. |
That was easy. It won't help. Hopefully, we will soon get more users showing interest in this cool project. |
You wrote "It won't help." Can you be more specific please? |
After the update, I tried this - #1 (comment). I can see "/usr/local/bin/ContentCGI -u www:www -w /usr/local/www/ContentCGI/webdocs" in ps aux. Nothing happens when the 'ContentCGI' in the command is changed to SecondCGI and executed. I can see that 'service SecondCGI (re)start' kills the ContentCGI.sock though ContetCGI is still shown in 'ps aux' as running. |
|
Definitely! |
I just repeated all this: #1 (comment) Here
Definitely something went wrong with your setup. |
Hi,
I am doing more test on your great piece of work.
For two instances on the same host, we noticed that the (admin) editor UI is only available on logging in to .../edit/.... URL pattern for the first instance. It throws an error - service not available - for the second instance. The two are sharing the ContentEditor_password file as you aware that no changes are made to it when setting up the second instance.
We still can't get the search feature to work too as previously mentioned. It throws a server error - service not available. We tried tracing it back then via log etc but couldn't get useful information.
Lastly, having tweaked a few files - css, articles html files, etc, would upgrading & rebuilding the package reset the files?
The text was updated successfully, but these errors were encountered: