Return to "PHP"

Installing 3rd-party PHP Scripts


 
The topic of this article is not supported by our customer support department, however for your convenience we are providing this material to assist you in troubleshooting potential issues related to this topic.

OpenSourceHost web hosting services include the popular PHP programming language and MySQL database server. You are welcome to install any application that uses PHP and MySQL on your account. Follow the directions provided by your software vendor or developer when installing these packages, and use the following tips when prompted by any script installers or configuration files.

  • Upload the PHP scripts into the httpdocs directory inside of your account. PHP applications outside of this folder will not be processed by the web server. We advise keeping each PHP program in its own sub-folder of the httpdocs directory to prevent conflicts with other applications.
  • Do not remove the .php extension from the filename of any PHP scripts that you upload or they will not be properly recognized by the server.
  • If your application requires changes to the PHP configuration, you can set them by creating a php.ini file in the httpdocs directory and making the configuration changes just as you would to the global php.ini file for the server. This functionality is simlar to .htaccess as it can be created in any directory, and changes applied to the file will effect the directory it is placed in, as well as all sub-directories.
  • If your script requires MySQL database access, you may be prompted for the following details:

    • MySQL Server or Hostname: localhost
    • MySQL username: This is the username that you have created using the control panel (under the Databases area).
    • MySQL Password: This is the password that you have assigned to the database user you created in the control panel’s Databases area.
    • MySQL Port: 3306
    • MySQL Database Name: This is the name of the database that you have created using phpMyAdmin; some PHP-based applications will create a database on their own without requiring you to do so. You can use any name that you wish for the database.
    • MySQL Table Prefix: Some applications will require a prefix for the table names that they create; use a unique prefix to denote the application that you are installing.