I've been trying to install a ruby app called Openproject on my bluehost account. I followed the Openproject guide.
https://www.openproject.org/open-source/manual-installation/manual-installation-guide/
I updated ruby and node using rbenv and nodenv. I was able to follow up to the section "Finish the Installation of OpenProject," and I didn't get any error up to this point.
However, I wasn't sure how to tackle the section "Servce OpenProject with Apache and Passenger." The guide asks to configure apache to load the right passenger, but Bluehost doesn't provide access to httpd.conf. Then I found the guide for Ruby from Bluehost indicating that I can use .htaccess to configure.
https://my.bluehost.com/cgi/help/rails
I copied the .htaccess from the guide and put it in openproject/public folder.
However, if I open mydomain.com/openproject, it displays the list of files inside openproject folder. If I open mydomain.com/openproject/public, I get the error below. I also tried to move .htaccess to openproject folder instead of openproject/public, but I get the same result.
I noticed a couple of things from the error message, but I'm not sure how to fix them.
1. The error indicates "No such file or directory - config.ru," even though openproject folder has the file config.ru.
2. The error indicates that Application root is /home5/account/public_html. Shouldn't it be /home5/account/public_html/openproject?
Anyways, here's the entire error message.
Ruby (Rack) application could not be started
These are the possible causes:
There may be a syntax error in the application's code. Please check for such errors and fix them.
A required library may not installed. Please install all libraries that this application requires.
The application may not be properly configured. Please check whether all configuration files are written correctly, fix any incorrect configurations, and restart this application.
A service that the application relies on (such as the database server or the Ferret search engine server) may not have been started. Please start that service.
Further information about the error may have been written to the application's log file. Please check it in order to analyse the problem.
Error message:
No such file or directory - config.ru Exception class:
Errno::ENOENT Application root: /home5/account/public_html
Backtrace: # File Line Location 0
/etc/httpd/modules/passenger/lib/phusion_passenger/utils.rb 675 in
lstat' 1
/etc/httpd/modules/passenger/lib/phusion_passenger/utils.rb 675 in
lower_privilege' 2
/etc/httpd/modules/passenger/lib/phusion_passenger/utils.rb 198 in
prepare_app_process' 3
/etc/httpd/modules/passenger/lib/phusion_passenger/rack/application_spawner.rb
156 inblock in initialize_server' 4
/etc/httpd/modules/passenger/lib/phusion_passenger/utils.rb 563 in
report_app_init_status' 5
/etc/httpd/modules/passenger/lib/phusion_passenger/rack/application_spawner.rb
154 ininitialize_server' 6
/etc/httpd/modules/passenger/lib/phusion_passenger/abstract_server.rb
204 in start_synchronously' 7
/etc/httpd/modules/passenger/lib/phusion_passenger/abstract_server.rb
180 instart' 8
/etc/httpd/modules/passenger/lib/phusion_passenger/rack/application_spawner.rb
129 in start' 9
/etc/httpd/modules/passenger/lib/phusion_passenger/spawn_manager.rb
253 inblock (2 levels) in spawn_rack_application' 10
/etc/httpd/modules/passenger/lib/phusion_passenger/abstract_server_collection.rb
132 in lookup_or_add' 11
/etc/httpd/modules/passenger/lib/phusion_passenger/spawn_manager.rb
246 inblock in spawn_rack_application' 12
/etc/httpd/modules/passenger/lib/phusion_passenger/abstract_server_collection.rb
82 in block in synchronize' 13 prelude> 10:insynchronize' 14
/etc/httpd/modules/passenger/lib/phusion_passenger/abstract_server_collection.rb
79 in synchronize' 15
/etc/httpd/modules/passenger/lib/phusion_passenger/spawn_manager.rb
244 inspawn_rack_application' 16
/etc/httpd/modules/passenger/lib/phusion_passenger/spawn_manager.rb
137 in spawn_application' 17
/etc/httpd/modules/passenger/lib/phusion_passenger/spawn_manager.rb
275 inhandle_spawn_application' 18
/etc/httpd/modules/passenger/lib/phusion_passenger/abstract_server.rb
357 in server_main_loop' 19
/etc/httpd/modules/passenger/lib/phusion_passenger/abstract_server.rb
206 instart_synchronously' 20
/etc/httpd/modules/passenger/helper-scripts/passenger-spawn-server 99
in ` '
Powered by Phusion Passenger, mod_rails / mod_rack for Apache and Nginx.
Related
I have been following this guide from the gentto wiki to install Gentoo. I have hit a bit of a roadblock though which looks reasonably simple but I am having trouble figuring it out.
On this page: https://wiki.gentoo.org/wiki/Sakaki%27s_EFI_Install_Guide/Configuring_Secure_Boot#test_secure_boot
In the Testing Secure Boot with a Signed Kernel section whilst executing the buildkernel command I get the following error:
* Updating old config using make olddefconfig
make: *** No rule to make target 'olddefconfig'. Stop.
* buildkernel: Error: Caught signal - exiting
I don't seem to have an olddefconfig at all and even if I did have one I am not entirely sure what rule should be added to the make file.
I have read the man page for the buildkernel command and gone over this description here but sadly I have still not managed to fix the issue.
Does anyone know how to rectify this error?
So I now have an answer for this. It sometimes happens when the kernel sources have been updated to a new version, but the symbolic link /usr/src/linux hasn't been updated to
match. Gentoo leaves a partially populated kernel source tree in
/usr/src/linux--genoo even when an old kernel source version is
unmerged, and if the symbolic link /usr/src/linux still points to this.
if you run:
eselect kernel list
and it produces something like:
Available kernel symlink targets:
[1] linux-4.14.63-gentoo-r1
and
ls -l /usr/src/
produces something along the lines of:
total 8
lrwxrwxrwx 1 root root 20 Aug 18 00:33 linux -> linux-4.14.61-gentoo
drwxr-xr-x 23 root root 4096 Aug 18 02:38 linux-4.14.61-gentoo
drwxr-xr-x 25 root root 4096 Aug 18 02:33 linux-4.14.63-gentoo-r1
Running the following command will update the symbolic link and let you get on with things.
eselect kernel set 1
I emailed the author of the guide to get this information so credit goes to her. I am leaving this here in case anyone else runs into this problem in future.
I have Win 10 x64. I updated to Java 8 Update 171. Attempting to run ES up with this command line
cd bin
elasticsearch.bat -Ecluster.name=ABTest_Cluster_00 -Enode.name=ABTest_Node_00
resulted in failure to start with this rather cryptic error
Common was unexpected at this time
I upgraded to 172 and it was the same. (Disclaimer: It might have been "not expected" rather than "unexpected" but I'm not re-installing 172 to check it and then downgrading again.)
I had a look in jvm.options and the only place I could find "common" was in a comment
# turn off a JDK optimization that throws away stack traces for common
# exceptions because stack traces are important for debugging
-XX:-OmitStackTraceInFastThrow
Downgrading to je 8 U 162 fixed the issue and all was well.
My local DynamoDB ran up OK under the latest Java. Is this an issue with how I'm starting ES (don't think so - it's been working for ages)? Is an issue with ES or Java? Is there a work around that anyone knows of as I'd rather run the latest Java.
For me helped to change in elasticsearch.bat from %JAVA% to !JAVA! in line 47
With elastic 6.6.2
change line 46 of elasticsearch.bat - from %JAVA% to !JAVA!
change line 60 of elasticsearch-env.bat - from %JAVA% to !JAVA!
Any custom metasploit module I create isn't getting loaded.
I tried both of these demos:
https://www.offensive-security.com/metasploit-unleashed/building-module/ https://github.com/rapid7/metasploit-framework/wiki/Loading-External-Modules
and got the same result that the modules were NOT found.
Before posting here, I checked these out:
https://forums.kali.org/showthread.php?28940-Metasploit-modules-not-loading!
https://www.offensive-security.com/metasploit-unleashed/modules-and-locations
and from SO:
I can't get new modules to load in metasploit
How to add module in Metasploit?
no help
Just working with the github example, on the Kali host, I do indeed have the file in the right location (according to the demo):
root#kali:~/.msf4/modules/exploits/test# ls -al
total 12
drwxr-xr-x 2 root root 4096 Mar 19 13:59 .
drwxr-xr-x 3 root root 4096 Mar 19 13:58 ..
-rw-r--r-- 1 root root 9 Mar 19 13:59 test_module.rb
I then ran reload_all and when using this command:
use exploit/test/test_module it returns with Failed to load module.
I also tried to manually load that path and it failed too:
msf > loadpath ~/.msf4/modules/
Loaded 0 modules:
Posting the answer for anyone who may come across this. I'm kinda new to this; didn't know where metasploit info gets logged.
It's in: ~/.msf4/logs/framework.log
The log told me I had a syntax error... must have happened from copying and pasting the text from the browser. Cleaned that up and everything works.
A fresh installation of Apache 2.2 on Win2003.
Configuration validates with the apache tool yet when I attempt to access the site the browser displays an internal error.
Apache log shows:
[Mon Jul 16 13:36:38 2012] [error] [client 10.162.9.158] (OS 3)The
system cannot find the path specified. : couldn't spawn child
process: D:/Heatmap/Webapp/public/dispatch.cg
The file system shows:
D:\Heatmap\Webapp\public>dir dispatch* Volume in drive D is DATA
Volume Serial Number is C482-3950
Directory of D:\Heatmap\Webapp\public
05/02/2012 10:56 AM 445 dispatch.cgi 05/02/2012 10:56
AM 520 dispatch.fcgi
2 File(s) 965 bytes
0 Dir(s) 5,625,618,432 bytes free
Since I noramlly run Apache on Linux servers I'm stymied as to what the root cause is here. The system cannot find a path that is present.
Cluestick please.
The bit of the message couldn't spawn child process caught my attention.
Research showed the shebang line is actually used by Apache - unless Perl at the WinOS level which associates the file extension with the interpreter - and I needed to correct it in my .cgi.
Specifying the full path to Perl in the cgi's shebang line corrected the problem.
I don´t know how to do. I always have the same error no matter what I do to protect the files. The host (mochahost) don´t give me any support. So I will try if a good soul here could help me.
These are the errors:
Warning: include_once(Mage/Core/functions.php) [function.include-once]: failed to open stream: No such file or directory in C:\inetpub\vhosts\e-interage.com.br\httpdocs\dinossauros\app\Mage.php on line 49
Warning: include_once() [function.include]: Failed opening 'Mage/Core/functions.php' for inclusion (include_path='C:\inetpub\vhosts\e-interage.com.br\httpdocs\dinossauros\app\code\local;C:\inetpub\vhosts\e-interage.com.br\httpdocs\dinossauros\app\code\community;C:\inetpub\vhosts\e-interage.com.br\httpdocs\dinossauros\app\code\core;C:\inetpub\vhosts\e-interage.com.br\httpdocs\dinossauros\lib;.;C:\Program Files (x86)\Parallels\Plesk\Additional\PleskPHP5\Pear;./includes;./pear;./;') in C:\inetpub\vhosts\e-interage.com.br\httpdocs\dinossauros\app\Mage.php on line 49
Warning: Varien_Autoload::include(Mage\Core\Model\App.php) [varien-autoload.include]: failed to open stream: No such file or directory in C:\inetpub\vhosts\e-interage.com.br\httpdocs\dinossauros\lib\Varien\Autoload.php on line 93
Warning: Varien_Autoload::include() [function.include]: Failed opening 'Mage\Core\Model\App.php' for inclusion (include_path='C:\inetpub\vhosts\e-interage.com.br\httpdocs\dinossauros\app\code\local;C:\inetpub\vhosts\e-interage.com.br\httpdocs\dinossauros\app\code\community;C:\inetpub\vhosts\e-interage.com.br\httpdocs\dinossauros\app\code\core;C:\inetpub\vhosts\e-interage.com.br\httpdocs\dinossauros\lib;.;C:\Program Files (x86)\Parallels\Plesk\Additional\PleskPHP5\Pear;./includes;./pear;./;') in C:\inetpub\vhosts\e-interage.com.br\httpdocs\dinossauros\lib\Varien\Autoload.php on line 93
Fatal error: Class 'Mage_Core_Model_App' not found in C:\inetpub\vhosts\e-interage.com.br\httpdocs\dinossauros\app\Mage.php on line 620
Best regards
The answer is in your question - you are 'installing Magento in Windows Shared Server using Plesk.'
You are using Windows shared hosting for an application developed for a linux box, preferably one with lots of resources.
Even if you get this working you will be spending your time adapting the software to your setup, not developing your shop.
How much do you value your time?
Is it more than your (shared) computer's time?
If so, get the right hosting, which at a minimum is virtual server, linux flavour. The installation instructions will work for you. Same with any other problems you have with your build - all the instructions and forum tips are for linux, i.e. with the path separators going '/' and not Microsoft backwards-'\'.