Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Install local copy of php

Status
Not open for further replies.

dagoat10

Programmer
Jun 3, 2010
74
US
I am not a root user on the server that i am on, so i have no permission to install an update PHP version, the server version is PHP 4.1.2. does anyone know how to install a copy of php in my user directory. It seems possible, i did it for mysql, but i don't know how to do it for php
 
You should be able to specify the prefix as part of the configure command. Something like "./configure --prefix=your_home_directory ...." should work.

 
It would help if you tell us the type of operating system. PHP only works in conjunction with the web server software, so you need to take that into consideration.

If you are just wanting a test platform for development, it might make more sense to set up a local system with Apache, mySQL and PHP on another computer. That would give you your own sandbox to play in.
 
pentode said:
PHP only works in conjunction with the web server software
Not really. It an be used from the command line without any web server present.

As far as installing PHP, you can install it on your local machine, so it doesn't depend on the server. Packcages such as WAMP for Windows, MAMP for MacOSx and LAMP for Linux will produce a functional Web server set up plus PHP and mysql in one simple installer..

----------------------------------
Phil AKA Vacunita
----------------------------------
Ignorance is not necessarily Bliss, case in point:
Unknown has caused an Unknown Error on Unknown and must be shutdown to prevent damage to Unknown.

Behind the Web, Tips and Tricks for Web Development.
 
Re-reading it, I think prehaps what you want is to have your own PHP.ini in your own directory so you can enable or disable things as you require.


----------------------------------
Phil AKA Vacunita
----------------------------------
Ignorance is not necessarily Bliss, case in point:
Unknown has caused an Unknown Error on Unknown and must be shutdown to prevent damage to Unknown.

Behind the Web, Tips and Tricks for Web Development.
 
you need to give us more information than this. what is the precise make up of your current server, what permissions do you have, what type of webserver do you use etc etc.

the best solution I can offer is to migrate to a host that supports maintained software. there are thousands of hosts around and for shared hosting you can get good solutions as low as $5 a month.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top