As you know, when you installed your Apache service to your Centos/Redhat server manually (make & make install but not yum) and could like to run the service automatically, you should copy the apachectl from the Apache bin folder to /etc/init.d/ folder as named httpd.
Then you might want to set the chkconfig and facing the error as below,
service httpd does not support chkconfig
To fix this issue, you may simply add the following line to your file at /etc/init.d/httpd.
# Startup script for the Apache Web Server
# chkconfig: - 85 15
# description: Apache is a World Wide Web server. It is used to serve
# HTML files and CGI.
# processname: httpd
# pidfile: /usr/local/apache/logs/httpd.pid
# config: /usr/local/apache/conf/httpd.conf
Then you may chkconfig again,
chkconfig --level 235 httpd on
And now restart your httpd service.
If you are using Windows Server 2008 R2 and IIS 7.x plus FTP 7.x. You might facing a problem like can not add virtual directory for website or FTP in your WebSitePanel.
To overcome this problem,
1. Download Patches file from below,
MS IIS 7.x and FTP 7.x issues on Windows Server 2008 R2 SP1, here.
WebsitePanel Server 1.1.0 (Win2K8 R2 SP1 Fix).zip, here.
2. Backup the WebSitePanel Server’s bin folder.
3. Extract file from Step 1.
4. Replace the bin folder from step 3.
To enable FastCGI from your Apache server, you may follow this article.
1. Copy the php.ini file to your cgi-bin folder.
2. Create a file named php.fcgi in the cgi-bin folder.
3. Insert the following script,
4. Change the php.fcgi permission to 755.
5. Create/Edit the .htaccess file and insert the following script.
AddHandler php5-fastcgi .php
Action php5-fastcgi /cgi-bin/php.fcgi
Assumed that you will going to install OpenSSL and you wish to apply to your MySQL if you are using Windows Operating System.
1. Download OpenSSL from URL here.
2. Once installation done, add your bin folder of the OpenSSL to your Environment Variable.
3. Open command prompt.
4. Follow the command as below.
If you see the result return is “OpenSSL>”, that mean you have successfully installed.
5. Open the MySQL command and refer to the following line.
shell> md c:\newcerts
shell> cd c:\newcerts
6. Test your certificate.
shell> mysqld –defaults-file=$DIR/my.cnf &
Many of the user will ask how could them access the AwStats outside cPanel since cPanel restricted them must log into the cPanel to get their information.
To get the AwStats for every of your webmaster to view and you do not need to let them access to the cPanel account, you may follow with the full step as below.
1. Assume that you are creating a subdomain name awstats.domain.com where I will use awstats.mickgenie.com
1. Download the latest stable version of AwStats as URL below. (I’ll guide you for Unix tar.gz file)
2. Extract the tar file. (according to your downloaded version)
$ tar zxf awstats-6.95.tar.gz
3. Move the all folder from the extracted file wwwroot folder to awstats.mickgenie.com subdomain folder.
4. Go to the cgi-bin folder, copy the file named awstats.model.conf to awstats.mickgenie.com.conf.
5. Open and edit the file awstats.mickgenie.com.conf.
– Edit the LogFile, change it to/usr/local/apache/domlogs/mickgenie.com.
– Edit the SiteDomain, change it to mickgenie.com.
– Edit the HostAliases, delete the REGEX[myserver\.com$] and change it mickgenie.com www.mickgenie.com. (domain.com and www.domain.com)
– Edit the DirData, from . to /home/mickgenie/tmp/awstats/ where this MUST same like your cPanel setting.
6. You have done for all.
You may now access to your awstats as URL below.