472,338 Members | 1,801 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 472,338 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 4810
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...
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...
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...
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...
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...
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. ...
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...
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...
0
better678
by: better678 | last post by:
Question: Discuss your understanding of the Java platform. Is the statement "Java is interpreted" correct? Answer: Java is an object-oriented...
0
by: Kemmylinns12 | last post by:
Blockchain technology has emerged as a transformative force in the business world, offering unprecedented opportunities for innovation and...
0
by: Naresh1 | last post by:
What is WebLogic Admin Training? WebLogic Admin Training is a specialized program designed to equip individuals with the skills and knowledge...
0
jalbright99669
by: jalbright99669 | last post by:
Am having a bit of a time with URL Rewrite. I need to incorporate http to https redirect with a reverse proxy. I have the URL Rewrite rules made...
0
by: Matthew3360 | last post by:
Hi there. I have been struggling to find out how to use a variable as my location in my header redirect function. Here is my code. ...
2
by: Matthew3360 | last post by:
Hi, I have a python app that i want to be able to get variables from a php page on my webserver. My python app is on my computer. How would I make it...
0
by: AndyPSV | last post by:
HOW CAN I CREATE AN AI with an .executable file that would suck all files in the folder and on my computerHOW CAN I CREATE AN AI with an .executable...
0
hi
by: WisdomUfot | last post by:
It's an interesting question you've got about how Gmail hides the HTTP referrer when a link in an email is clicked. While I don't have the specific...
0
by: Matthew3360 | last post by:
Hi, I have been trying to connect to a local host using php curl. But I am finding it hard to do this. I am doing the curl get request from my web...

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.