All Products
Document Center

Build a LAMP development environment

Last Updated: Feb 09, 2018

1. Create a server

Open the Simple Application Server Purchase page, make your selections for the listed options. For Image, select LAMP.6354c12a-25eb-4a45-a027-4ca519ef449c.png

2. View application information

  1. In the navigation pane of Simple Application Server console, select Servers > LAMP.811de245-e648-4e96-9c85-1976a4385b5f.png

  2. In the navigation pane, select Application > App Details.

  3. View LAMP Information, click Copy, then click Connect.803ff6e2-df8d-4a4b-9f15-3c3553679981.png

  4. Paste the command you copied into the command prompt, press Return.
    You can see the information of the LAMP development environment.

3. View your settings of the LAMP server

  1. Switch to a root user in the remote connection window.

    1. sudo su root
  2. Log on to the default site, and go to the root directory webroot_dir.

    1. cd /home/www/htdocs
  3. Open a new file phpinfo.php.

    1. vim phpinfo.php
  4. Enter the following command in the vim interface.
    1. <?php
    2. phpinfo();
    3. ?>
  5. Press ESC to save and close the file.

    1. :wq!
  6. You can visit http:// domain name/phpinfo.php or http:// server IP address/phpinfo.php to view your PHP settings.
    See Domain & DNS to have your domain name resolved.b2ce171a-d380-45d9-92a7-dd53062803dd.png