[PHP] LAMP Server setup help

2007-09-08 Thread Randy Patterson
Hey,

I have setup a test system on my home network in the past to develop & test 
PHP apps by installing an ISAPI PHP dll in IIS. It worked great but now I 
trying to setup a LAMP server on Debian/Lenny. I ran the following command;

aptitude install apache2 php5 libapache2-mod-php5

But got the following error message;

Setting up apache2-mpm-prefork (2.2.4-3) ...
Starting web server: apache2apache2: Syntax error on line 187 
of /etc/apache2/apache2.conf: Syntax error on line 3 
of /etc/apache2/httpd.conf: Cannot load /etc/apache2/modules/libphp5.so into 
server: /etc/apache2/modules/libphp5.so: cannot open shared object file: No 
such file or directory
 failed!
invoke-rc.d: initscript apache2, action "start" failed.

The error is pointing to this line in the httpd.conf;

LoadModule php5_module  modules/libphp5.so

But this directory or file don't exist in the /etc/apache2 directory.

Not sure how to fix this. I'm a newbie when it comes to the LAMP server apps. 
Any help would be appreciated.

Thanks, 
Randy

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] LAMP Server setup help

2007-09-08 Thread Randy Patterson
On Saturday 08 September 2007 12:20, Børge Holen wrote:
> On Saturday 08 September 2007 10:07, Randy Patterson wrote:
> > Hey,
> >
> > I have setup a test system on my home network in the past to develop &
> > test PHP apps by installing an ISAPI PHP dll in IIS. It worked great but
> > now I trying to setup a LAMP server on Debian/Lenny. I ran the following
> > command;
> >
> > aptitude install apache2 php5 libapache2-mod-php5
> >
> > But got the following error message;
> >
> > Setting up apache2-mpm-prefork (2.2.4-3) ...
> > Starting web server: apache2apache2: Syntax error on line 187
> > of /etc/apache2/apache2.conf: Syntax error on line 3
> > of /etc/apache2/httpd.conf: Cannot load /etc/apache2/modules/libphp5.so
> > into server: /etc/apache2/modules/libphp5.so: cannot open shared object
> > file: No such file or directory
> >  failed!
> > invoke-rc.d: initscript apache2, action "start" failed.
> >
> > The error is pointing to this line in the httpd.conf;
> >
> > LoadModule php5_module  modules/libphp5.so
> >
> > But this directory or file don't exist in the /etc/apache2 directory.
> >
> > Not sure how to fix this. I'm a newbie when it comes to the LAMP server
> > apps. Any help would be appreciated.
>
> Seems very much like some missinformation of some kind.
> Apache2 should not use any modules/  directory.
>
> Apache2 uses symlinks to enable modules, check if symlink exists.
> In the directory mods-enabled there should reside syms like this:
> php5.conf -> ../mods-available/php5.conf
> php5.load -> ../mods-available/php5.load
>
> Any other php relations within both httpd and apache2 conf is to be
> removed. It does not complain over missing php libs, it complains about
> syntax error.

 I think you have put your finger on the problem, those links are not there. I 
read this article on the subject;

http://www.debian-administration.org/articles/207

Which referred to these programs; a2ensite, a2dissite, a2enmod and a2dismod.

Although I have apache2 installed, these programs are not present. Are they 
part of another package? Not sure that I would get the links correct if I did 
it manually.

Thanks

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP] Can't execute PHP script

2007-09-08 Thread Randy Patterson
Hey,

[Note:] This is a different problem from the one I posted earlier today. 

I can't get my LAMP server setup to run PHP script.

As returned by apache2ctl, I am running;

Apache/2.2.4 (Debian) PHP/5.2.3-1+b1

I point my browser to;

http://localhost/apache2-default/test.php

The file test.php contains this code;


PHP Test




The browser outputs only;

PHP Test

But the script doesn't get executed. I posted this problem on debian-users, 
[because I installed apache2/php5 via debian packages], without any results. 
Thought I would try here before finding an apache list. Although I have 
programed in PHP off and on for a while I am a newbie to the setup side of 
things. Hopefully someone could point me in the right direction to trouble 
shoot this. 

Thanks,
Randy

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] Can't execute PHP script

2007-09-09 Thread Randy Patterson
On Saturday 08 September 2007 16:15, Børge Holen wrote:
> as previously stated...
>
> give us the printout of:
> dpkg -l|grep apache
> dpkg -l|grep php
>
> On Saturday 08 September 2007 14:55, Randy Patterson wrote:
> > Hey,
> >
> > [Note:] This is a different problem from the one I posted earlier today.
> >
> > I can't get my LAMP server setup to run PHP script.
> >
> > As returned by apache2ctl, I am running;
> >
> > Apache/2.2.4 (Debian) PHP/5.2.3-1+b1
> >
> > I point my browser to;
> >
> > http://localhost/apache2-default/test.php
> >
> > The file test.php contains this code;
> >
> > 
> > PHP Test
> > 
> > 
> > 
> >
> > The browser outputs only;
> >
> > PHP Test
> >
> > But the script doesn't get executed. I posted this problem on
> > debian-users, [because I installed apache2/php5 via debian packages],
> > without any results. Thought I would try here before finding an apache
> > list. Although I have programed in PHP off and on for a while I am a
> > newbie to the setup side of things. Hopefully someone could point me in
> > the right direction to trouble shoot this.
> >
> > Thanks,
> > Randy

Here they are;

dpkg -l|grep apache
ii  apache2   2.2.4-3Next 
generation, scalable, extendable web se
ii  apache2-doc   2.2.4-3documentation 
for apache2
ii  apache2-mpm-prefork   2.2.4-3Traditional 
model for Apache HTTPD
ii  apache2-utils 2.2.4-3utility 
programs for webservers
ii  apache2.2-common  2.2.4-3Next 
generation   , scalable, extendable web se
ii  libapache2-mod-php5   5.2.3-1+b1 server-side, 
HT   ML-embedded scripting languag

dpkg -l|grep php
ii  libapache2-mod-php5   5.2.3-1+b1 server-side, 
HTML-embedded scripting languag
ii  php5  5.2.3-1server-side, 
HTML-embedded scripting languag
ii  php5-common   5.2.3-1+b1 Common files 
for packages built from the php
ii  php5-mysql5.2.3-1+b1 MySQL module 
for php5

Thanks,
Randy

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP] Open Source BTS??

2007-11-15 Thread Randy Patterson
Hey,

I am needing to install a bug tracking system on a web server and looking for 
a good PHP open source solution. Looking for a pretty mature system that 
still has active development. Thanks for any suggestions.

Randy

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php