473,854 Members | 1,677 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 4928
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****@westert erp.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@tkrnda pd2 ~/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****@westert erp.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@tkrnda pd2 ~/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
4550
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 functionality. Creating Web applications or XML Web services is not supported when using Windows XP Home Edition." I am not interested in Web applications or XML Web services. When I run Setup I get the Visual Studio.NET Setup screen with "1 Visual...
7
2927
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="*" path="*.sgf" type="CustomExtensionHandler, Extenders.CustomExtensionHandler, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d831d925597c1031" validate="True"/> </httpHandlers>
2
1536
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 says it needs to shut down and restart the computer. This is an endless loop as after it reboots it says the same thing again. Is there a known issue for installing VB.net on XP Home? I've installed it many times on XP Proffessional without...
1
1747
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 using a work PC with a DVD drive and then use the external drive from my home PC. Unfortunately the install process puts files on the hard drive of the work PC as well as on the external drive. So I can not run the software from my home PC using the...
13
3939
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 dependency nightmares, so after unpacking the downloaded file "numpy-0.9.6.tar.gz"
0
3629
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. ##################################################### ./db2setup -r /opt/DB2/ese/db2/linux390x/samples/db2ese.rsp DBI1191I db2setup is installing and configuring DB2 according to the response file provided. Please wait.
12
15684
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 (SSH2). I've been trying to install Net::SFTP with 'sudo perl -MCPAN -e "install NET::SFTP' but I can't. It stops in the middle of the installation: Crypt-DH-0.06/t/ Crypt-DH-0.06/t/00-compile.t
7
1776
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 to ease maintenance issues. There is nothing stopping you from running your own version of python from within your own account. Download the source and compile it and install it into your own space. Adjust the fist line of your python scripts to...
2
2021
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 installation of assembly component" when installing either 05 or 08. Vista Premium comes with .NET Framework 2.0 and Framework 3.5 which are both present. It also has Framerwork 1.0 SP3 Developer. As an
0
9901
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9750
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
11024
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10672
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
10364
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
1
7909
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5738
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5937
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4550
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system

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.