hosted by liquidweb


Go Back   Web Hosting Talk : Web Hosting Main Forums : Dedicated Server : Compile PHP
Reply

Forum Jump

Compile PHP

Reply Post New Thread In Dedicated Server Subscription
 
Send news tip View All Posts Thread Tools Search this Thread Display Modes
  #1  
Old 09-27-2002, 05:13 AM
Surfer Surfer is offline
WHT Addict
 
Join Date: Feb 2001
Posts: 129
*

Compile PHP


Hi,

I need to re-compile PHP on my Raq4i. Here are the specs I need:

PHP (PHP 4.2.2 and above) :
1.1) compiled as Apache Module :
- with MySQL support
- with Curl (for PayPal IPN)
- enable socket
1.2) compiled as CGI
- all the options for compiling as Apache Module plus
enable pcntl (process control -- to allow the script to
act as a daemon)
- note : you shouldnt compile with Optimizer coz pcntl
doesnt work with optimizer

Anyone that can help me with this? Where do I start?

Thanks




Sponsored Links
  #2  
Old 09-27-2002, 04:35 PM
blacknight blacknight is offline
Web Hosting Master
 
Join Date: Mar 2001
Location: Ireland
Posts: 1,354
I posted instructions on compililng PHP from source some time back. If you need to add extra libraries etc., it's not that difficult AS LONG AS you have the correct required libraries installed.
If you have a look on the PHP site you will find comprehensive details for installing extra libraries etc.,

__________________
Blacknight
ICANN accredited domain registrar

  #3  
Old 09-28-2002, 04:18 AM
Surfer Surfer is offline
WHT Addict
 
Join Date: Feb 2001
Posts: 129
Thanks, I'll try to find your instructions. I don't think I need any extra libraries...


Sponsored Links
  #4  
Old 09-29-2002, 03:00 PM
blacknight blacknight is offline
Web Hosting Master
 
Join Date: Mar 2001
Location: Ireland
Posts: 1,354
If you're still having problems let me know...

__________________
Blacknight
ICANN accredited domain registrar

  #5  
Old 10-01-2002, 07:06 AM
AprilHost AprilHost is offline
Newbie
 
Join Date: Sep 2002
Posts: 6
Surfer,

Did you actually find the instructions? If yes, please psot the instructions URL here.

  #6  
Old 10-01-2002, 07:57 AM
cyrusTvirus cyrusTvirus is offline
Web Hosting Guru
 
Join Date: Feb 2002
Location: The Netherlands
Posts: 308

__________________
http://www.HaVa.nl
Reliable hosting and Colocation

  #7  
Old 10-17-2002, 06:19 AM
Surfer Surfer is offline
WHT Addict
 
Join Date: Feb 2001
Posts: 129
Quote:
Originally posted by blacknight
If you're still having problems let me know...
I found this thread http://www.webhostingtalk.com/showth...threadid=61449

I am going to start installing PHP today! I'll let you know how it goes!


  #8  
Old 10-17-2002, 06:22 AM
Surfer Surfer is offline
WHT Addict
 
Join Date: Feb 2001
Posts: 129
BTW:

How do I do this?

1.2) compiled as CGI
- all the options for compiling as Apache Module plus
enable pcntl (process control -- to allow the script to
act as a daemon)

Thanks

  #9  
Old 10-17-2002, 02:11 PM
blacknight blacknight is offline
Web Hosting Master
 
Join Date: Mar 2001
Location: Ireland
Posts: 1,354
to compile as CGI (eg. /usr/bin/php) take out the reference to apxs in the configure command

__________________
Blacknight
ICANN accredited domain registrar

  #10  
Old 10-17-2002, 02:55 PM
Surfer Surfer is offline
WHT Addict
 
Join Date: Feb 2001
Posts: 129
Thanks for your reply!

I figured this out! What I have understood so far is that I basically do the same as the apache module (but without apxs) and then don't do the final "make install" command. I then put the binary "PHP" file where I want it.

My problem so far is that I get an error when I am trying the "make" command. Configure went fine!

Error (last couple of lines):

libtool: link: warning: library `/usr/lib/libgdbm.la' was moved.
./.libs/libphp4.a(browscap.lo): In function `browser_reg_compare':
/home/php4_2/php-4.2.3/ext/standard/browscap.c:193: undefined reference to `php_regcomp'
/home/php4_2/php-4.2.3/ext/standard/browscap.c:196: undefined reference to `php_regexec'
/home/php4_2/php-4.2.3/ext/standard/browscap.c:199: undefined reference to `php_regfree'
./.libs/libphp4.a(reg.lo): In function `_php_regcomp':
/home/php4_2/php-4.2.3/ext/standard/reg.c:50: undefined reference to `php_regcomp'
./.libs/libphp4.a(reg.lo): In function `_free_reg_cache':
/home/php4_2/php-4.2.3/ext/standard/reg.c:69: undefined reference to `php_regfree'
./.libs/libphp4.a(reg.lo): In function `php_reg_eprint':
/home/php4_2/php-4.2.3/ext/standard/reg.c:119: undefined reference to `php_regerror'
/home/php4_2/php-4.2.3/ext/standard/reg.c:124: undefined reference to `php_regerror'
/home/php4_2/php-4.2.3/ext/standard/reg.c:129: undefined reference to `php_regerror'
/home/php4_2/php-4.2.3/ext/standard/reg.c:140: undefined reference to `php_regerror'
./.libs/libphp4.a(reg.lo): In function `php_ereg':
/home/php4_2/php-4.2.3/ext/standard/reg.c:207: undefined reference to `php_regexec'
./.libs/libphp4.a(reg.lo): In function `php_reg_replace':
/home/php4_2/php-4.2.3/ext/standard/reg.c:321: undefined reference to `php_regexec'
./.libs/libphp4.a(reg.lo): In function `php_split':
/home/php4_2/php-4.2.3/ext/standard/reg.c:580: undefined reference to `php_regexec'
./.libs/libphp4.a(url.lo): In function `php_url_parse':
/home/php4_2/php-4.2.3/ext/standard/url.c:74: undefined reference to `php_regcomp'
/home/php4_2/php-4.2.3/ext/standard/url.c:80: undefined reference to `php_regexec'
/home/php4_2/php-4.2.3/ext/standard/url.c:115: undefined reference to `php_regfree'
/home/php4_2/php-4.2.3/ext/standard/url.c:118: undefined reference to `php_regcomp'
/home/php4_2/php-4.2.3/ext/standard/url.c:118: undefined reference to `php_regexec'
/home/php4_2/php-4.2.3/ext/standard/url.c:127: undefined reference to `php_regfree'
/home/php4_2/php-4.2.3/ext/standard/url.c:154: undefined reference to `php_regfree'
/home/php4_2/php-4.2.3/ext/standard/url.c:157: undefined reference to `php_regfree'
collect2: ld returned 1 exit status
make[1]: *** [php] Error 1
make[1]: Leaving directory `/home/php4_2/php-4.2.3'
make: *** [all-recursive] Error 1

  #11  
Old 10-17-2002, 03:05 PM
blacknight blacknight is offline
Web Hosting Master
 
Join Date: Mar 2001
Location: Ireland
Posts: 1,354
If you've already used the same source to compile the Apache module you'll need to run 'make clean' first.
The run configure without the apxs.
make
make install

The location of php.ini won't make any difference unless you've taken out a lot of other options from the config (at least it shouldn't as far as I can remember)

Beware of using the CGI, as it is an extra security risk.

__________________
Blacknight
ICANN accredited domain registrar

  #12  
Old 10-17-2002, 05:11 PM
Surfer Surfer is offline
WHT Addict
 
Join Date: Feb 2001
Posts: 129
Thanks that could be it!

Should I really run "make install"?


Reply

Related posts from TheWhir.com
Title Type Date Posted
Name Collisions Could Pose Potential Problem for Web Hosts Web Hosting News 2014-05-01 08:25:32
IaaS Provider Dyn Acquires Trendslide to Offer Mobile Data and Analytics Tool Web Hosting News 2013-05-13 10:56:22
Eight Reasons Why Hosting Companies Fail Blog 2013-04-18 10:00:57
Starting and Running a Successful Web Hosting Affiliate Program Web Hosting News 2014-05-09 12:40:47
Prolexic Quarterly DDoS Report Finds 11 Percent Increase in Average Attack Bandwidth Over Q2 Web Hosting News 2012-10-17 12:29:18


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes
Postbit Selector

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Forum Jump
Login:
Log in with your username and password
Username:
Password:



Forgot Password?
Advertisement:
Web Hosting News:



 

X

Welcome to WebHostingTalk.com

Create your username to jump into the discussion!

WebHostingTalk.com is the largest, most influentual web hosting community on the Internet. Join us by filling in the form below.


(4 digit year)

Already a member?