473,396 Members | 2,002 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

PHP on slackware

Hi,

I am trying to deploy drupal on my machine to play around with. Only to
discover to my horror that slackware ships with a php package that does not
include postgresql extension.

Frankly I am irritated. I don't want to compile any damn stuff. Slack has
worked so far for me but it's postgresql support is lamer than I could have
thought..

Does anybody have any idea what could be done, short of rolling my own php
package?

DAMN SLACK!!! Off to googling..

Shridhar

---------------------------(end of broadcast)---------------------------
TIP 2: you can get off all lists at once with the unregister command
(send "unregister YourEmailAddressHere" to ma*******@postgresql.org)

Nov 23 '05 #1
4 5320
Shridhar Daithankar said:
Hi,

I am trying to deploy drupal on my machine to play around with. Only to
discover to my horror that slackware ships with a php package that does not
include postgresql extension.

Frankly I am irritated. I don't want to compile any damn stuff. Slack has
worked so far for me but it's postgresql support is lamer than I could have
thought..

Does anybody have any idea what could be done, short of rolling my own php
package?

DAMN SLACK!!! Off to googling..

Shridhar


This isn't a php list, so forgive me for pointing out that php is very easy
to build and well worth the effort for many things you may want to include or
eliminate other than postgres support. For example, the pdf support was very
attractive here. BTW, I too reviewed drupal recently and ended up modifying
phpwebsite to work with postgres. Open source CMS still has a ways to go, but
phpwebsite looked like a good start next to the older packages.

Best,

Jim Wilson

--
Jim Wilson - IT Manager
Kelco Industries
PO Box 160
58 Main Street
Milbridge, ME 04658
207-546-7989 - FAX 207-546-2791
http://www.kelcomaine.com
---------------------------(end of broadcast)---------------------------
TIP 7: don't forget to increase your free space map settings

Nov 23 '05 #2
On Fri, 5 Mar 2004, Jim Wilson wrote:
Shridhar Daithankar said:
Hi,

I am trying to deploy drupal on my machine to play around with. Only to
discover to my horror that slackware ships with a php package that does not
include postgresql extension.

Frankly I am irritated. I don't want to compile any damn stuff. Slack has
worked so far for me but it's postgresql support is lamer than I could have
thought..

Does anybody have any idea what could be done, short of rolling my own php
package?

DAMN SLACK!!! Off to googling..

Shridhar


This isn't a php list, so forgive me for pointing out that php is very easy
to build and well worth the effort for many things you may want to include or
eliminate other than postgres support. For example, the pdf support was very
attractive here. BTW, I too reviewed drupal recently and ended up modifying
phpwebsite to work with postgres. Open source CMS still has a ways to go, but
phpwebsite looked like a good start next to the older packages.


Note that there IS a list just for postgresql & php:
pg*******@postgresql.org

It welcomes such questions and discussions.

---------------------------(end of broadcast)---------------------------
TIP 8: explain analyze is your friend

Nov 23 '05 #3
Shridhar,

I've been running Slackware 9.0 for about a year and have been pretty happy,
but -- as with any distribution -- I have had to compile when I wanted
something that was not provided.

Generally speaking, any time you want to make a custom setup that someone
else didn't anticipate, you have to run the compiler. Please remember, the
developers of Slackware (and every other piece of OpenSource software) are
providing a free service. They deserve nothing but praise for giving their
work away.

Also, if they included every possible option in the pre-compiled binary
packages, those packages would become unreasonably large and inefficient. So
they include only the most common options.

I suggest rolling up your sleeves:

-- download the PHP tarball (from the PHP project page),
-- untar it in /usr/local/src, then cd into the directory
-- type "./configure --help | more" (no quotes) and read it.
-- Take notes on what options you want to include with configure. They will
all go together on the command line when you run ./configure. For example,
there might be an option "--with-pgsql" or some such, optionally followed by
"=" [the location of the pgsql libraries on your system].

Then go for it, it's not that hard. Once you've run "./configure" with the
options that you want, you typically will just type "make", then "make
install". While the compiler is running, you can always continue Googling.
If ./configure chokes, find out why and try to fix the problem. That
sometimes requires a little sleuthing, but almost never takes more than a
couple days.

Alternatively, perhaps you could offer to pay the developer of Slackware (or
someone else) a consulting fee to roll you a custom version.

Shawn Harrison

P.S. I apologize if others consider the original post too off-topic for a
reply -- tell me if you think so. But it seemed necessary to address the
underlying assumptions. Thanks.---SAH

----- Original Message -----
From: "Shridhar Daithankar" <sh******@frodo.hserus.net>
To: <pg***********@postgresql.org>
Sent: Friday, March 05, 2004 9:50 AM
Subject: [GENERAL] PHP on slackware
....
Frankly I am irritated. I don't want to compile any damn stuff. Slack has
worked so far for me but it's postgresql support is lamer than I could have thought..
......
DAMN SLACK!!! Off to googling..

Shridhar

---------------------------(end of broadcast)---------------------------
TIP 3: if posting/reading through Usenet, please send an appropriate
subscribe-nomail command to ma*******@postgresql.org so that your
message can get through to the mailing list cleanly

Nov 23 '05 #4
On Saturday 06 March 2004 03:09, Shawn Harrison wrote:
Shridhar,

I've been running Slackware 9.0 for about a year and have been pretty
happy, but -- as with any distribution -- I have had to compile when I
wanted something that was not provided.
I know. But the problem is you need to adjust so many parameters so that n
number of subsystems work correct. That is why I rely upon distributions.
Otherwise I would have been running LFS by now..

I like slack. But it's support for postgresql is pathetic. Installing
postgresql in itself is easy for me but php.. oops.. that is bit too
complicated to get it correct first time..
Generally speaking, any time you want to make a custom setup that someone
else didn't anticipate, you have to run the compiler. Please remember, the
developers of Slackware (and every other piece of OpenSource software) are
providing a free service. They deserve nothing but praise for giving their
work away.
If you tell me a mailing list where slackware is discussed I would get their
and offer my services for enabling postgresql in every possible way.

I haven't found it where contents of next slack version is discussed.
Slackware still ships with 2.4.x kernels. 2.6 is still not there in current.
Still it ships linuxthreads while every other distro. on earth including
debian has NPTL at least in testing branch.. Certainly I would like to
discuss and contribute about these things..
Also, if they included every possible option in the pre-compiled binary
packages, those packages would become unreasonably large and inefficient.
So they include only the most common options.
I would have bought that argument but I don't think including postgresql
support would bloat their distro. Just a personal opinion..
I suggest rolling up your sleeves:

-- download the PHP tarball (from the PHP project page),


I did. My bigger worry was to get php config right. Fortunately php -i is a
wonderful option and I got everything I needed there..

For the record, I configured it as follows, for a CVS tip postgresql build

../configure --prefix=/usr --with-apxs --enable-force-cgi-redirect
--enable-fastcgi --sysconfdir=/etc
--enable-discard-path --with-config-file-path=/etc/apache --enable-safe-mode
--with-openssl
--enable-bcmath --with-bz2 --with-pic --enable-calendar --enable-ctype
--with-gdbm
--with-db3 --enable-dbase --enable-ftp --with-iconv --with-gd
--enable-gd-native-ttf --with-jpeg-dir=/usr
--with-png --with-gmp --with-mysql=shared,/usr --with-xml=shared,/usr
--with-gettext=shared,/usr
--with-mm=/usr --enable-trans-sid --enable-shmop --enable-sockets
--with-regex=php
--enable-sysvsem --enable-sysvshm --enable-yp --enable-memory-limit
--with-tsrm-pthreads
--enable-shared --disable-debug --with-zlib=/usr
--with-pgsql=shared,/usr/local

Then
- make. took 2 minutes 10 sec..:-)
- Quick checkinstall
- copy php.ini-dist to /etc/apache
- set the extension path correctly
to /usr/lib/php/extensions/no-debug-non-zts-20020429/
- enable postgresql extension.
- restart apache..

And I am up.. Thanks for all the help..It was much needed..

This wasn't a crib against slack any more than not giving me a choice in a
otherwise beautiful distro. Just couldn't help it..

Shridhar

---------------------------(end of broadcast)---------------------------
TIP 4: Don't 'kill -9' the postmaster

Nov 23 '05 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

6
by: yarmfelder | last post by:
Hi all, I noticed that with Slackware they don't include mod_php in the latest distro. I also noticed some talk on the web that there was an insecurity issue with mod_php in a previous version...
6
by: Angelo Della Penna | last post by:
Hi all, for anyone interested, I've just successfully installed Oracle 9iR2 (9.2.0.4.0) on Linux Slackware 9.0 (gcc-3.2.2, kernel 2.4.20). Actually, the installation of base release 9.2.0.1.0...
1
by: wibawanto | last post by:
Can I install Posgresql on slackware linux? This package doesn't include with slackware. I have visited on postgresql website, but it only for Red Hat linux. Where can I get postgresql for Slack?
0
by: tevans | last post by:
I'm using Slackware GNU/Linux 9.0 on an Intel PII 266 machine that's SMP capable, but only with one CPU installed, and 64MB of RAM. It's basically a small test system that I play around with in...
5
by: news | last post by:
I just installed Slackware 10.1 Still need to install some missing needed libraries, but I think that's unrelated. Every time it boots up, or I try "/etc/rc.d/rc.mysqld start" I get this: ...
2
by: Ludis | last post by:
Hi all Im having a problem im my class "utils". Im using linux slackware 8.0 (old? yes: so old). i trying g++ (gnu c++ compiler) 3.1 and glib default of Slack 8.0. I cant migrate this server...
8
by: Fragemann | last post by:
Hi all, I installed Apache, enabled PHP and made sure that MySQL starts when I boot up. Now I am seeing a bizarre problem. The following HTML produces the wrong response from PHP. How to fix?...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.