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.
I am seriously frustrated with apache/php right now.
My problem is, when you post a message in my forum (phpbb) www.phpbb.com<--this is an example url...not mine.
The message basically doesn't show up after you have been to the pages once. It caches all the pages the first time you visit.....then if you post a new message, go back to the forum index, look at the number of posts, it doesn't update them. It should automaticallly do this, but it isn't re running the php script. It works fine on IIS/php.....but not on apache 2 with the very latest PHP build.
I originally thought this was RH8 and the rpms...so I removed the RPMS for httpd and php.
Downloaded the latest apache2 source and the latest PHP source that php.net says works fine with apache2 as a module.
I then installed per the directions on php.net, EXACTLY as they say to make it run as a module in apache.
That works fine, it serves up HTML and PHP pages, but it does not refresh database content, it just uses your cached page. If I put the same install on my win2k server with php it works without a hitch, just as this forum does. When you click on "LinuxQuestions.org Forums" link above it will go to a page and automatically update how many posts, and who posted last etc. Mine with not do this UNLESS you hit CTRL F5, which forces a refresh from the server.
So the main problem is....users would never see up to date DB information from mysql if this continues. The only way is to hit CTRL F5 in the browser to get up to date posts etc.
This in not a browser issue, any help is much appreciated as I have done everything I can think of to fix this.
Please please help.
Thanks in advance
System config:
RH8 w/ current updates
MySQL server 3.23.52
PHP from source (php4_latest_tar) recommended for apache2x
Apache server 2.0.43 from source using modules for PHP
I have to say, this is the most frustrating thing I have ever dealt with. I have searched every forum I can find and can't find any similar issues. Maybe I'm not searching on the correct criteria, I dunno. I just know I'm sick of it and just want it to work.
Originally posted by rosko I am seriously frustrated with apache/php right now.
.....but not on apache 2 with the very latest PHP build.
.....
Downloaded the latest apache2 source and the latest PHP source that php.net says works fine with apache2 as a module.
I then installed per the directions on php.net, EXACTLY as they say to make it run as a module in apache.
.....
PHP from source (php4_latest_tar) recommended for apache2x
Apache server 2.0.43 from source using modules for PHP
Problem: I just started installing phpBB 2 a while ago, and it caused me to downgrade to apache 1.3.27 and upgrade to php 4.3.0. it was apache 2.0.43 and php 4.2.3, but when I initially went to the board directory to start configuring phpBB, it (php) gave me a "does not exist" error for a file I knew existed. Then I found at php.net: "Do *not* use php 4 and apache 2 in a production environment..." (in more or less words). PHP was certainly working, apache was working, phpBB wasn't even appearing for the first run. So i busted out pkgtool, ripped the packages and replaced them from linuxpackages.net, and when it worked right away, i smiled and moved on. now i'm trying to create a database, my first, which i never ever ever thought i'd be doing... mysql. i can't exactly believe yet that it's true, since i'm a medium-rare newbie myself
so my advice: go forward by going backward, if you can.
make sure that your mysql configuration is correct that the user that you have assigned to phpbb in mysql has write privileges to the DB
also make sure your browser is set not to cache if your in m$ Internet explorer do ctrl-f5 or shift-f5 this should ( according to m$ help file ) force a refresh of the page
It's not IE...mozillla does it too. THe problem is with apache2/php. I modded the forum to work fine, but apache2 evidentally doesn't work well with php4 for some reason.
Originally posted by rosko
Downloaded the latest apache2 source and the latest PHP source that php.net says works fine with apache2 as a module.
They could be telling each other white lies, or they might not know about your particular setup.
Can I suggest using a slightly older version of either apache or PHP? I only upgrade if there's a functionality or security reason, and if both packages are new, then well .. there's the iterative release model - "suck it and see" - means that a release is made even though the compatibility creases aren't ironed out.
If that doesn't solve it, you know, it will probably be something far too simple for us to be able to solve!
Does anyone have Apache 2.0 playing nice with PHP?
Warning
Do not use Apache 2.0 and PHP in a production environment neither on Unix nor on Windows.
You are highly encouraged to take a look at the Apache Documentation to get a basic understanding of the Apache 2.0 Server.
PHP and Apache 2.0 compatibility notes
The following versions of PHP are known to work with the most recent version of Apache 2.0:
These versions of PHP are compatible to Apache 2.0.40 and later.
Note: Apache 2.0 SAPI-support started with PHP 4.2.0. PHP 4.2.3 works with Apache 2.0.39, don't use any other version of Apache with PHP 4.2.3. However, the recommended setup is to use PHP 4.3.0 or later with the most recent version of Apache2.
All mentioned versions of PHP will work still with Apache 1.3.x.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.