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.
Ok, I have successfully compiled PHP 5.1.4 with MySQL and loads of other stuff. Question is, I want to run Apache 2 and Lighttpd at the same time on the same machine.
Only thing is, Lighttpd uses FastCGI PHP and I've always had an Apache module for PHP.
Now would there be an easy way to do this? If I compiled and installed an Apache module and then just recompiled for the FastCGI and installed would it work? Correctly?
Well I have Apache on port 80, and I was going to use Lighttpd on 8080 and only for my web administration scripts. I would use Lighttpd only, but I have scripts that make massive use of .htaccess files and rewrite rules.
Well, you can use PHP pretty much how you like in Apache - you can either load it as a module or you can access it as a CGI app. I believe that the latter case shouldn't require Apache to be recompiled, you just specify the path to the PHP executable, but I've only ever used PHP as a module so I'm not 100% certain of this. But what you propose sounds like a solution.
Ok, I compiled php for an apache module and installed it then recompile for fastcgi, and installed. I'm not seeing anything go wrong yet, so I'm guessing it's working ok.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.