Phone: +44 1865 980583
 
 
Welcome to the Knowledge Base
 
  Articles
 
  Blogging Setup
 
  Disk and Bandwidth quota e-mails
 
  Domains
 
  Dynamic Content (PHP and CGI)
 
  E-mail
 
  How to upload your website
 
  Troubleshooting

Uploading PHP scripts

PHP is fully supported on all Digital Crocus accounts within our secure virtual private server environment. You can see some information on our PHP installation here.

  • PHP files should end in .php
  • PHP scripts run 'as you'.

When a PHP script executes, it has the same permissions you do when you login to the server. This means if you need to make a file or directory writable from your script you do not need to make it world writable (chmod 777), in fact it is a very good idea not to. If the installation instructions for your script tell you to make something world writable (chmod 777 or 666), you should omit this step. This is a feature of our secure VPS environment.

  • Database connections are to 'localhost'.

If your script needs to connect to MySQL, the server hostname you should use is 'localhost', this will usually be the default. You should login to MySQL as your main account username and with the password you defined via the databases section of the control panel. You will need to create at least one database (via the control panel) before you are able to login to MySQL.

  • You can set your own PHP configuration variables via php.ini

If you need to set PHP configuration options (register globals for example), you can do this by uploading your own custom php.ini into your home directory. Click here for more details on uploading your own custom php.ini file.


Top ]


Questions Resellers Hosting Domains Home