Linux - GeneralThis Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.
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.
Hi, I just started exploring my inner linux Seriously, I have this VDS and I am running Plesk I think it's 6.0. One of my sites uses PHP to parse XML on the server side. I need to install Sablotron and a few others that aren't currently active in the PHP settings that I have on the webserver. I can't for the life of me figure out how to reconfigure PHP to include the options.
I've tried make clean, but I just get the message *** No rule to make target clean. Stop. I've read somewhere about using a 'fake' make file, like make -f something or other, but it's way past me!!!
I've also tried to just ./configure whatever but of course that doesn't work either.
I'd appreciate it SO much if someone could help me out as soon as they get the chance! I'm migrating from one server to another, so add up the daily costs of having two VDServers and...ouch!!
thats a long configure list, most of that stuff the scripts should detect by itself, now to the make clean thingy, if that dont work then all you ahve to do is delet the sources and untar a new treee, good as new, run the configure script you have up there (note: i dont think you need all the ' everyhwere),
I'm really struggling. I don't know where to start with this. I can't even get the ./configure command to work. I have NO idea how to do this. Do you think you could give me some basic instructions on what I need to do? Such as - how do I find the right php tree?
Thanks.
If your configure script fails it's very hard to provide any useful thoughts without the output configure script. Please post it and we'll try to help.
As for the "right" PHP tree....well the latest release should be OK, shouldn't it? Or is there any reason you want to use an older one?
Hey thanks a lot for a fast answer, I really appreciate it. I type in ./configure, and I get 'no such file or directory'. I thought maybe I'm in the wrong directory, but I've tried it in almost all the relevent directories and I get the same response.
I look at my http://www.noctambus.com/phpinfo.php , and so it must be installed in some way or another, right? From what I have read, I've made the conclusion that this PHP is bundled with this Apache version. But, I can also get it stand alone. Is that right or totally off the mark? If it is right, and I install it stand alone, then how wil the system know which PHP it should use? If this is completely wrong, then totally ignore my ramblings!
Basically, all I'm looking to do to is recompile the PHP to get those options in there. I doubt I'll be fooling with it once I get that part enabled. So, it doesn't really matter to me how it's installed, etc. etc.
Thanks again for the help! This is soooo frustrating!!
Well you seem to be in the wrong directory then.
Download the file, say to your ~/downloads directory. If you want to build it in ~/build, simply cd over to ~/build and unpack the source: tar xfvj ~/downloads/php-4.3.4.tar.bz2
This will create the directory php-4.3.4 in the current directory, so the location should be ~/build/php-4.3.4. cd to that directory and you will find the configure script waiting for you.
Ok. Is it possible it's already installed as an embedded part of Apache? If so, is it a problem if I download and install it as standalone? How would I make sure that programs are using the standalone downloaded PHP as the one that came with the Apache? Because, like I said, I see the results from http://www.noctambus.com/phpinfo.php
Thanks!!
You need to edit your php.ini and httpd.conf files (for PHP and Apache, respectively) to make sure the correct PHP installation is used, and with the settings of your choice.
Apache doesn't come with PHP support built in. You'll need to install that separately, like you're trying to do now.
Since you're using Redhat with that distribution's version of Apache and PHP, getting rpm's would perhaps be a simpler way.
Hey! Thanks for the info! Ok, I'm learning quite a bit here from this trial and error (I had no idead before today what RPMs were). Ok, I know I have PHP installed as RPMs.
Now I have those RPMs installed it seems. So if I want to add in --enable-xslt --with-xslt-sablot what exactly do I need to do now to configure this? Do I just need to edit the php.ini and httpd.conf, or are there other steps involved?
RPMs are binary packages (unless it's a source RPM - SRPM) - they provide ready-to-use programs so you don't have to compile them yourself. This means that when you use a piece of software installed as an RPM, the options the RPM was created with are the options you have. If you want different options you need to either build the software from source (so you can define --with-blahblah) or get RPM packages configured with those specific options that you want. I do not use any RPM based distributions so I'm not really up to the task of telling you where to get updated packages, but freshrpms.net and rpmfind.net is a good start.
If you have a co-located server (VDS? I'm not sure what that means - virtual domain server?) you should be able to get support from the hosting company. If you haven't got root (administrator privileges) on the server you will not be able to install new PHP packages from source or as RPMs, only the root user can do that.
Hi! Yeah, it's a Virtual Dedicated Server, so I have root access.
I tried installing the php module as the standalone file, but I was told I had no cc gcc etc. So, I downloaded a bunch of the RPMs. I ran some, and was told I needed a whole bunch more...
binutils
cpp
glibc
glibc-devel
etc etc.
I finally got all of them, and when I started to install the last requested on, I got an error message - saying it was already installed. Why didn't the other RPMs pick them up?
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.