php


MSSQL

You can use the following sample script to test connectivity to a Microsoft SQL Server 2012 database through PHP. The script will connect to the database and produces a list of the tables contained within it.
Note: To use the...
0 Comments
Filed in: Cloud Sites
 
Cloud Sites currently supports the following versions of the software:
 
Technology
Versions Supported

Linux


PHP


5.3 and 5.4


Apache


2.2


MySQL


5.0, 5.1


Windows


ASP.NET


2.0, 3.5 SP1, 4.0, and 4.5


Windows...
25 Comments
Filed in: Cloud Sites

Apache

This article is an expansion of an existing article regarding basic SMTP authentication with PHP, which can be found here. 

Within the Cloud Sites environment, it is possible to craft an HTML formatted email message for delivery...
0 Comments
Filed in: Cloud Sites
The End…
Now that you have gone through the whole guide and you have installed and created all of the files needed for your installation, you will need to restart NGINX and PHP-FPM. After you restart both services it will be up...
6 Comments
Filed in: Cloud Servers
The steps in this article guide you through adding pool information to the PHP-FPM setup that you previously completed.
When you entered the command to install PHP-FPM, the system created a default configuration for PHP-FPM. This...
6 Comments
Filed in: Cloud Servers
Well now that we have installing NGINX out of the way, we can proceed to setting up NGINX and PHP-FPM to work on your system.
If you are coming from the world of Apache, NGINX will look like Chinese to you. Though you will see...
3 Comments
Filed in: Cloud Servers
You've gotten your system ready to install PHP-FPM.
Now this is the most complicated and quite possibly the hardest piece to the setup.
Here is the overwhelming and complicated command set that you will need to enter in order to...
6 Comments
Filed in: Cloud Servers
Now that you've read the preface and know what you're getting yourself into, It is time to get your system ready to install NGINX and PHP-FPM.
You can get the source from NGINX and/or add the NGINX repositories to your system....
3 Comments
Filed in: Cloud Servers
Preface
To preface this article, let me say that this is the exact stack that I have set up and am running on a Rackspace Cloud Server, so I know that it is portable and will work on a multitude of different environments. I have...
0 Comments
Filed in: Cloud Servers
In The Beginning
This is a guide on Installing NGINX and PHP-FPM, while running on UNIX File Sockets for your Debian based system.
If this statement is making you wonder why you are here, you are either:
A- Intrigued
B- Google...
0 Comments
Filed in: Cloud Servers
The following article will guide you through installing PHP 5.3 on your CentOS 5.x-based system using the third party webtatic and EPEL package repositories. These package repositories are not officially supported by CentOS, but...
21 Comments
Filed in: Cloud Servers

Linux and PHP

This article is an expansion of an existing article regarding basic SMTP authentication with PHP, which can be found here. 

Within the Cloud Sites environment, it is possible to craft an HTML formatted email message for delivery...
0 Comments
Filed in: Cloud Sites
Note: As of Wordpress 3.8, Wordpress employs an SVG logo for the administration page logo, the following fix will also allow this image to properly show.
In order to properly show SVG image types within the Cloud Sites PHP...
0 Comments
Filed in: Cloud Sites
Overview
The phpMyAdmin package allows you to interact (manage dbs, tables, columns, users, etc) with your database through a PHP GUI. This article will detail installing the phpMyAdmin web interface on the Ubuntu 12.04 LTS (...
0 Comments
Filed in: Cloud Servers
 
Default Time Zone
The default time zone in Rackspace Cloud sites is Central Time Zone (North America) and we do honour daylight savings time.  The UTC offsets are:
Central Standard Time UTC−6:00Central Daylight Time  UTC−5:...
0 Comments
Filed in: Cloud Sites
The Rackspace Cloud Sites product used to give customers the ability to set up a hosting environment in which customers serve Windows/IIS applications from a Linux/PHP based site and vice versa. Cloud Sites removed this ability...
5 Comments
Filed in: Cloud Sites
When serving content from your Cloud Sites, you may occasionally receive the "Connection timed out - please try again" error.  We're here to shed a little light on this issue, and tell you about the steps we have taken to...
5 Comments
Filed in: Cloud Sites
When serving content from your Cloud Sites, you may occasionally receive the "Connection timed out - please try again" error.  We're here to shed a little light on this issue, and tell you about the steps we have taken to...
5 Comments
Filed in: Cloud Sites
 
Cloud Sites currently supports the following versions of the software:
 
Technology
Versions Supported

Linux


PHP


5.3 and 5.4


Apache


2.2


MySQL


5.0, 5.1


Windows


ASP.NET


2.0, 3.5 SP1, 4.0, and 4.5


Windows...
25 Comments
Filed in: Cloud Sites
By default some scripts will attempt to retrieve the IP address of a visitor using the REMOTE_ADDR HTTP header. Due to the nature of our environment your script may receive the IP of one of our load balancers, rather than the IP...
6 Comments
Filed in: Cloud Sites
NOTE: This article is written for our Classic Cloud Control Panel. You can access this interface from the New Cloud Control Panel by clicking your username in the upper-right of the control panel and selecting "Classic Cloud...
0 Comments
Filed in: Cloud Sites
To be able to view server configuration information for your sites using PHP, insert the following code into a file named phpinfo.php:
<?php phpinfo(); ?>
Save the file to your site and then use your browser to call on the...
0 Comments
Filed in: Cloud Sites
To be able to view server configuration information for your sites using PHP, insert the following code into a file named phpinfo.php:
<?php phpinfo(); ?>
Save the file to your site and then use your browser to call on the...
0 Comments
Filed in: Cloud Sites
Below are two samples of what you can use in a .htaccess to force SSL on your PHP site:
#Force SSL on entire site
RewriteEngine On
RewriteBase /
RewriteCond %{ENV:HTTPS} !on [NC]
RewriteRule ^(.*)$ https://(YOURDOMAIN)/$1 [R,L...
9 Comments
Filed in: Cloud Sites
You can cause PHP to be processed on HTM and HTML pages by setting those extensions to be served by the PHP handler. You can enable PHP processing on .htm and .html in your .htaccess with the following directives:

AddHandler...
0 Comments
Filed in: Cloud Sites
You can cause PHP to be processed on HTM and HTML pages by setting those extensions to be served by the PHP handler. You can enable PHP processing on .htm and .html in your .htaccess with the following directives:

AddHandler...
0 Comments
Filed in: Cloud Sites
Note: This article is written for our Cloud Sites Control Panel. You can get to it from the Cloud Control Panel by clicking your name in the upper-right corner and selecting Cloud Sites Control Panel.
In this article we're going...
0 Comments
Filed in: Cloud Sites
You can test PHP SMTP functions with the following two examples. The first one is standard SMTP while the second one is SMTP with SSL.
We strongly recommend using an SMTP relay that requires authentication. Sending mail through...
34 Comments
Filed in: Cloud Sites
NOTE: This article is written for our Classic Cloud Control Panel. You can access this interface from the New Cloud Control Panel by clicking your username in the upper-right of the control panel and selecting "Classic Control...
1 Comments
Filed in: Cloud Sites
Session state servers are being implemented for PHP applications. This will improve the performance of most sites by setting the default session handler to the state servers. Session data will be accessible from all PHP web nodes...
4 Comments
Filed in: Cloud Sites

- Getting Started -

Description
This article will detail installing, testing, and configuring PHP on the Windows Server 2012. This article will use the Microsoft Web Platform Installer (Web PI) method of installation. It will not cover the use case...
0 Comments
Filed in: Cloud Servers

IIS and ASP.NET

The Rackspace Cloud Sites product used to give customers the ability to set up a hosting environment in which customers serve Windows/IIS applications from a Linux/PHP based site and vice versa. Cloud Sites removed this ability...
5 Comments
Filed in: Cloud Sites
 
Cloud Sites currently supports the following versions of the software:
 
Technology
Versions Supported

Linux


PHP


5.3 and 5.4


Apache


2.2


MySQL


5.0, 5.1


Windows


ASP.NET


2.0, 3.5 SP1, 4.0, and 4.5


Windows...
25 Comments
Filed in: Cloud Sites
By default some scripts will attempt to retrieve the IP address of a visitor using the REMOTE_ADDR HTTP header. Due to the nature of our environment your script may receive the IP of one of our load balancers, rather than the IP...
6 Comments
Filed in: Cloud Sites
Note: This article is written for our Cloud Sites Control Panel. You can get to it from the Cloud Control Panel by clicking your name in the upper-right corner and selecting Cloud Sites Control Panel.
In this article we're going...
0 Comments
Filed in: Cloud Sites

FTP

When serving content from your Cloud Sites, you may occasionally receive the "Connection timed out - please try again" error.  We're here to shed a little light on this issue, and tell you about the steps we have taken to...
5 Comments
Filed in: Cloud Sites
 
Cloud Sites currently supports the following versions of the software:
 
Technology
Versions Supported

Linux


PHP


5.3 and 5.4


Apache


2.2


MySQL


5.0, 5.1


Windows


ASP.NET


2.0, 3.5 SP1, 4.0, and 4.5


Windows...
25 Comments
Filed in: Cloud Sites

Linux MySQL

When serving content from your Cloud Sites, you may occasionally receive the "Connection timed out - please try again" error.  We're here to shed a little light on this issue, and tell you about the steps we have taken to...
5 Comments
Filed in: Cloud Sites
 
Cloud Sites currently supports the following versions of the software:
 
Technology
Versions Supported

Linux


PHP


5.3 and 5.4


Apache


2.2


MySQL


5.0, 5.1


Windows


ASP.NET


2.0, 3.5 SP1, 4.0, and 4.5


Windows...
25 Comments
Filed in: Cloud Sites

Caching

When serving content from your Cloud Sites, you may occasionally receive the "Connection timed out - please try again" error.  We're here to shed a little light on this issue, and tell you about the steps we have taken to...
5 Comments
Filed in: Cloud Sites
We will be introducing an op-code cache on our PHP based web nodes. Normally, PHP files have to be read and parsed for each request before they are executed. This processing time gets longer the more complex your site is. The...
4 Comments
Filed in: Cloud Sites

Ubuntu/Debian Linux

The End…
Now that you have gone through the whole guide and you have installed and created all of the files needed for your installation, you will need to restart NGINX and PHP-FPM. After you restart both services it will be up...
6 Comments
Filed in: Cloud Servers
The steps in this article guide you through adding pool information to the PHP-FPM setup that you previously completed.
When you entered the command to install PHP-FPM, the system created a default configuration for PHP-FPM. This...
6 Comments
Filed in: Cloud Servers
Well now that we have installing NGINX out of the way, we can proceed to setting up NGINX and PHP-FPM to work on your system.
If you are coming from the world of Apache, NGINX will look like Chinese to you. Though you will see...
3 Comments
Filed in: Cloud Servers
You've gotten your system ready to install PHP-FPM.
Now this is the most complicated and quite possibly the hardest piece to the setup.
Here is the overwhelming and complicated command set that you will need to enter in order to...
6 Comments
Filed in: Cloud Servers
Now that you've read the preface and know what you're getting yourself into, It is time to get your system ready to install NGINX and PHP-FPM.
You can get the source from NGINX and/or add the NGINX repositories to your system....
3 Comments
Filed in: Cloud Servers
Preface
To preface this article, let me say that this is the exact stack that I have set up and am running on a Rackspace Cloud Server, so I know that it is portable and will work on a multitude of different environments. I have...
0 Comments
Filed in: Cloud Servers
In The Beginning
This is a guide on Installing NGINX and PHP-FPM, while running on UNIX File Sockets for your Debian based system.
If this statement is making you wonder why you are here, you are either:
A- Intrigued
B- Google...
0 Comments
Filed in: Cloud Servers

Nginx

The End…
Now that you have gone through the whole guide and you have installed and created all of the files needed for your installation, you will need to restart NGINX and PHP-FPM. After you restart both services it will be up...
6 Comments
Filed in: Cloud Servers
The steps in this article guide you through adding pool information to the PHP-FPM setup that you previously completed.
When you entered the command to install PHP-FPM, the system created a default configuration for PHP-FPM. This...
6 Comments
Filed in: Cloud Servers
Well now that we have installing NGINX out of the way, we can proceed to setting up NGINX and PHP-FPM to work on your system.
If you are coming from the world of Apache, NGINX will look like Chinese to you. Though you will see...
3 Comments
Filed in: Cloud Servers
You've gotten your system ready to install PHP-FPM.
Now this is the most complicated and quite possibly the hardest piece to the setup.
Here is the overwhelming and complicated command set that you will need to enter in order to...
6 Comments
Filed in: Cloud Servers
Now that you've read the preface and know what you're getting yourself into, It is time to get your system ready to install NGINX and PHP-FPM.
You can get the source from NGINX and/or add the NGINX repositories to your system....
3 Comments
Filed in: Cloud Servers
Preface
To preface this article, let me say that this is the exact stack that I have set up and am running on a Rackspace Cloud Server, so I know that it is portable and will work on a multitude of different environments. I have...
0 Comments
Filed in: Cloud Servers
In The Beginning
This is a guide on Installing NGINX and PHP-FPM, while running on UNIX File Sockets for your Debian based system.
If this statement is making you wonder why you are here, you are either:
A- Intrigued
B- Google...
0 Comments
Filed in: Cloud Servers

Scheduled Cron Jobs


Contents
1 Command Language: PHP vs HTTP
2 Relative vs Absolute Paths
2.1 Solution #1
2.2 Solution #2



Command Language: PHP vs HTTP
Some PHP scripts are designed to be run from a web browser; if this is the case for your...
1 Comments
Filed in: Cloud Sites

SSL

By default some scripts will attempt to retrieve the IP address of a visitor using the REMOTE_ADDR HTTP header. Due to the nature of our environment your script may receive the IP of one of our load balancers, rather than the IP...
6 Comments
Filed in: Cloud Sites
Below are two samples of what you can use in a .htaccess to force SSL on your PHP site:
#Force SSL on entire site
RewriteEngine On
RewriteBase /
RewriteCond %{ENV:HTTPS} !on [NC]
RewriteRule ^(.*)$ https://(YOURDOMAIN)/$1 [R,L...
9 Comments
Filed in: Cloud Sites

Uncategorized

You can use the following code saved into a file with a .php extension to test PHP mail functionality:
IMPORTANT NOTE: We strongly recommend using an SMTP relay that requires authentication. Sending mail through unauthenticated...
6 Comments
Filed in: Cloud Sites
You can use the following PHP script to test the session_id() function in PHP.
<?php
session_start();
$old_sessionid = session_id();
session_regenerate_id();
$new_sessionid = session_id();
echo "Old Session: $old_sessionid<...
0 Comments
Filed in: Cloud Sites
NOTE: This article is written for our Classic Cloud Control Panel. You can access this interface from the New Cloud Control Panel by clicking your username in the upper-right of the control panel and selecting "Classic Cloud...
0 Comments
Filed in: Cloud Sites
You can use the following in a .htaccess file to change the default document on your PHP based sites:
DirectoryIndex filename.htmlThis would cause filename.html to be treated as your default page, or default directory page. You...
0 Comments
Filed in: Cloud Sites

What is phpinfo?

PHPinfo is a function that returns information, in HTML form, about the PHP environment on your server.


How do I run phpinfo?

To run PHPinfo you must save the following code in a file on your computer...
0 Comments
Filed in: Cloud Sites
If your PHP script is not working, check the following:
1. Did you save it as a file with the ".php" extension?
2. Did you upload it to the correct folder on the server?
3. Did you upload it in ASCII?
If you've tried all of the...
0 Comments
Filed in: Cloud Sites

Contents
1 CentOS - Installing Apache and PHP5
2 Apache Install
3 ServerName
4 Firewall
5 Default Page
6 Chkconfig
7 PHP5 Install
8 Almost

CentOS - Installing Apache and PHP5
CentOS comes with Apache v.2.2.3 and PHP v.5.1.6 and...
27 Comments
Filed in: Cloud Servers

Performance

Note:  We've had reports of problems using Magento with Cloud Sites.  We cannot provide support for Magento on Cloud Sites so we do not recommend using it at this time.  This article is made available for archival purposes only....
3 Comments
Filed in: Cloud Sites

Content Management Systems

Note:  We've had reports of problems using Magento with Cloud Sites.  We cannot provide support for Magento on Cloud Sites so we do not recommend using it at this time.  This article is made available for archival purposes only....
3 Comments
Filed in: Cloud Sites