{"id":1570,"date":"2013-02-02T08:24:50","date_gmt":"2013-02-02T16:24:50","guid":{"rendered":"http:\/\/www.wellgolly.com\/?p=1570"},"modified":"2015-04-07T08:56:01","modified_gmt":"2015-04-07T15:56:01","slug":"things-i-cant-remember-apache-and-mysql","status":"publish","type":"post","link":"https:\/\/www.wellgolly.com\/?p=1570","title":{"rendered":"Things I can\u2019t remember\u2014Apache and MySQL"},"content":{"rendered":"<p>Restarting Apache and MySQL is sometimes necessary when the site isn\u2019t responding. I can never remember exactly where the commands are located on different flavors of Linux\/Unix.<\/p>\n<h3>Gentoo<\/h3>\n<p>This is where the services are located on Gentoo.<br \/>\n<pre><code class=\"preserve-code-formatting\">\nsudo vi \/etc\/php\/apache2-php5\/php.ini \nsudo \/etc\/init.d\/apache2 restart\nsudo \/etc\/init.d\/mysql restart \nsudo \/etc\/init.d\/exim restart \n<\/code><\/pre><\/p>\n<h3>OSX Mountain Lion<\/h3>\n<p><pre><code class=\"preserve-code-formatting\">\nsudo apachectl restart\n\nsudo \/usr\/local\/mysql\/support-files\/mysql.server stop\nsudo \/usr\/local\/mysql\/support-files\/mysql.server start \n<\/code><\/pre><\/p>\n<h3>Ubuntu<\/h3>\n<p>Automatically upgrade packages using Aptitude.<br \/>\n<pre><code class=\"preserve-code-formatting\">\nsudo aptitude safe-upgrade\nsudo reboot\n<\/code><\/pre><\/p>\n<p>If Aptitude doesn\u2019t work, then use apt-get.<br \/>\n<pre><code class=\"preserve-code-formatting\">\nsudo apt-get update\nsudo apt-get upgrade\n<\/code><\/pre><\/p>\n<p>Restarting services is easier on Ubuntu since you don\u2019t need to remember where they are. The \/etc\/init.d restart method used in Gentoo also works.<br \/>\n<pre><code class=\"preserve-code-formatting\">\nsudo service apache2 restart\nsudo service ssh restart\nsudo service mysql restart\n<\/code><\/pre><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Restarting Apache and MySQL is sometimes necessary when the site isn\u2019t responding. I can never remember exactly where the commands are located on different flavors of Linux\/Unix. Gentoo This is where the services are located on Gentoo. sudo vi \/etc\/php\/apache2-php5\/php.ini sudo \/etc\/init.d\/apache2 restart sudo \/etc\/init.d\/mysql restart sudo \/etc\/init.d\/exim restart OSX Mountain Lion sudo apachectl restart &hellip; <a href=\"https:\/\/www.wellgolly.com\/?p=1570\" class=\"more-link\">Continue reading <span class=\"screen-reader-text\">Things I can\u2019t remember\u2014Apache and MySQL<\/span><\/a><\/p>\n","protected":false},"author":6,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[27],"tags":[],"class_list":["post-1570","post","type-post","status-publish","format-standard","hentry","category-mysql"],"_links":{"self":[{"href":"https:\/\/www.wellgolly.com\/index.php?rest_route=\/wp\/v2\/posts\/1570","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.wellgolly.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.wellgolly.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.wellgolly.com\/index.php?rest_route=\/wp\/v2\/users\/6"}],"replies":[{"embeddable":true,"href":"https:\/\/www.wellgolly.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1570"}],"version-history":[{"count":0,"href":"https:\/\/www.wellgolly.com\/index.php?rest_route=\/wp\/v2\/posts\/1570\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.wellgolly.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1570"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.wellgolly.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1570"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.wellgolly.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1570"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}