How to add custom php.ini for servers running FastCGI

Most of our servers run PHP as CGI module (needed for suPHP).

Check http://stats.server.arvixe.com/phpinfo.php

say, http://stats.monkey.arvixe.com/phpinfo.php

The Server API will be listed as “CGI”.

In these servers you can create a custom php.ini inside your public_html and the domains will load this configuration instead of the global php.ini

Our few servers have PHP as FastCGI. Setting a custom php.ini for this PHP handler will need a few settings to be done at the customer’s end.

In these servers the Server API will be listed as CGI/FastCGI.

http://stats.server.arvixe.com/phpinfo.php

say, http://stats.mole.arvixe.com/phpinfo.php

Below are the steps to enable custom php.ini for FastCGI PHP handler:

Open .htaccess of the user and add the below codes:

AddHandler php5-fastcgi .php
Action php5-fastcgi /cgi-bin/php5.fcgi

Move to the cgi-bin folder of the account

cp /usr/local/lib/php.ini /home/user/public_html/cgi-bin/

Note: (contact us to copy the global php.ini to your cgi-bin or you can create an empty php.ini file)

chmod 755 /home/user/public_html/cgi-bin/php.ini

cd /home/user/public_html/cgi-bin/

vi php5.fcgi (insert the below codes and save)

#!/bin/sh
export PHP_FCGI_CHILDREN=1
export PHP_FCGI_MAX_REQUESTS=10
exec /usr/local/cpanel/cgi-sys/php5

Save and quit the file

chmod 755 /home/user/public_html/cgi-bin/php5.fcgi

Posted under cPanel/Linux Hosting, PHP.ini | 1 Comment

How to Use Web Deploy to deploy your website

This blog post will detail how to use Visual Studio 2010 to deploy your website or ASP.NET application to your Arvixe hosted site. Web Deploy allows you to publish your site quickly and easily without having to login to the control panel or FTP. For those not familiar with Web Deploy you can read more about it here:  http://learn.iis.net/page.aspx/426/overview-of-web-deploy/

Arvixe offers Web Deploy service with all ASP/ASP.NET hosting packages.

Requirements:

i) You need to have Remote IIS Management enabled. You can enable it from the “Management” tab in your website properties in your Arvixe control panel. Inquire our staff if you run into any problems. The username and password you choose in that tab will be the username and password you use for Web Deploy.

ii)You need to have Visual Studio 2010 and the web deploy plugin ( x86 version – http://go.microsoft.com/fwlink/?LinkId=109365 x64 version – http://go.microsoft.com/fwlink/?LinkId=109366 )

If you are a new customer: Web Deploy is automatically setup for you along with Remote IIS when your account is created. To enable it login to your control panel and go to Websites > Click on your website > Click on the Management tab > Enter a username and password > Click Enable. From that point you can follow this blog tutorial on how to use web deploy.

If you are an existing customer: Web Deploy is setup on a per user/site request. Please submit a ticket to have Web Deploy enabled for your account. If you require it on more then one website, please list them in the ticket.

Learn More

Tags: , , , , , | Posted under Web Deploy | 14 Comments

How to Reset the Admins Password in WordPress

This article will give you a step by step guide on how to reset the administrators password for WordPress in the cPanel. Sign into your cPanel and follow these steps:

1) Scroll down to Databases and click phpMyAdmin Learn More

Tags: , , , , , , , , , | Posted under cPanel/Linux Hosting, WordPress | 2 Comments