Announcement

Collapse
No announcement yet.

Apach2 +php5 problem [SOLVED]

Collapse
This topic is closed.
X
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Apach2 +php5 problem [SOLVED]

    Hello everybody,

    I recently got a book about php, so I thought I should learn it.
    So i thought I should install apache and php. So I turned the graphical package manager (aptitude)
    and I found "LAMP server" and I installed it. Well at least I thought so. i wrote a small php script to see if I have installed it correctly.
    Code:
     <html>
    <head>
    <title>PHP Info</title>
    <meta content="">
    <style></style>
    </head>
    <body>
    <?php
    phpinfo();
    ?>
    </body>
    </html>
    Unfortunately I don't see what I should see. When I'm opening http://localhost/php/phpinfo.php
    I get a dialog to save it. So I figure i didn't install it correctly. I tried reinstalling, but that didn't help.
    So I figured I need to add some lines into "/etc/apache2/apache2.conf" file.
    But I don't know what to add
    Please help me
    Join the dark side<br />---------------------------------------------------------------------<br />Samsung NC10 netbook running<br />PCLinuxOS 2010 // Win XP

    #2
    Re: Apach2 +php5 problem

    i don't see any lamp server in my repositories.
    and i have main, restricted, universe and multiverse enabled...
    though, simply by installing apache2 and libapache2-mod-php5, things work like a charm.
    if you need mysql as well, you'll likely need...
    well, mysql, of course.
    and php5-mysql.
    that should be it, really.
    hth
    gnu/linux is not windoze

    Comment


      #3
      Re: Apach2 +php5 problem

      Originally posted by jankushka
      i don't see any lamp server in my repositories.
      and i have main, restricted, universe and multiverse enabled...
      though, simply by installing apache2 and libapache2-mod-php5, things work like a charm.
      if you need mysql as well, you'll likely need...
      well, mysql, of course.
      and php5-mysql.
      that should be it, really.
      hth
      These things were installed when I installed the lamp server. The funny thing is that such package only exists in aptitude.


      Anyway, I still need what should I write in apache2.conf

      EDIT: All I needed to do is link "php5.load" from /etc/apache2/mods-available
      to /etc/apache2/mods-enabled

      Anyway, thanks for help
      Join the dark side<br />---------------------------------------------------------------------<br />Samsung NC10 netbook running<br />PCLinuxOS 2010 // Win XP

      Comment


        #4
        Re: Apach2 +php5 problem [SOLVED]

        also, clear your browser cache before trying a php app again
        heh

        Comment

        Working...
        X