Compiling PHP 5.1.6 from source php v and phpinfo() version discrepancy
location: linuxquestions.com - date: March 5, 2010
Hi, I have just bought a VPS running Ubuntu and I need to install the LAMP stack with PHP 5.1.6. The VPS came with no PHP installed (checked this from the shell with php -v) and with Apache/2.2.12 installed. I installed PHP 5.1.6 from source and compiled it with Apache 2.2 (using libapache2-mod-php5), tried a phpinfo() test which worked fine, however, phpinfo() shows the PHP version as 5.2.1 (with JSON enabled), whereas running php-v in the shell shows as 5.1.6. Anyone any ideas what might be happening here? I need to ensure I am running PHP 5.1.6.
Thanks in advance for any help!
Compiling PHP from source with MySQL version 5.6
location: linuxexchange.com - date: January 1, 1970
I am trying to compile PHP from source to get ZTS working. I have the source for PHP and I try to install the dependencies with
apt-get build-dep php5
I also have MySQL 5.6 installed for Ubuntu 14.04LTS and I am getting this error after the command:
The following packages have unmet dependencies:
mysql-server : Depends: mysql-server-5.5 but it is not going to be installed
E: Build-dependencies for php5 could not be satisfied.
Is there anyway to bypass this dependency as MySQL 5.6 works ok with prebuilt PHP5 but I cannot start compiling as the dependency is missing? Thanks!
fluxbox howto (compiling from source the latest version) plus tips & tricks
location: ubuntuforums.com - date: January 13, 2006
I'm a big fan of fluxbox. It is highly and easily customizable. It's wicked fast and it's very pretty. FLuxbox is in the ubuntu repositories but they are two versions behind and are missing a lot of handy features like fluxbox-generate_menu. Also, the package in the repositories loads really slow wich should not be the case for a window manager that's supposed to be really fast.
In this how-to I'm going to sum up all the info I have collected and add a few of my own customization tricks. Most of what's here I found on other threads, but this info should be in one well organized place so here goes.
1: Download the source tar ball of the latest development version. The stable version is too old and not supported anymore and the development version is the one the devs recommend. They actually state
"The latest stable release is v0.1.14. Development version of Fluxbox can be found here. Please note that 0.1.14 is actually fairly dated (and unmaintained) now, and the developm
Ubuntu amd64 (x8664)version 7.04 issues with compiling php from source
location: linuxquestions.com - date: August 18, 2007
I am a Linux rookie so here we go.
I am trying to install php 5.2.3 on my ubuntu machine
(yes I do understand that I could easily install ubuntu's packaged version
which is 5.2.1 but I wanted to grow in learning about compiling from source) moreover, while trying to install php am able to ./configure the php source but when trying to use make i get an error
/usr/bin/ld: /usr/lib/gcc/x86_64-linux-gnu/4.1.2/../../../../lib64/libxml2.a(entities.o): relocation R_X86_64_32 against `a local symbol' can not be used when making a shared object; recompile with -fPIC
/usr/lib/gcc/x86_64-linux-gnu/4.1.2/../../../../lib64/libxml2.a: could not read symbols: Bad value
collect2: ld returned 1 exit status
make: *** [libphp5.la] Error 1
- gcc version is 4.1.2
- I have apache2 installed
- I used --enable-so when configuring apache
- i have set apxs2= /path/to/apxs
- I have search on different search engines
-I used "sudo ./configure --prefix=/usr/local/web --w
LXer: Building PHP 5.4 From Source On Debian Squeeze
location: linuxquestions.com - date: March 8, 2013
Published at LXer:
This tutorial describes how you can build PHP 5.4 from source on Debian Squeeze. Later on, we will install more modules through PECL and add it as an additional PHP version to ISPConfig's dropdown. At the end you will have a fully function PHP 5.4 installation which is selectable within the ISPConfig interface and a .deb package than can be used on other server as well.
Installing PHP from source on RedHat 9 with Apache few questions?
location: linuxquestions.com - date: June 5, 2003
I'm trying to install PHP 4.3.2 from source on a RedHat 9.1 web/mail server running Apache 2.0.46 (also compiled from source).
I'm a bit confused as to what options I should use with ./configure for PHP.
With Apache I used the RedHat layout, but PHP doesnt seem to have one, though it does have a GNU layout option. I want PHP to be a module for Apache. In fact, I only want to use PHP for squirrelmail! I'm just very confused as to where stuff should be installed to. Redhat RPMs install with a very specific scheme, but I guess it doesnt actually really matter where I put stuff.
Do I need to specifcy the location of my Apache files, or will it automatically find them, or does it not even need them. If it doesn't need them, how will I get PHP working with Apache?
Also, if I just install a RedHat PHP RPM, will this cause a problem because my Apache was installed from source? Can RPMs automatically find correct flie paths?
Also, what's the deal with 'uninstalling' things compil
Installed mysql from source on linux and then how to get it work with php?
location: linuxexchange.com - date: January 20, 2013
I installed apache and php from source and got them working together a month ago. Because I'm learning both of them this term.
Now I need mysql to do more works. And I installed mysql from source just now. However I don't know how to let it work with php.
I looked around and found some topics on setting up LAMP environment. Most of them install mysql first and use command options --with-mysql=/usr/local/mysql and --with-mysqli=/usr/local/mysql/bin/mysql_config when installing php. But in my case, I installed php first.
Is there any way to let php know that I have installed mysql? Or should I reinstall php ?
Finally I recompiled my php source with appending --with-mysql=/opt/mysql, --with-mysqli=/opt/mysql/bin/mysql_config and --with-pdo-mysql three configure options to let my php support the modules of mysql. Steps taken as follows:
1> stop apache and mysql services
2> backup php.ini
3> remove php
4> reconfigure php source
./configure --prefix=/opt/php --with-apxs2=/opt/ap
Configuring PHP for MySQL after installing Apache & PHP from source in Ubuntu
location: linuxexchange.com - date: April 11, 2013
I have already installed Apache 2.4.4 & PHP 5.4 from source in my Ubuntu 10.04 machine. I also installed MySQL 5.6 from source and SQL commands are running from shell.
When I use an SQL function to connect to database, it throws a fatal error that this function is not defined.
I know I can configure PHP for MySQL by providing the directory of MySQL while installing PHP, but now I have already installed & configured Apache & PHP and they are working, so please tell me how to configure PHP for MySQL support.
LXer: Build and install PHP 5.3.29 from source on an Ubuntu 14.04 LTS server
location: linuxquestions.com - date: August 20, 2014
Published at LXer:
How to build and install PHP 5.3.29 from source on an Ubuntu 14.04 LTS server
Php from Source How to tell APT its installed?
location: ubuntuforums.com - date: December 9, 2011
I compiled php from source and have it working on the commandline and apache just fine.
My problem is that when I try to install a package that uses php, like phpmyadmin, apt wants to install php packages to do it. I used checkinstall to create a deb and regsiter it, but it doesn't seem to matter.
(I compiled php 5.2, but phpmyadmin works fine with 5.2).
Page: 1 2 3 4 5 6 7 8 9 10