473,406 Members | 2,843 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,406 software developers and data experts.

Installing PHP 5 under /home: how to?

I have a user account on a RH Linux machine but no root access.

I succesfully installed apache 1.3 under my /home/ account but can't
get PHP to install properly.

I have done the following steps:

#1 compiled and installed apache using --prefix=/home/imbeauje/apache.
Tested that it works.

#2 compiled and installed php using

../configure --with-apache=/home/imbeauje/apache_1.3.31
--prefix=/home/imbeauje/php

#3 added to http.conf LoadModule php5_module libexec/libphp5.so
At this point trying to run apache gives the following error:

Cannot load /home/imbeauje/apache/libexec/libphp5.so into server:
/home/imbeauje/apache/libexec/libphp5.so: cannot open shared object
file: No such file or directory
I commented out the LoadModule line and the error disappeared.

#4 added AddType application/x-httpd-php .php to http.conf

At this point I can start apache but trying to load up a .php file
makes my browser through up a 'save file as' dialog ...

What did I miss?

Thanks!
Jul 17 '05 #1
3 4898
Jean-Christian Imbeault wrote:
I have a user account on a RH Linux machine but no root access.

I succesfully installed apache 1.3 under my /home/ account but can't
get PHP to install properly.

I have done the following steps:

#1 compiled and installed apache using --prefix=/home/imbeauje/apache.
Tested that it works.

#2 compiled and installed php using

./configure --with-apache=/home/imbeauje/apache_1.3.31
--prefix=/home/imbeauje/php

#3 added to http.conf LoadModule php5_module libexec/libphp5.so
At this point trying to run apache gives the following error:

Cannot load /home/imbeauje/apache/libexec/libphp5.so into server:
/home/imbeauje/apache/libexec/libphp5.so: cannot open shared object
file: No such file or directory
I commented out the LoadModule line and the error disappeared.

#4 added AddType application/x-httpd-php .php to http.conf

At this point I can start apache but trying to load up a .php file
makes my browser through up a 'save file as' dialog ...

What did I miss?

Thanks!


I assume (right?) make and make install went without shocking errors ?
Does apache have proper rights (rx) to /home/imbeauje/apache/exec/ AND
libphp5.so ?
Is the .so file actually in that directory ? (I know, sounds silly, but how
often people simply forgot to check..)
Where does your apache serverroot point to ? Tried supplying the full path
to libphp5.so too?

If you did not load the php module I am not surprised you get a save-as.
After all, what else could apache do with it ? Or am I the silly one now ?
It's been a hot day, brain is cooked.

Well sofar what I can come up with without digging deeper. Good luck!
HTH
Pjotr.
Jul 17 '05 #2
"Pjotr Wedersteers" <x3****@westerterp.com> wrote in message news:<41**********************@news.xs4all.nl>...
I assume (right?) make and make install went without shocking errors ?
Correct.

Installing PHP SAPI module: apache
Installing PHP CLI binary: /home/imbeauje/php/bin/
Installing PHP CLI man page: /home/imbeauje/php/man/man1/
Installing PEAR environment: /home/imbeauje/php/lib/php/
[PEAR] Archive_Tar - already installed: 1.1
[PEAR] Console_Getopt - already installed: 1.2
[PEAR] PEAR - already installed: 1.3.2
Wrote PEAR system config file at: /home/imbeauje/php/etc/pear.conf
You may want to add: /home/imbeauje/php/lib/php to your php.ini
include_path
[PEAR] XML_RPC - already installed: 1.1.0
Installing build environment: /home/imbeauje/php/lib/php/build/
Installing header files: /home/imbeauje/php/include/php/
Installing helper programs: /home/imbeauje/php/bin/
program: phpize
program: php-config
program: phpextdist
[imbeauje@tkrndapd2 ~/php-5.0.0]$ ls ../apache/libexec/
httpd.exp
Does apache have proper rights (rx) to /home/imbeauje/apache/exec/ AND
libphp5.so ?
There is no apache/exec dir but there is an apache/libexec, is that
what you meant?
Is the .so file actually in that directory ? (I know, sounds silly, but how
often people simply forgot to check..)
I can't find a libphp5.so file anywhere, even in apache/libexec.
Where does your apache serverroot point to ?
ServerRoot "/home/imbeauje/apache"
Tried supplying the full path to libphp5.so too?
How?
Well sofar what I can come up with without digging deeper. Good luck!


Looks like I am missing a step in the installation? No libphp5.so is
definitely not a good thing ...

Jc
Jul 17 '05 #3
Jean-Christian Imbeault wrote:
"Pjotr Wedersteers" <x3****@westerterp.com> wrote in message
news:<41**********************@news.xs4all.nl>...
I assume (right?) make and make install went without shocking errors
?


Correct.

Installing PHP SAPI module: apache
Installing PHP CLI binary: /home/imbeauje/php/bin/
Installing PHP CLI man page: /home/imbeauje/php/man/man1/
Installing PEAR environment: /home/imbeauje/php/lib/php/
[PEAR] Archive_Tar - already installed: 1.1
[PEAR] Console_Getopt - already installed: 1.2
[PEAR] PEAR - already installed: 1.3.2
Wrote PEAR system config file at: /home/imbeauje/php/etc/pear.conf
You may want to add: /home/imbeauje/php/lib/php to your php.ini
include_path
[PEAR] XML_RPC - already installed: 1.1.0
Installing build environment: /home/imbeauje/php/lib/php/build/
Installing header files: /home/imbeauje/php/include/php/
Installing helper programs: /home/imbeauje/php/bin/
program: phpize
program: php-config
program: phpextdist
[imbeauje@tkrndapd2 ~/php-5.0.0]$ ls ../apache/libexec/
httpd.exp
Does apache have proper rights (rx) to /home/imbeauje/apache/exec/
AND libphp5.so ?


There is no apache/exec dir but there is an apache/libexec, is that
what you meant?
Is the .so file actually in that directory ? (I know, sounds silly,
but how often people simply forgot to check..)


I can't find a libphp5.so file anywhere, even in apache/libexec.
Where does your apache serverroot point to ?


ServerRoot "/home/imbeauje/apache"
Tried supplying the full path to libphp5.so too?


How?
Well sofar what I can come up with without digging deeper. Good luck!


Looks like I am missing a step in the installation? No libphp5.so is
definitely not a good thing ...

Jc


Try: locate libphp
Probably the required .so (shared object) file pops up, I would guess in one
of the PHP directories.
copy that file to the aforementioned libexec directory.

I also found this on a similar problem someone had compiling/installing PHP4
on linux : http://bugs.php.net/bug.php?id=9036
A quote from that page : "Yes, of course using --with-apxs makes a
difference. Without that
option you will never get a libphp4.so, you simply get a php binary.
Please read the installation instructions"

Maybe here's your solution too ??
good Luck jean!
Pjotr
Jul 17 '05 #4

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

Similar topics

1
by: Walter Jones | last post by:
I am currently using VB 4.0 with WindowsXP Home Edition and would like to continue to use it and also use Visual Basic.net The help file states that "Windows XP Home Edition provides limited...
7
by: Adam | last post by:
Im trying to add an httphandler for all *.sgf file extensions. I have developed the handler, 1. installed it into the gac 2. added it to the machine.config: <httpHandlers> <add verb="*"...
2
by: Rich | last post by:
Hi, I'm trying to install VB.net 2003 on Windows XP Home SP1. When I run the setup program I get the usual menu of 4 items. Everytime I click to install the programs on the Prerequisites CD it...
1
by: steveBelfast | last post by:
Having trouble installing my 180 day Visual Studio 2005 trial disk. The CD that was sent is actually a DVD not a CD. My home PC only has a CD drive. I attempted to install on an external drive...
13
by: Gary Wessle | last post by:
Hi I am trying to install NumPy in my debian/testing linux 2.6.15-1-686. with no numpy for debian/testing, I am left alone, since the experimental version available by debian will result in a...
0
by: spmanoj78 | last post by:
Hi, I am trying to install DB2 v8.2 on RHEL 5 in silient mode. Can anybody help me out. The Same DB2 v8.2 works fine on SUSE 10. ##################################################### ...
12
by: jcor | last post by:
Hi, I'm using Ubuntu 7.04. I'm writing a sript that sends files via ftp for several destinations. So far I used Net::FTP and it worked fine. My problem is that I need to send files via SFTP...
7
by: Yansky | last post by:
I asked my hosting company if they would upgrade Python on my server to the latest version. They responded with: "Sorry no. We tend to stick with what comes packaged with the unix distribution...
2
by: Tam | last post by:
Im running into problems installing either VS 05 or 08 on a Vista Premium 64 bit machine and, ahem, it isnt going sweetly. When installing i get an "Error 1935.An error occured during the...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
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...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
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
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...

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.