Linux - SoftwareThis forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.
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.
Sorry again, I'm making a habit of starting a new thread then solving the problem moments later! I do apologise.
The apxs2 binary wasn't being found with locate, but I randomly stumbled across it in another directory, then all that was required was to restart the php configuration process with the apxs2 path. I did run into another problem at the end of the make install [apxs:Error: Config file /etc/apache2/httpd2-prefork.conf not found.] which was solved by the following instructions:
Quote:
SuSE uses a rather fragmented set of Apache configuration files stored in /etc/apache2/. When you configure PHP 5.x with:
$ ./configure --with-apxs2=/usr/sbin/apxs2
$ make
everything builds just fine; but when you issue:
$ su -c "make install"
the unconventional Apache conf file layout confuses the install-sapi section of the Makefile and the process halts with the following error:
At this point only the PHP SAPI library has been copied into place; the rest of the files (like PEAR scripts, PHP-CLI, etc) have not been installed. But never fear! You can overcome this problem with the following steps:
1. Edit Makefile and change the following line to remove "install-sapi":
install_targets = install-sapi install-cli install-pear install-build install-headers install-programs
2. Issue the make install command again:
$ su -c "make install"
3. Add the PHP module & type instructions to the Apache configuration. As root, create a new file, /etc/apache2/conf.d/php5.conf that contains the following lines:
Hi all,
I've installed php onto apache numerous times but I am really having difficulties using Suse.
We already have apache2 installed on our development server and we want php installed on top - no problem... or so I thought.
I think the problem is that there is no apxs2 in the file system. And also the libphp5.so module isn't being created by the php installation.
Can anyone shed some light on this or does anyone know what packages could be missing? Where could I get apxs2 or the php module from?
Many Thanks, Nonshatter
Don't know what you've installed or how, or on what version of SuSE. But on my openSUSE11.3 box now (and 11.xx before that), PHP installation was a breeze.
Go into YAST->Software Management->Search and look for PHP. I believe the relevant modules are PHP5, apache2-mod_perl, apache2-mod_php5, and PHP5. There are other PHP related modules that you can grab too, but I think those are the basic ones. Should have to install them, and restart Apache.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.