Page 1 of 2 12 LastLast
Results 1 to 10 of 20

Thread: LAMP issue

  1. #1
    Join Date
    Nov 2012
    Beans
    8

    LAMP issue

    hello,
    i installed ubuntu and lamp on a virtualbox. put all my files in var/www and when i got to index.php it only reads html or at least thats what it looks like. my website wont run properly for some reason. php5 is installed i can echo "anything" but it seems like it wont read it. what am i doing wrong?

  2. #2
    Join Date
    Sep 2006
    Beans
    7,463
    Distro
    Lubuntu Development Release

    php issue

    Welcome.

    About your PHP issue, check to be sure that you have installed the package PHP5. It will give you basic PHP support.

    Code:
    sudo apt-get install php5
    Then check to ensure that you have enabled Apache's mod_php.

    Code:
    sudo a2enmod php5
    Then you can try putting some test code in index.php.

    Code:
    <?php
    phpinfo( );
    ?>
    Does that code produce output for you?

  3. #3
    Join Date
    Nov 2012
    Beans
    8

    Re: LAMP issue

    it tells me that they are all installed and working. phpinfo() also works but my pages are not displaying. i did a complete transfer so its fully functional from wamp

  4. #4
    Join Date
    Oct 2009
    Beans
    Hidden!
    Distro
    Ubuntu 12.04 Precise Pangolin

    Re: LAMP issue

    Check the apache error log in /var/log/apache2/
    Come to #ubuntuforums! We have cookies! | Basic Ubuntu Security Guide

    Tomorrow's an illusion and yesterday's a dream, today is a solution...

  5. #5
    Join Date
    Nov 2008
    Beans
    Hidden!
    Distro
    Ubuntu Development Release

    Re: LAMP issue

    moved to server platforms
    Ubuntu Forums Moderation Staff
    So don't be ashamed to wear your crown, you're a king you're a queen inside and out

  6. #6
    Join Date
    Sep 2006
    Beans
    7,463
    Distro
    Lubuntu Development Release

    php issue

    Quote Originally Posted by CharlesA View Post
    Check the apache error log in /var/log/apache2/
    One easy way to do that is to open up a terminal and then use tail to track the end of the error log.

    Code:
    tail -f  /var/log/apache2/error.log
    That way you can have the web browser and error log side by side.

  7. #7
    Join Date
    Oct 2009
    Beans
    Hidden!
    Distro
    Ubuntu 12.04 Precise Pangolin

    Re: php issue

    +1 Lars.
    Come to #ubuntuforums! We have cookies! | Basic Ubuntu Security Guide

    Tomorrow's an illusion and yesterday's a dream, today is a solution...

  8. #8
    Join Date
    Nov 2012
    Beans
    8

    Re: php issue

    now we're getting somewhere. I got error opening include file in php. but it opens properly in wamp. do i need to change permissions in lamp for files and folders?

  9. #9
    Join Date
    Nov 2009
    Location
    Doiminican Republic
    Beans
    24
    Distro
    Ubuntu 10.04 Lucid Lynx

    Re: LAMP issue


  10. #10
    Join Date
    Oct 2009
    Beans
    Hidden!
    Distro
    Ubuntu 12.04 Precise Pangolin

    Re: php issue

    Quote Originally Posted by jeger003 View Post
    now we're getting somewhere. I got error opening include file in php. but it opens properly in wamp. do i need to change permissions in lamp for files and folders?
    Check the permissions before messing with anything else.

    Can you post the exact error message from the log?
    Come to #ubuntuforums! We have cookies! | Basic Ubuntu Security Guide

    Tomorrow's an illusion and yesterday's a dream, today is a solution...

Page 1 of 2 12 LastLast

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •