How to recompile PHP Announcing the arrival of Valued Associate #679: Cesar Manara Planned maintenance scheduled April 17/18, 2019 at 00:00UTC (8:00pm US/Eastern) Come Celebrate our 10 Year Anniversary!How can I sort du -h output by sizeRecompile PHP *nixWhen I recompile Apache do I need to recompile PHP and recompile PHP's extensions?How do you restart php-fpm?How do I tell Git for Windows where to find my private RSA key?How to automate SSH login with password?Enable zip on PHP 5.1.6 without recompile“no input file specified” with apache/php after recompileDo you need to recompile PHP to use APC?How to correctly recompile PHP?
Fundamental Solution of the Pell Equation
How come Sam didn't become Lord of Horn Hill?
What's the meaning of "fortified infraction restraint"?
Do jazz musicians improvise on the parent scale in addition to the chord-scales?
If my PI received research grants from a company to be able to pay my postdoc salary, did I have a potential conflict interest too?
Circuit to "zoom in" on mV fluctuations of a DC signal?
Did MS DOS itself ever use blinking text?
What does this Jacques Hadamard quote mean?
Do wooden building fires get hotter than 600°C?
What causes the direction of lightning flashes?
Is it cost-effective to upgrade an old-ish Giant Escape R3 commuter bike with entry-level branded parts (wheels, drivetrain)?
Compare a given version number in the form major.minor.build.patch and see if one is less than the other
An adverb for when you're not exaggerating
How would a mousetrap for use in space work?
When the Haste spell ends on a creature, do attackers have advantage against that creature?
Withdrew £2800, but only £2000 shows as withdrawn on online banking; what are my obligations?
How can I use the Python library networkx from Mathematica?
Why aren't air breathing engines used as small first stages
Extracting terms with certain heads in a function
Significance of Cersei's obsession with elephants?
Generate an RGB colour grid
What would be the ideal power source for a cybernetic eye?
Why are there no cargo aircraft with "flying wing" design?
If a contract sometimes uses the wrong name, is it still valid?
How to recompile PHP
Announcing the arrival of Valued Associate #679: Cesar Manara
Planned maintenance scheduled April 17/18, 2019 at 00:00UTC (8:00pm US/Eastern)
Come Celebrate our 10 Year Anniversary!How can I sort du -h output by sizeRecompile PHP *nixWhen I recompile Apache do I need to recompile PHP and recompile PHP's extensions?How do you restart php-fpm?How do I tell Git for Windows where to find my private RSA key?How to automate SSH login with password?Enable zip on PHP 5.1.6 without recompile“no input file specified” with apache/php after recompileDo you need to recompile PHP to use APC?How to correctly recompile PHP?
.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty height:90px;width:728px;box-sizing:border-box;
I have changed some settings in various things on my site and I am being told i need to "recompile PHP" via ssh.
can anybody tell me how to do that?
OOF, harsh - people wanna shut this one real fast.
Heres the situation. I have some nice preg_matches going on throughout my site, but the server I am on is throwing up errors left and right, complaining about my PCRE not being UTF-8 friendly.
After researching the problem, it seems the only way to make it friendly is by recompiling PHP with a few flags in the conditions.
And that is where I'm at.
linux php ssh
migrated from stackoverflow.com Jan 21 '10 at 6:59
This question came from our site for professional and enthusiast programmers.
add a comment |
I have changed some settings in various things on my site and I am being told i need to "recompile PHP" via ssh.
can anybody tell me how to do that?
OOF, harsh - people wanna shut this one real fast.
Heres the situation. I have some nice preg_matches going on throughout my site, but the server I am on is throwing up errors left and right, complaining about my PCRE not being UTF-8 friendly.
After researching the problem, it seems the only way to make it friendly is by recompiling PHP with a few flags in the conditions.
And that is where I'm at.
linux php ssh
migrated from stackoverflow.com Jan 21 '10 at 6:59
This question came from our site for professional and enthusiast programmers.
1
Recompiling PHP is almost always a last resort. You need to talk more in detail about your situation in order to get at what you really need.
– Ignacio Vazquez-Abrams
Jan 21 '10 at 6:47
What OS? If it's a Linux distro, it's often easiest to start with the source package and modify it to add whatever extra options you need.
– ZoogieZork
Jan 21 '10 at 7:04
okay...so basically a fresh install?
– johnnietheblack
Jan 21 '10 at 7:06
Since you're modifying the source package for PHP, the result will be a new PHP package which you can use to install "over" your existing installation. This only works if PHP was originally installed via package, of course.
– ZoogieZork
Jan 21 '10 at 7:13
add a comment |
I have changed some settings in various things on my site and I am being told i need to "recompile PHP" via ssh.
can anybody tell me how to do that?
OOF, harsh - people wanna shut this one real fast.
Heres the situation. I have some nice preg_matches going on throughout my site, but the server I am on is throwing up errors left and right, complaining about my PCRE not being UTF-8 friendly.
After researching the problem, it seems the only way to make it friendly is by recompiling PHP with a few flags in the conditions.
And that is where I'm at.
linux php ssh
I have changed some settings in various things on my site and I am being told i need to "recompile PHP" via ssh.
can anybody tell me how to do that?
OOF, harsh - people wanna shut this one real fast.
Heres the situation. I have some nice preg_matches going on throughout my site, but the server I am on is throwing up errors left and right, complaining about my PCRE not being UTF-8 friendly.
After researching the problem, it seems the only way to make it friendly is by recompiling PHP with a few flags in the conditions.
And that is where I'm at.
linux php ssh
linux php ssh
edited Jan 21 '10 at 7:01
johnnietheblack
asked Jan 21 '10 at 6:46
johnnietheblackjohnnietheblack
2261410
2261410
migrated from stackoverflow.com Jan 21 '10 at 6:59
This question came from our site for professional and enthusiast programmers.
migrated from stackoverflow.com Jan 21 '10 at 6:59
This question came from our site for professional and enthusiast programmers.
1
Recompiling PHP is almost always a last resort. You need to talk more in detail about your situation in order to get at what you really need.
– Ignacio Vazquez-Abrams
Jan 21 '10 at 6:47
What OS? If it's a Linux distro, it's often easiest to start with the source package and modify it to add whatever extra options you need.
– ZoogieZork
Jan 21 '10 at 7:04
okay...so basically a fresh install?
– johnnietheblack
Jan 21 '10 at 7:06
Since you're modifying the source package for PHP, the result will be a new PHP package which you can use to install "over" your existing installation. This only works if PHP was originally installed via package, of course.
– ZoogieZork
Jan 21 '10 at 7:13
add a comment |
1
Recompiling PHP is almost always a last resort. You need to talk more in detail about your situation in order to get at what you really need.
– Ignacio Vazquez-Abrams
Jan 21 '10 at 6:47
What OS? If it's a Linux distro, it's often easiest to start with the source package and modify it to add whatever extra options you need.
– ZoogieZork
Jan 21 '10 at 7:04
okay...so basically a fresh install?
– johnnietheblack
Jan 21 '10 at 7:06
Since you're modifying the source package for PHP, the result will be a new PHP package which you can use to install "over" your existing installation. This only works if PHP was originally installed via package, of course.
– ZoogieZork
Jan 21 '10 at 7:13
1
1
Recompiling PHP is almost always a last resort. You need to talk more in detail about your situation in order to get at what you really need.
– Ignacio Vazquez-Abrams
Jan 21 '10 at 6:47
Recompiling PHP is almost always a last resort. You need to talk more in detail about your situation in order to get at what you really need.
– Ignacio Vazquez-Abrams
Jan 21 '10 at 6:47
What OS? If it's a Linux distro, it's often easiest to start with the source package and modify it to add whatever extra options you need.
– ZoogieZork
Jan 21 '10 at 7:04
What OS? If it's a Linux distro, it's often easiest to start with the source package and modify it to add whatever extra options you need.
– ZoogieZork
Jan 21 '10 at 7:04
okay...so basically a fresh install?
– johnnietheblack
Jan 21 '10 at 7:06
okay...so basically a fresh install?
– johnnietheblack
Jan 21 '10 at 7:06
Since you're modifying the source package for PHP, the result will be a new PHP package which you can use to install "over" your existing installation. This only works if PHP was originally installed via package, of course.
– ZoogieZork
Jan 21 '10 at 7:13
Since you're modifying the source package for PHP, the result will be a new PHP package which you can use to install "over" your existing installation. This only works if PHP was originally installed via package, of course.
– ZoogieZork
Jan 21 '10 at 7:13
add a comment |
2 Answers
2
active
oldest
votes
Begin by figuring out how to connect to your server via ssh. Then use wget to download the latest php sources. cd into the directory with the unzipped files. Run configure with the options you want, then run make.
Here is the official FAQ: http://php.net/manual/en/faq.build.php
Hmmm... better edit my post. The site is down.
– Nathan Osman
Jan 21 '10 at 7:09
There. A new working link!
– Nathan Osman
Jan 21 '10 at 7:16
thanks george:) sorry on the delay for checkin you as answer
– johnnietheblack
Jan 21 '10 at 17:35
add a comment |
We have many roads that lead to Rome. If you want to recompile PHP, then you should first check your server. Which OS are you using? Which PHP version? Are there any Bundled PHP Extension you want to use?... and so on.
Recompiling PHP in general is like this:
- searching for the official PHP source code
invoking
./configure
. For example like this:./configure --with-apxs2=/usr/local/apache2/bin/apxs --with-mysql
See a full list of configure options: https://www.php.net/manual/en/configure.about.phpinvoking
make
- invoking
make install
Please have a look at these tutorials:
Official tutorial (PHP is installed as an Apache2 module):
https://www.php.net/manual/en/install.unix.apache2.php (See step 5.)
You could also check at the offical github page.
https://github.com/php/php-src
Unofficial tutorial:
http://www.softwareprojects.com/resources/programming/t-how-to-recompile-php-with-gd-support-on-a-live-serv-1572.html
add a comment |
Your Answer
StackExchange.ready(function()
var channelOptions =
tags: "".split(" "),
id: "2"
;
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function()
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled)
StackExchange.using("snippets", function()
createEditor();
);
else
createEditor();
);
function createEditor()
StackExchange.prepareEditor(
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader:
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
,
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
);
);
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fserverfault.com%2fquestions%2f104892%2fhow-to-recompile-php%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
2 Answers
2
active
oldest
votes
2 Answers
2
active
oldest
votes
active
oldest
votes
active
oldest
votes
Begin by figuring out how to connect to your server via ssh. Then use wget to download the latest php sources. cd into the directory with the unzipped files. Run configure with the options you want, then run make.
Here is the official FAQ: http://php.net/manual/en/faq.build.php
Hmmm... better edit my post. The site is down.
– Nathan Osman
Jan 21 '10 at 7:09
There. A new working link!
– Nathan Osman
Jan 21 '10 at 7:16
thanks george:) sorry on the delay for checkin you as answer
– johnnietheblack
Jan 21 '10 at 17:35
add a comment |
Begin by figuring out how to connect to your server via ssh. Then use wget to download the latest php sources. cd into the directory with the unzipped files. Run configure with the options you want, then run make.
Here is the official FAQ: http://php.net/manual/en/faq.build.php
Hmmm... better edit my post. The site is down.
– Nathan Osman
Jan 21 '10 at 7:09
There. A new working link!
– Nathan Osman
Jan 21 '10 at 7:16
thanks george:) sorry on the delay for checkin you as answer
– johnnietheblack
Jan 21 '10 at 17:35
add a comment |
Begin by figuring out how to connect to your server via ssh. Then use wget to download the latest php sources. cd into the directory with the unzipped files. Run configure with the options you want, then run make.
Here is the official FAQ: http://php.net/manual/en/faq.build.php
Begin by figuring out how to connect to your server via ssh. Then use wget to download the latest php sources. cd into the directory with the unzipped files. Run configure with the options you want, then run make.
Here is the official FAQ: http://php.net/manual/en/faq.build.php
edited Jan 21 '10 at 7:15
answered Jan 21 '10 at 7:04
Nathan OsmanNathan Osman
1,94562745
1,94562745
Hmmm... better edit my post. The site is down.
– Nathan Osman
Jan 21 '10 at 7:09
There. A new working link!
– Nathan Osman
Jan 21 '10 at 7:16
thanks george:) sorry on the delay for checkin you as answer
– johnnietheblack
Jan 21 '10 at 17:35
add a comment |
Hmmm... better edit my post. The site is down.
– Nathan Osman
Jan 21 '10 at 7:09
There. A new working link!
– Nathan Osman
Jan 21 '10 at 7:16
thanks george:) sorry on the delay for checkin you as answer
– johnnietheblack
Jan 21 '10 at 17:35
Hmmm... better edit my post. The site is down.
– Nathan Osman
Jan 21 '10 at 7:09
Hmmm... better edit my post. The site is down.
– Nathan Osman
Jan 21 '10 at 7:09
There. A new working link!
– Nathan Osman
Jan 21 '10 at 7:16
There. A new working link!
– Nathan Osman
Jan 21 '10 at 7:16
thanks george:) sorry on the delay for checkin you as answer
– johnnietheblack
Jan 21 '10 at 17:35
thanks george:) sorry on the delay for checkin you as answer
– johnnietheblack
Jan 21 '10 at 17:35
add a comment |
We have many roads that lead to Rome. If you want to recompile PHP, then you should first check your server. Which OS are you using? Which PHP version? Are there any Bundled PHP Extension you want to use?... and so on.
Recompiling PHP in general is like this:
- searching for the official PHP source code
invoking
./configure
. For example like this:./configure --with-apxs2=/usr/local/apache2/bin/apxs --with-mysql
See a full list of configure options: https://www.php.net/manual/en/configure.about.phpinvoking
make
- invoking
make install
Please have a look at these tutorials:
Official tutorial (PHP is installed as an Apache2 module):
https://www.php.net/manual/en/install.unix.apache2.php (See step 5.)
You could also check at the offical github page.
https://github.com/php/php-src
Unofficial tutorial:
http://www.softwareprojects.com/resources/programming/t-how-to-recompile-php-with-gd-support-on-a-live-serv-1572.html
add a comment |
We have many roads that lead to Rome. If you want to recompile PHP, then you should first check your server. Which OS are you using? Which PHP version? Are there any Bundled PHP Extension you want to use?... and so on.
Recompiling PHP in general is like this:
- searching for the official PHP source code
invoking
./configure
. For example like this:./configure --with-apxs2=/usr/local/apache2/bin/apxs --with-mysql
See a full list of configure options: https://www.php.net/manual/en/configure.about.phpinvoking
make
- invoking
make install
Please have a look at these tutorials:
Official tutorial (PHP is installed as an Apache2 module):
https://www.php.net/manual/en/install.unix.apache2.php (See step 5.)
You could also check at the offical github page.
https://github.com/php/php-src
Unofficial tutorial:
http://www.softwareprojects.com/resources/programming/t-how-to-recompile-php-with-gd-support-on-a-live-serv-1572.html
add a comment |
We have many roads that lead to Rome. If you want to recompile PHP, then you should first check your server. Which OS are you using? Which PHP version? Are there any Bundled PHP Extension you want to use?... and so on.
Recompiling PHP in general is like this:
- searching for the official PHP source code
invoking
./configure
. For example like this:./configure --with-apxs2=/usr/local/apache2/bin/apxs --with-mysql
See a full list of configure options: https://www.php.net/manual/en/configure.about.phpinvoking
make
- invoking
make install
Please have a look at these tutorials:
Official tutorial (PHP is installed as an Apache2 module):
https://www.php.net/manual/en/install.unix.apache2.php (See step 5.)
You could also check at the offical github page.
https://github.com/php/php-src
Unofficial tutorial:
http://www.softwareprojects.com/resources/programming/t-how-to-recompile-php-with-gd-support-on-a-live-serv-1572.html
We have many roads that lead to Rome. If you want to recompile PHP, then you should first check your server. Which OS are you using? Which PHP version? Are there any Bundled PHP Extension you want to use?... and so on.
Recompiling PHP in general is like this:
- searching for the official PHP source code
invoking
./configure
. For example like this:./configure --with-apxs2=/usr/local/apache2/bin/apxs --with-mysql
See a full list of configure options: https://www.php.net/manual/en/configure.about.phpinvoking
make
- invoking
make install
Please have a look at these tutorials:
Official tutorial (PHP is installed as an Apache2 module):
https://www.php.net/manual/en/install.unix.apache2.php (See step 5.)
You could also check at the offical github page.
https://github.com/php/php-src
Unofficial tutorial:
http://www.softwareprojects.com/resources/programming/t-how-to-recompile-php-with-gd-support-on-a-live-serv-1572.html
edited Apr 12 at 9:12
answered Apr 12 at 9:03
JulianJulian
1013
1013
add a comment |
add a comment |
Thanks for contributing an answer to Server Fault!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fserverfault.com%2fquestions%2f104892%2fhow-to-recompile-php%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
1
Recompiling PHP is almost always a last resort. You need to talk more in detail about your situation in order to get at what you really need.
– Ignacio Vazquez-Abrams
Jan 21 '10 at 6:47
What OS? If it's a Linux distro, it's often easiest to start with the source package and modify it to add whatever extra options you need.
– ZoogieZork
Jan 21 '10 at 7:04
okay...so basically a fresh install?
– johnnietheblack
Jan 21 '10 at 7:06
Since you're modifying the source package for PHP, the result will be a new PHP package which you can use to install "over" your existing installation. This only works if PHP was originally installed via package, of course.
– ZoogieZork
Jan 21 '10 at 7:13