Install different version of php and mysql in my own home directory
Linux - EnterpriseThis forum is for all items relating to using Linux in the Enterprise.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Install different version of php and mysql in my own home directory
Hi,
At work, I am using SunOS server. I have a normal user account. I'd like to install wikimedia in my public_html folder and use it. Instead of installing on my own computer. The server has old version of PHP and no mysql installed on it. My question would be:
Is it possible to install php and mysql for myself in my home directory and link the php pages in my public_html directroy to use that php version and mysql? Or I need explicit permission from the administrator to do it for me?
The system admin would have to configure the web server service for you, and install and configure mySQL. You wouldn't be able to link to PHP installed where the web server (apache?) doesn't know it exists, and both apache (for instance) and PHP need to know to use the mySQL daemon. I've never tried to configure apache to use two different versions of PHP at once--I'm not sure if it's possible.
You might consider bribing the system admin to install mySQL and upgrade PHP.
Both need to be installed and configured by the admin, and the web server service re-configured (maybe even re-compiled).
Distribution: Debian. (Formerly Slackware, Gentoo, RHEL, and Suse)
Posts: 80
Rep:
Well if you are intending on access your services inside the LAN, you can install apache and php into your own directory, you will need to configure apache to use ports above 1024.
No idea if mysql can be installed as any user other than root, Oracle for example cannot, but that really is only because Oracle are protecting the sw installations from maniacs, so maybe mysql is less draconian???
I would only bother the admin if you need something... for example if you cannot access your webserver - he might tell you not to do it otherwise!
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.