[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: apache and phpwebsite



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.











Reply to: