php-5.0.4 installation: What am I missing?


 
Thread Tools Search this Thread
Top Forums UNIX for Dummies Questions & Answers php-5.0.4 installation: What am I missing?
# 1  
Old 09-26-2005
php-5.0.4 installation: What am I missing?

THE GOAL: To use xsl(t) functions with php.

Server info: I'm on dreamhost shared hosting (everybody loves dreamhost) but they don't have php with xsl.

What's the deal: I tried to get xsl working using this guide, but then noticed that they were using php4, and so I was like "Ok screw that" and read up on a little php5. According to the PHP XSL manual page, all I need to do to get it working is include the --with-xsl=$HOME/libxslt tag. Since I'm on a shared server, though, I have to put PHP in the right place, which means a few more simple tags. Here's the ./configure that I came up with, no errors:
Code:
./configure \
--with-prefix=$HOME/php5 \
--with-xsl=$HOME/libxslt \
--enable-force-cgi-redirect \
--with-config-file-path=$HOME/php5/etc/php.ini \
--enable-mysql

But then I go make and it spits out the following after a bunch of normal output:

Code:
/home/[my account]/downloads/src/php-5.0.4/main/output.c:421: undefined reference to `php_ob_gzhandler_check'
collect2: ld returned 1 exit status
make: *** [sapi/cgi/php] Error 1

Any idea what the problem is? I've been stuggling with this for a while now.


BONUS QUESTIONS: unnecessary questions that will make me consider you a very nice person if you answer them :]
1. The ./configure gives me a big scary warning if I don't put --enable-force-cgi-redirect in there. What does that do?


The compassion of a thousand merciless suns will rain down upon you if you give me a hand (please).

EDIT: If there is a simpler way to use xslt functions without ASP, then by all means, let me know.
# 2  
Old 09-26-2005
What about configuring with --with-zlib ?

I have been using PHP5+XSLT for some time now, and I have compiled PHP5 on literally a dozen servers at work with no problems at all. Also make sure your PHP tree is clean. i.e. Do a "make distclean" between compilations as you experiment. It sometimes matters.

For your second question, I'm not totally sure, but just in case you have missed this page:
http://hk.php.net/security.cgi-bin
# 3  
Old 09-27-2005
Quote:
Originally Posted by cbkihong
What about configuring with --with-zlib ?

I have been using PHP5+XSLT for some time now, and I have compiled PHP5 on literally a dozen servers at work with no problems at all. Also make sure your PHP tree is clean. i.e. Do a "make distclean" between compilations as you experiment. It sometimes matters.

For your second question, I'm not totally sure, but just in case you have missed this page:
http://hk.php.net/security.cgi-bin
Good call on the make distclean, that cleared up the make problems. However, I'm now getting an error when I make install:
Code:
Installing PHP SAPI module:       cgi
Installing PHP CGI into: /usr/local/bin/
cp: cannot create regular file `/usr/local/bin/#INST@17676#': Permission denied
make: *** [install-sapi] Error 1

This looks to me like it's something simple like a missing prefix for the files, but as you can see in my configure above, I've got all the prefixes I can think of. I'm on shared hosting, so as far as I can tell, everything has to be installed to the non-default location of my account.
# 4  
Old 09-27-2005
Use --prefix instead of --with-prefix.
# 5  
Old 09-27-2005
Quote:
Originally Posted by cbkihong
Use --prefix instead of --with-prefix.
That's got it, thanks! PHP compiled seemingly successfully, and even though the phpinfo() still isn't working, I'm guessing that's a problem with .htaccess or something.
 
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Need help in adding missing tag in php pages

hi, I am still a newbie on ssh but trying hard. my friends website was hit by some virus which included a long encrypted malware code on each and every php file she had. I was able to use sed command via ssh to remove the malware codes but now most pages don't have a opening <?php tag. i... (8 Replies)
Discussion started by: netatma
8 Replies

2. Web Development

PHP installation on Ubuntu 12.04

Dear all I am new to php, I have already running tomcat web server on port 80, following are the details of tomcat /usr/local/www/html/TOMCAT_DEMO/tomcat whether it is possible to install and configure php without using sudo apt-get install php5 ??? please someone guide me to start php (1 Reply)
Discussion started by: Akshay Hegde
1 Replies

3. Solaris

Solaris 10 Installation - Disks missing, and Raid

Hey everyone. First, let me start by saying I'm primarily focused on linux boxes, and just happened to get pulled into building two T5220's. I'm not super educated on sun boxes. Both T5220's have 8 146GB 15k SAS drives. Inside the service processor, I can run SHOW /SYS/HDD{0-7} and they all come... (2 Replies)
Discussion started by: msarro
2 Replies

4. Solaris

problem in php installation..

hi am senthil, am trying to install PHP in my solaris 10 x86 ... i installed oracle,apache,tomcat,mysql .. the only thing am missing is PHP.. i tried to install php using ./configure .. my ./configure command.. ./configure \ --with-apxs=/usr/apache/bin/apxs \... (4 Replies)
Discussion started by: senkerth
4 Replies

5. Solaris

php installation steps..

hi .. i need procedure to install php on my solaris server.. i spent more than two weeks for this installation procedure.. but still couldn find a proper solution.. i have successfully enabled apache,tomcat,mysql,oracle .. this is the only issue am having rite now and its bothering me a lot.. ... (3 Replies)
Discussion started by: senkerth
3 Replies

6. Solaris

php installation procedure..

hi.. i need to install or enable php on my solaris server.. i have successfully enabled my apache .. guide me to enable php .. (3 Replies)
Discussion started by: senkerth
3 Replies

7. Solaris

php installation ..

hi.. i need to install or enable php on solaris 10 x86.. can u guide me .. tell me as soon as possible.. thanks... ---------- Post updated at 12:17 PM ---------- Previous update was at 10:38 AM ---------- tell me as soon as possible... (1 Reply)
Discussion started by: senkerth
1 Replies

8. Solaris

apache and php installation..

hi i need to install apache and php on my solaris server .. can u tell me the procedure... tell me as soon as possible.. (4 Replies)
Discussion started by: senkerth
4 Replies

9. Shell Programming and Scripting

PHP installation help needed.

Hi guys, This is my first post in this forum. Recently i come across one interesting advantage of PHP that it is the simplest yet powerful language to communicate with linux . However my knowledge of PHP is very weak. Can u please guide me about following queries. 1)which version of... (6 Replies)
Discussion started by: pinga123
6 Replies

10. Linux

glib-2.22.4 missing after installation?

I've installed glib-2.22.4 from source codes and everything seems just fine with these commands, ./configure, make, make install), but glib-2.22.4 is missing after the installation: # rpm -qa | grep glib NetworkManager-glib-0.7.0-9.el5 glib2-devel-2.12.3-4.el5_3.1 glibc-common-2.5-42.el5_4.3... (3 Replies)
Discussion started by: aixlover
3 Replies
Login or Register to Ask a Question