LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This 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


Reply
  Search this Thread
Old 12-13-2002, 04:23 PM   #1
rosko
Member
 
Registered: Sep 2002
Distribution: RH8
Posts: 93

Rep: Reputation: 15
Please help me not convert to 2k server


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

Last edited by rosko; 12-13-2002 at 04:49 PM.
 
Old 12-13-2002, 04:43 PM   #2
Mike Blick
Member
 
Registered: May 2002
Location: Los Angeles
Distribution: Mandrake 10, LFS 4.1
Posts: 179

Rep: Reputation: 30
Maybe you should go to a M$ Windows forum for this question.
 
Old 12-13-2002, 04:45 PM   #3
rosko
Member
 
Registered: Sep 2002
Distribution: RH8
Posts: 93

Original Poster
Rep: Reputation: 15
If you don't have a contructive suggestion....why post.
 
Old 12-13-2002, 10:30 PM   #4
mcleodnine
Senior Member
 
Registered: May 2001
Location: Left Coast - Canada
Distribution: s l a c k w a r e
Posts: 2,731

Rep: Reputation: 45
Just a hunch but what do you get when you do a
Code:
grep cache /etc/php.ini
 
Old 12-13-2002, 11:42 PM   #5
rosko
Member
 
Registered: Sep 2002
Distribution: RH8
Posts: 93

Original Poster
Rep: Reputation: 15
mcleodnine,
I ran the following.

grep cache /usr/local/lib/php.ini
; Set to (nocache,private/public,) to detemine HTTP caching aspects
session.cache_limiter = nocache
session.cache_expire = 180

This look odd at all to you?
 
Old 12-13-2002, 11:54 PM   #6
mcleodnine
Senior Member
 
Registered: May 2001
Location: Left Coast - Canada
Distribution: s l a c k w a r e
Posts: 2,731

Rep: Reputation: 45
Dunno - it's the same as my setup and all my php stuff is just dandy.
 
Old 12-14-2002, 12:48 AM   #7
rosko
Member
 
Registered: Sep 2002
Distribution: RH8
Posts: 93

Original Poster
Rep: Reputation: 15
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.
 
Old 01-07-2003, 08:43 AM   #8
xcon
Member
 
Registered: Jan 2002
Location: Ohio
Distribution: Slackware 9.1 (and some 9.0)
Posts: 181

Rep: Reputation: 30
Re: Please help me not convert to 2k server

Quote:
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.
 
Old 01-09-2003, 05:01 PM   #9
antken
Member
 
Registered: Nov 2000
Posts: 368

Rep: Reputation: Disabled
just a quick one:

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


try that see how you get on
 
Old 01-09-2003, 05:10 PM   #10
rosko
Member
 
Registered: Sep 2002
Distribution: RH8
Posts: 93

Original Poster
Rep: Reputation: 15
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.

Last edited by rosko; 01-09-2003 at 05:11 PM.
 
Old 01-09-2003, 05:34 PM   #11
Bert
Senior Member
 
Registered: Jul 2001
Location: 406292E 290755N
Distribution: GNU/Linux Slackware 8.1, Redhat 8.0, LFS 4.0
Posts: 1,004

Rep: Reputation: 46
Re: Please help me not convert to 2k server

Quote:
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!
 
Old 01-09-2003, 05:49 PM   #12
antken
Member
 
Registered: Nov 2000
Posts: 368

Rep: Reputation: Disabled
Quote:
It's not IE...mozillla does it too
sorry i just scanned your post to get the jist of it, i really should read it through properly

Quote:
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.
i read some place that apache software people are now concentrating on fixing these compatibility issues.

apache2 usage is not yet that high because of these compatiblity issues

... that wat i read anyway

i find though when i do use mysql and it fails its normally, because of misconfiguration

i hope i'll see your forum floating around on the web some day
good luck
 
Old 01-09-2003, 05:55 PM   #13
rosko
Member
 
Registered: Sep 2002
Distribution: RH8
Posts: 93

Original Poster
Rep: Reputation: 15
OH it's floating .

http://forums.coloradogamers.com
 
Old 06-23-2004, 12:37 PM   #14
rivang
Member
 
Registered: May 2002
Location: Elkview, WV
Distribution: Slackware 10
Posts: 139

Rep: Reputation: 15
This is from http://www.php.net/manual/en/install.apache2.php

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:

* PHP 4.3.0 or later available at /downloads.php.
* the latest stable development version. Get the source code http://snaps.php.net/php4-latest.tar.gz or download binaries for Windows http://snaps.php.net/win32/php4-win32-latest.zip.
* a prerelease version downloadable from http://qa.php.net/.
* you have always the option to obtain PHP through anonymous CVS.

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.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
wanna convert server to linux.. snip128 Linux - Newbie 2 07-08-2005 01:08 AM
Convert SuSe 7.0 Server into FreeBSD 5.x Gsee *BSD 8 05-11-2005 11:46 AM
Convert Windows2003 ftp server to linux platform with user and password hitesh187 Linux - Networking 1 03-07-2005 06:50 AM
Why convert our M$ ISA server to squid ??? Agent007 Linux - Newbie 1 11-25-2004 04:18 PM
can we configure a Linux server with mail server,file server and web server kumarx Linux - Newbie 5 09-09-2004 06:21 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 11:10 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration