Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Web Development
  3. Linux, Apache, MySQL, PHP
  4. LAMP installation trouble

LAMP installation trouble

Scheduled Pinned Locked Moved Linux, Apache, MySQL, PHP
phplamplinuxhelp
2 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • G Offline
    G Offline
    Gjm
    wrote on last edited by
    #1

    I am trying to install LAMP in ubuntu
    For that
    I completed the following steps successfully in the order shown below

    1. sudo apt-get install apache2
    2. sudo /etc/init.d/apache2 start
    3. sudo apt-get install php5 libapache2-mod-php5
    4. sudo /etc/init.d/apache2 restart

    After the above steps I created a PHP page named test.php in /var/www
    The contents of test.php is

    I am 100% sure that there is no syntactical errors in the php code.
    But when I access the page using “http://localhost/test.php”, the following error showed

    Parse error: syntax error, unexpected T_STRING, expecting ',' or ';' in /var/www/test.php on line 2

    I don't know what to do at this situation. Please suggest me a solution.

    L 1 Reply Last reply
    0
    • G Gjm

      I am trying to install LAMP in ubuntu
      For that
      I completed the following steps successfully in the order shown below

      1. sudo apt-get install apache2
      2. sudo /etc/init.d/apache2 start
      3. sudo apt-get install php5 libapache2-mod-php5
      4. sudo /etc/init.d/apache2 restart

      After the above steps I created a PHP page named test.php in /var/www
      The contents of test.php is

      I am 100% sure that there is no syntactical errors in the php code.
      But when I access the page using “http://localhost/test.php”, the following error showed

      Parse error: syntax error, unexpected T_STRING, expecting ',' or ';' in /var/www/test.php on line 2

      I don't know what to do at this situation. Please suggest me a solution.

      L Offline
      L Offline
      Lost User
      wrote on last edited by
      #2

      http://www.howtoforge.com/ubuntu_lamp_for_newbies[^]

      1 Reply Last reply
      0
      Reply
      • Reply as topic
      Log in to reply
      • Oldest to Newest
      • Newest to Oldest
      • Most Votes


      • Login

      • Don't have an account? Register

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • World
      • Users
      • Groups