-5

I'm migrating a Rails project onto an Apache server. I've followed the steps similarly to this link (installed passenger as ruby gem, added some lines to /etc/apache2/apache2.conf, set Vitual Host to rails app ~/public directory.)

When I visit the site, I only see content of dispatch.fcgi. That link mentions that the problem is solved by rebooting whole server (apache reboot didn't suffice). I'm not familiar with servers, and I'm not sure what rebooting the whole server means, or how I can do it.

PJ Miller
  • 103
  • 1

2 Answers2

0

Before trying to reboot the complete server, try to restart Apache first.

Depending on your distribution, one of this commands should work:

service httpd restart

service apache2 restart

/etc/init.d/httpd restart

/etc/init.d/apache2 restart

Depending on the distribution and your user rights, you might need to prepend sudo in front of the commands.

zero0
  • 1,437
  • 16
  • 14
0

To reboot, I have always used the following sequence:

cd //
sync
init 6