What to do to get phppgadmin working?

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

    What to do to get phppgadmin working?

    I installed postgres and phppgadmin debian unstable
    (on ProMepis RC4) but I can't seem to access it.

    I type http://localhost/phppgadmin
    and it says file not found.
    Look in /var/www and sure enough, its not there and neither
    are any files relating to the phppgadmin.

    How do I get this thing to work?

    The package has been installed, though not
    sure where its all gone into and what URL I should
    type in get access to it.

    Thanks
  • Tezza

    #2
    Re: What to do to get phppgadmin working?

    By default, Apache requires you to add the trailing slash at the end of
    a URL if you want to access a directory. For instance



    instead of



    Comment

    • 7

      #3
      Re: What to do to get phppgadmin working?

      Tezza wrote:
      [color=blue]
      > By default, Apache requires you to add the trailing slash at the end of
      > a URL if you want to access a directory. For instance
      >
      > http://localhost/phppgadmin/
      >
      > instead of
      >
      > http://localhost/phppgadmin[/color]


      did not work unfortunately, the /var/www/ directory
      does not contain anything related to phppgadmin
      (after installation) for anything like that to work.
      (The php4 is working as I can run test scripts.)

      Comment

      • Shane

        #4
        Re: What to do to get phppgadmin working?

        On Mon, 31 Oct 2005 05:49:27 +0000, 7 wrote:
        [color=blue]
        > Tezza wrote:
        >[color=green]
        >> By default, Apache requires you to add the trailing slash at the end of
        >> a URL if you want to access a directory. For instance
        >>
        >> http://localhost/phppgadmin/
        >>
        >> instead of
        >>
        >> http://localhost/phppgadmin[/color]
        >
        >
        > did not work unfortunately, the /var/www/ directory
        > does not contain anything related to phppgadmin
        > (after installation) for anything like that to work.
        > (The php4 is working as I can run test scripts.)[/color]

        the folder needs to be in /var/www/htdocs/
        As a workaround
        ln -s /var/www/phppgadmin /var/www/htdocs/phppgadmin

        however, read the docs, there might be a reason for the way they have
        installed
        also, you could edit httpd.conf

        HTH

        --
        Hardware, n.: The parts of a computer system that can be kicked

        The best way to get the right answer on usenet is to post the wrong one.

        Comment

        • 7

          #5
          Re: What to do to get phppgadmin working?

          Shane wrote:
          [color=blue]
          > On Mon, 31 Oct 2005 05:49:27 +0000, 7 wrote:
          >[color=green]
          >> Tezza wrote:
          >>[color=darkred]
          >>> By default, Apache requires you to add the trailing slash at the end of
          >>> a URL if you want to access a directory. For instance
          >>>
          >>> http://localhost/phppgadmin/
          >>>
          >>> instead of
          >>>
          >>> http://localhost/phppgadmin[/color]
          >>
          >>
          >> did not work unfortunately, the /var/www/ directory
          >> does not contain anything related to phppgadmin
          >> (after installation) for anything like that to work.
          >> (The php4 is working as I can run test scripts.)[/color]
          >
          > the folder needs to be in /var/www/htdocs/
          > As a workaround
          > ln -s /var/www/phppgadmin /var/www/htdocs/phppgadmin
          >
          > however, read the docs, there might be a reason for the way they have
          > installed
          > also, you could edit httpd.conf
          >
          > HTH[/color]


          It gets curios by the minute - I didn't try above, but I did
          find the /etc/apache2/conf.d/phpgadmin link
          to file /etc/phppgadmin/apache.conf and it says in there

          Alias /phppgadmin /usr/share/phppgadmin/
          <DirectoryMat ch /usr/share/phppgamin/>

          Which I assume means that

          should map to the /usr/share/phppgadmin/ directory
          and the default index.php file installed there should run.

          But no such luck!
          http://localhost/phppgadmin/index.php does not work either.

          Comment

          • Jerry Stuckle

            #6
            Re: What to do to get phppgadmin working?

            7 wrote:[color=blue]
            > Shane wrote:
            >
            >[color=green]
            >>On Mon, 31 Oct 2005 05:49:27 +0000, 7 wrote:
            >>
            >>[color=darkred]
            >>>Tezza wrote:
            >>>
            >>>
            >>>>By default, Apache requires you to add the trailing slash at the end of
            >>>>a URL if you want to access a directory. For instance
            >>>>
            >>>>http://localhost/phppgadmin/
            >>>>
            >>>>instead of
            >>>>
            >>>>http://localhost/phppgadmin
            >>>
            >>>
            >>>did not work unfortunately, the /var/www/ directory
            >>>does not contain anything related to phppgadmin
            >>>(after installation) for anything like that to work.
            >>>(The php4 is working as I can run test scripts.)[/color]
            >>
            >>the folder needs to be in /var/www/htdocs/
            >>As a workaround
            >>ln -s /var/www/phppgadmin /var/www/htdocs/phppgadmin
            >>
            >>however, read the docs, there might be a reason for the way they have
            >>installed
            >>also, you could edit httpd.conf
            >>
            >>HTH[/color]
            >
            >
            >
            > It gets curios by the minute - I didn't try above, but I did
            > find the /etc/apache2/conf.d/phpgadmin link
            > to file /etc/phppgadmin/apache.conf and it says in there
            >
            > Alias /phppgadmin /usr/share/phppgadmin/
            > <DirectoryMat ch /usr/share/phppgamin/>
            >
            > Which I assume means that
            > http://localhost/phppgadmin/
            > should map to the /usr/share/phppgadmin/ directory
            > and the default index.php file installed there should run.
            >
            > But no such luck!
            > http://localhost/phppgadmin/index.php does not work either.
            >[/color]

            Try

            Alias /phppgadmin/ /usr/share/phppgadmin/

            Match your trailing slashes!


            --
            =============== ===
            Remove the "x" from my email address
            Jerry Stuckle
            JDS Computer Training Corp.
            jstucklex@attgl obal.net
            =============== ===

            Comment

            • 7

              #7
              Re: What to do to get phppgadmin working?

              Jerry Stuckle wrote:
              [color=blue]
              > 7 wrote:[color=green]
              >> Shane wrote:
              >>
              >>[color=darkred]
              >>>On Mon, 31 Oct 2005 05:49:27 +0000, 7 wrote:
              >>>
              >>>
              >>>>Tezza wrote:
              >>>>
              >>>>
              >>>>>By default, Apache requires you to add the trailing slash at the end of
              >>>>>a URL if you want to access a directory. For instance
              >>>>>
              >>>>>http://localhost/phppgadmin/
              >>>>>
              >>>>>instead of
              >>>>>
              >>>>>http://localhost/phppgadmin
              >>>>
              >>>>
              >>>>did not work unfortunately, the /var/www/ directory
              >>>>does not contain anything related to phppgadmin
              >>>>(after installation) for anything like that to work.
              >>>>(The php4 is working as I can run test scripts.)
              >>>
              >>>the folder needs to be in /var/www/htdocs/
              >>>As a workaround
              >>>ln -s /var/www/phppgadmin /var/www/htdocs/phppgadmin
              >>>
              >>>however, read the docs, there might be a reason for the way they have
              >>>installed
              >>>also, you could edit httpd.conf
              >>>
              >>>HTH[/color]
              >>
              >>
              >>
              >> It gets curios by the minute - I didn't try above, but I did
              >> find the /etc/apache2/conf.d/phpgadmin link
              >> to file /etc/phppgadmin/apache.conf and it says in there
              >>
              >> Alias /phppgadmin /usr/share/phppgadmin/
              >> <DirectoryMat ch /usr/share/phppgamin/>
              >>
              >> Which I assume means that
              >> http://localhost/phppgadmin/
              >> should map to the /usr/share/phppgadmin/ directory
              >> and the default index.php file installed there should run.
              >>
              >> But no such luck!
              >> http://localhost/phppgadmin/index.php does not work either.
              >>[/color]
              >
              > Try
              >
              > Alias /phppgadmin/ /usr/share/phppgadmin/
              >
              > Match your trailing slashes![/color]


              No luck still.
              Tried many different combinations, including putting the
              commands into apach2.conf and restarting apache
              every time - still nothing.


              Comment

              • Jerry Stuckle

                #8
                Re: What to do to get phppgadmin working?

                7 wrote:[color=blue]
                > Jerry Stuckle wrote:
                >
                >[color=green]
                >>7 wrote:
                >>[color=darkred]
                >>>Shane wrote:
                >>>
                >>>
                >>>
                >>>>On Mon, 31 Oct 2005 05:49:27 +0000, 7 wrote:
                >>>>
                >>>>
                >>>>
                >>>>>Tezza wrote:
                >>>>>
                >>>>>
                >>>>>
                >>>>>>By default, Apache requires you to add the trailing slash at the end of
                >>>>>>a URL if you want to access a directory. For instance
                >>>>>>
                >>>>>>http://localhost/phppgadmin/
                >>>>>>
                >>>>>>instead of
                >>>>>>
                >>>>>>http://localhost/phppgadmin
                >>>>>
                >>>>>
                >>>>>did not work unfortunately, the /var/www/ directory
                >>>>>does not contain anything related to phppgadmin
                >>>>>(after installation) for anything like that to work.
                >>>>>(The php4 is working as I can run test scripts.)
                >>>>
                >>>>the folder needs to be in /var/www/htdocs/
                >>>>As a workaround
                >>>>ln -s /var/www/phppgadmin /var/www/htdocs/phppgadmin
                >>>>
                >>>>however, read the docs, there might be a reason for the way they have
                >>>>installed
                >>>>also, you could edit httpd.conf
                >>>>
                >>>>HTH
                >>>
                >>>
                >>>
                >>>It gets curios by the minute - I didn't try above, but I did
                >>>find the /etc/apache2/conf.d/phpgadmin link
                >>>to file /etc/phppgadmin/apache.conf and it says in there
                >>>
                >>>Alias /phppgadmin /usr/share/phppgadmin/
                >>><DirectoryMa tch /usr/share/phppgamin/>
                >>>
                >>>Which I assume means that
                >>>http://localhost/phppgadmin/
                >>>should map to the /usr/share/phppgadmin/ directory
                >>>and the default index.php file installed there should run.
                >>>
                >>>But no such luck!
                >>>http://localhost/phppgadmin/index.php does not work either.
                >>>[/color]
                >>
                >>Try
                >>
                >>Alias /phppgadmin/ /usr/share/phppgadmin/
                >>
                >>Match your trailing slashes![/color]
                >
                >
                >
                > No luck still.
                > Tried many different combinations, including putting the
                > commands into apach2.conf and restarting apache
                > every time - still nothing.
                >
                >[/color]

                It should work.

                At this point I suggest you ask in the Apache mailing lists. It doesn't
                look to be a PHP question - rather it looks like Apache configuration.

                --
                =============== ===
                Remove the "x" from my email address
                Jerry Stuckle
                JDS Computer Training Corp.
                jstucklex@attgl obal.net
                =============== ===

                Comment

                Working...