Add Apache and MySQL as CentOS Services

When you install self-compiled Apache and MySQL, they are not added as system services by default, so we need to manually add them as services. Adding Apache as a System Service Copy apachectl to the init.d directory # cp /usr/local/apache/bin/apachectl /etc/rc.d/init.d/httpd Edit httpd # vi /etc/rc.d/init.d/httpd Add the following comment lines: # chkconfig: 345 85 15 # description: Apache server Add Apache to the system services # chkconfig --add httpd Adding MySQL as a System Service ...

October 19, 2012 · 1 min · Zhiya

MacOS + VMware Fusion: Setting Up CentOS Network

After performing a minimal installation of CentOS 6.3 in VMware, I found that the network could not be connected whether VMware was set to shared or bridged mode. I searched online for methods to set up CentOS under VMware Workstation, but they did not apply to VMware Fusion on macOS. After some trial and error, I discovered that configuring the CentOS network under Fusion is quite simple. Here’s how: Set VMware to bridged network mode. ...

October 19, 2012 · 1 min · Zhiya

Creating iOS Push Certificates (JAVA/PHP)

When setting up an iOS push server using Java or PHP, you need to export the aps_developer_identity certificate and the Apple Development Push Services certificate from the developer website and combine them to generate a p12 certificate for Java or a pem certificate for PHP. The application process for the aps_developer_identity certificate and the Apple Development Push Services certificate can be referenced here: http://www.cnblogs.com/hubj/archive/2012/06/14/2549816.html This article focuses on how to combine the certificates. ...

October 19, 2012 · 1 min · Zhiya