Re: apache and phpwebsite

From: Harland Christofferson (debian-user_at_zerocrossings.com)
Date: 12/04/04

  • Next message: Sridhar M.A.: "Re: M$ USB-key"
    Date: Sat, 04 Dec 2004 08:06:21 -0500
    To: debian-user@lists.debian.org
    
    

    At Friday, 15 October 2004, psychoelmo <psychoelmo@gmail.com> wrote:

    >On Thu, 14 Oct 2004 08:35:21 -0400, Harland Christofferson
    ><debian-user@zerocrossings.com> wrote:
    >> i am trying to virtual host using apache. i have several hosts
    already
    >> but, for some reason, I haven't been able to get phpwebsite to work
    >> out.
    >>
    >> in /etc/httpd.conf i have:
    >>
    >> Listen 8080
    >>
    >> .
    >> .
    >> .
    >>
    >> #
    >> # Alias for phpwebsite added 10/12/04 by hhc
    >> #
    >>
    >> Alias /setup/index.html /var/www/phpwebsite-0.9.3-4-full/setup/index.
    php
    >> <Directory /var/www/phpwebsite-0.9.3-4-full/setup/index.php>
    >> Options ExecCGI Includes FollowSymlinks
    >> AddHandler cgi-script .php .cgi .sh .pl
    >> </Directory>
    >>
    >> Alias /phpwebsite-0.9.3-4-full/index.html /var/www/phpwebsite-0.9.
    >> 3-4-full/index.php
    >> <Directory /var/www/phpwebsite-0.9.3-4-full/index.php>
    >> Options ExecCGI Includes FollowSymlinks
    >> AddHandler cgi-script .php .cgi .sh .pl
    >> </Directory>
    >>
    >> .
    >> .
    >> .
    >>
    >> <VirtualHost *:8080>
    >> DocumentRoot /var/www/phpwebsite-0.9.3-4-full
    >> </VirtualHost>
    >>
    >> i would think that the url: http://www.mydomain.com:8080/ would
    present
    >> the aliased path /var/www/phpwebsite-0.9.3-4-full/index.php
    >>
    >> but a server error:
    >>
    >> Warning: main(PEAR.php): failed to open stream: No such file or
    directory
    >> in /var/www/phpwebsite-0.9.3-4-full/core/Core.php on line 33
    >>
    >> Fatal error: main(): Failed opening required 'PEAR.php' (include_path='.

    >> :/lib/pear/') in /var/www/phpwebsite-0.9.3-4-full/core/Core.php on
    >> line 33
    >>
    >> the core/Core.php file appears w/ r-x permissions in the path.
    >>
    >
    >you have the required pear libs installed? pws also requires more
    >memory for php than the default.. (they recommend 12mb, default is 8;
    >i run with 16mb because of another script package i run).
    >
    >see http://phpwebsite.appstate.edu/downloads/rsync/stable/phpwebsite/docs/REQUIREMENTS.

    >txt
    >and http://phpwebsite.appstate.edu/downloads/rsync/stable/phpwebsite/docs/PEARERRORS.

    >txt
    >
    >and instead of aliasing the filename, and setup directory separately,
    >just one alias for the phpwebsite root is enough. also, if pws is not
    >set up, it will run the web install script automatically if you hit
    >the site root...
    >
    >havent installed a pws in awhile.. was going to soon anyhow to see
    >what's new, so why not now? :)
    >
    >here's a quick rundown of my pws install process (exactly what i just
    >did while writing this), using sarge and apache2, etc.. installed from
    >deb's repositories (along with php4-pear, php4-mysql, php4 via apache2
    >mod, gd, im, etc..) note that what i installed with apt(itude) met the
    >pear requirements for pws, i didnt have to install/use the pear libs
    >that come with pws.
    >
    >i started an ssh session as my normal user, which is where i install
    >web scripts i'm testing.
    >cd ~/public_html
    >mkdir pws
    >cd pws
    >
    >wget http://phpwebsite.appstate.edu/install
    >
    >chmod +x install
    >
    >../install
    >
    >(give it a few minutes, there's no screen output while it downloads
    >the tarball, and thats the first thing the script does)
    >
    >rm install
    >
    >(then as superuser... edit php and apache configs)
    >
    >nano -w /etc/php4/apache2/php.ini
    > ctrl-w search for: memory
    > increase memory_limit to 12M or higher (default is 8M)
    >(i didnt have to do this, as mine was already increased for something
    else)
    >
    >nano -w /etc/apache2/sites-enabled/pws-test
    > alias /pws /home/admin/public_html/pws
    > <directory /home/admin/public_html/pws>
    > options followsymlinks multiviews
    > allowoverride fileinfo
    > </directory>
    >(you'd put this in your virtualhost configuration)
    >
    >restart apache2
    >
    >create db for pws via phpmyadmin (or manually if you prefer)
    >
    >browse to http://pwsroot (as defined by the alias, i.e.
    >http://www.mydomain.com/pws in this example)
    > if pws is not configured, the web install script starts automatically.

    >

    Thanks. I finally had some time and motivation to get back to this
    task. I think I have it worked out.

    -- 
    To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org 
    with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
    

  • Next message: Sridhar M.A.: "Re: M$ USB-key"

    Relevant Pages

    • Re: apache and phpwebsite
      ... > i am trying to virtual host using apache. ... pws also requires more ... here's a quick rundown of my pws install process (exactly what i just ... the web install script starts automatically. ...
      (Debian-User)
    • Re: Installing OpenVMS Alpha on PWS 600au without CD-ROM
      ... >> Now I have read that I can install OpenVMS on the PWS via the network ... >> How must I accomplish this to get OpenVMS installed on the local disk on the ... > to PWS, autogen. ... If PWS will boot over the network, you can add a 2nd node for it on the ...
      (comp.os.vms)
    • Re: FP 98 to FP 03 upgrade woes
      ... PWS is not supported by Windows 2000 or Windows XP. ... I went to install ... > http://thetalisman/bernardlocal was good and I could publish to the church> web site and I could publish from the live website into my local machine. ...
      (microsoft.public.frontpage.client)
    • Re: Removing Unix for linux
      ... Which led to some disagreement with the install; ... > wanted to give me 400 MB swap, ... I have 1,5GB on PWS which I took on a stock (and there was even a spare ... For sure, there's no speed improvement between 1 and 1,5GB. ...
      (comp.os.linux.alpha)