Restart Instructions for Expertiza
The Expertiza application runs under the Phusion Passenger server for Apache. Passenger dynamically starts and kills instances of the rails application as demand on the application changes. After making changes to the application code, only the rails application need be restarted, not Apache. Apache only need be restarted when making changes to the Apache web server configuration in /etc/httpd/.
Restarting the rails application
Restarting preferably is done via capistrano. See Deploying_Expertiza_to_Production for capistrano setup instructions.
From your development machine in the expertiza app directory, run
- cap deploy:restart
Alternatively, if you have sudo access, you can SSH into the production server and run
- sudo -u rails touch /local/rails/expertiza/current/tmp/restart.txt
Restarting Apache web server
- sudo /etc/init.d/httpd restart
SSL Password: expertiza
Troubleshooting
- Apache needs to be started if you get a Connection Refused error when connecting to the site.
- Stop the /usr/etc/httpd process if it is running.
- ps –ef | grep httpd
- If httpd is running, kill its pid
- kill <process id>
- Start the apache server
- apachectl start
- Enter the SSL password: expertiza
- Stop the /usr/etc/httpd process if it is running.
- MediaWiki will be started as part of the initialization of the environment. There is no further requirement for this processes.
- It may be necessary to restart MySQL if you are receiving the error: Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' or Connection refused - /var/lib/mysql/mysql.sock.
- /sbin/service mysqld restart
(Note: If only the MySql server needs to be restarted, simply run: sudo /etc/init.d/mysqld restart )
Back to Expertiza_documentation Main page.