php-install Digest 27 Jan 2002 09:45:53 -0000 Issue 670
Topics (messages 5765 through 5770):
PHP + Postgresql + Linux = Frustration
5765 by: Mike DiChiappari
5769 by: Charles Marcus
5770 by: Yasuo Ohgaki
Re: XSLT/Sablotron problems
5766 by: Mattias Nordstrom
Thanks for the help, now I have another minor problem.
5767 by: Julius Najzer
5768 by: Mike Maltese
Administrivia:
To subscribe to the digest, e-mail:
[EMAIL PROTECTED]
To unsubscribe from the digest, e-mail:
[EMAIL PROTECTED]
To post to the list, e-mail:
[EMAIL PROTECTED]
----------------------------------------------------------------------
--- Begin Message ---
Hello,
I am rather new to Linux but an old timer at software development. I am
investigating alternate platforms for future development for my company.
Linux is at the top of the list.
I am trying to get a server setup with a db (PostgreSQL), web server
(Apache), and some sort of web scripting language (PHP). I can not make
everything work together. PHP4 won't work out-of-the-box with PostgreSQL
because PHP doesn't have support for PosgreSQL built in at compile time (why
not just build everything into when it was initially built?).
So I get the sources to PHP and try to build. However, it wants the sources
(header files) for Apache.
At this point I don't want to go any further. Eventually, I'll probably
need the sources for everything.
Is there an easy way to do this sort of stuff on Linux or is it better to
just buy off the shelf products that work?
Thanks,
Mike
--- End Message ---
--- Begin Message ---
Hi Mike,
I understand your frustration. I am in a similar situation. We have a DB that was
developed using PostgreSQL, that has a web-based front-end (Apache/PHP). I was the
designer of the system, but I am not a programmer. Well, up to now, the guys that
designed the system have been hosting us, but my boss wants me to take this thing over
sometime soon, so I am in the process of learning.
One thing I will say - if you are going to use Linux, you will *need* to learn how to
compile programs from the source. It really isn't that hard - its just different.
I'm actually having fun, now that I'm getting familiar with the environment (I'm a
Winbloze Admin making the switch).
So, my advice is, just learn it. You won't be sorry. Linux is so much more stable,
and being able to make modifications to the app if it doesn't do something you want is
invaluable. Also, not having to keep up with software licenses is such a relief.
If you really don't want to learn the nuts-n-bolts of linux, and just want to program,
then just hire a Linux guy from your local Linux User Group to do the dirty work.
Stuff like this doesn't take much time at all for someone who knows what they are
doing. Once you're comfortable with them, you can give them remote access - this way,
they only charge you for actual work they do - if somethinbg takes two hours to
compile, they won't have to charge you for that time (unless they are dishonest).
Just my .02 clad coins worth...
Charles
> -----Original Message-----
> From: Mike DiChiappari [mailto:[EMAIL PROTECTED]]
> Sent: Saturday, January 26, 2002 12:15 PM
> To: [EMAIL PROTECTED]; [EMAIL PROTECTED]
> Subject: [PHP-INST] PHP + Postgresql + Linux = Frustration
>
>
> Hello,
>
> I am rather new to Linux but an old timer at software
> development. I am
> investigating alternate platforms for future development for
> my company.
> Linux is at the top of the list.
>
> I am trying to get a server setup with a db (PostgreSQL), web server
> (Apache), and some sort of web scripting language (PHP). I
> can not make
> everything work together. PHP4 won't work out-of-the-box
> with PostgreSQL
> because PHP doesn't have support for PosgreSQL built in at
> compile time (why
> not just build everything into when it was initially built?).
>
> So I get the sources to PHP and try to build. However, it
> wants the sources
> (header files) for Apache.
>
> At this point I don't want to go any further. Eventually,
> I'll probably
> need the sources for everything.
>
> Is there an easy way to do this sort of stuff on Linux or is
> it better to
> just buy off the shelf products that work?
>
> Thanks,
> Mike
>
>
>
>
> --
> PHP Install Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> To contact the list administrators, e-mail:
> [EMAIL PROTECTED]
>
--- End Message ---
--- Begin Message ---
Mike Dichiappari wrote:
> Hello,
>
> I am rather new to Linux but an old timer at software development. I am
> investigating alternate platforms for future development for my company.
> Linux is at the top of the list.
>
> I am trying to get a server setup with a db (PostgreSQL), web server
> (Apache), and some sort of web scripting language (PHP). I can not make
> everything work together. PHP4 won't work out-of-the-box with PostgreSQL
> because PHP doesn't have support for PosgreSQL built in at compile time (why
> not just build everything into when it was initially built?).
The manual page for PostgreSQL did not exaplain about --with-pgsql
option just like most modules' manual pages didn't :)
However, I think install section explains how to selectively install
modules.
>
> So I get the sources to PHP and try to build. However, it wants the sources
> (header files) for Apache.
It *MUST* be there, if you want Apache SAPI. It's the way should be.
>
> At this point I don't want to go any further. Eventually, I'll probably
> need the sources for everything.
If you follow installation instruction closely (PostgreSQL, Apache, PHP)
there would be no problems.
Make sure you build/install them with this order. PostgreSQL->Apache->PHP.
>
> Is there an easy way to do this sort of stuff on Linux or is it better to
> just buy off the shelf products that work?
Install from RPM or like, they should work out of box.
BTW, do not cross post :)
--
Yasuo Ohgaki
Please CC me when you reply to news/list messages.
Do not reply only to me :)
--- End Message ---
--- Begin Message ---
Mattias Nordstrom wrote:
> Hi,
>
> I just compiled PHP with Sablotron, and everything worked great.
> However, when I run Apache, I get the following error:
>
> Cannot load /etc/httpd/modules/libphp4.so into server:
> /usr/lib/libsablot.so.0: undefined symbol: JS_PropertyStub
>
> I have installed Sablotron from the RPM provided at their page, and I've
> also installed Mozilla's JS engine. The SabTest package says everything
> is ok.
>
> Can anyone shed some light on this?
>
> --
> Mattias Nordström
> [EMAIL PROTECTED]
> -www.ftlight.net-
>
Hi again.
Just thought I should inform you that Sablotron works now with PHP. I
recompiled it with JavaScript disabled.
--
Mattias Nordström
--- End Message ---
--- Begin Message ---
this one shouldn't be too hard. got PHP working on my system fianlly. but
when I load the page up it won't load index.php it instead it llooks for an
index.html and when it can't find one it just displays all the files in the
root system folder. been looking around in the httpd.conf file but can't
find anything to set what file for it to look for.
--- End Message ---
--- Begin Message ---
<IfModule mod_dir.c>
DirectoryIndex index.html index.php
</IfModule>
If you want to turn auto-indexing (listing of folder contents) off, just
find the Directory directive for your document root and remove Indexes from
Options. It should look something like this:
<Directory />
AllowOverride None
Options MultiViews FollowSymLinks
Order allow,deny
Allow from all
</Directory>
----- Original Message -----
From: "Julius Najzer" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Saturday, January 26, 2002 10:02 AM
Subject: [PHP-INST] Thanks for the help, now I have another minor problem.
> this one shouldn't be too hard. got PHP working on my system fianlly. but
> when I load the page up it won't load index.php it instead it llooks for
an
> index.html and when it can't find one it just displays all the files in
the
> root system folder. been looking around in the httpd.conf file but can't
> find anything to set what file for it to look for.
>
> --
> PHP Install Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> To contact the list administrators, e-mail: [EMAIL PROTECTED]
>
>
--- End Message ---