Dynamic Caching And PHP
Mar 4, 2009
I'm developing a PHP application which will be hosted on IIS7 and I'm interested to see if it is possible to get dynamic caching working when using an MVC pattern (I'm currently using the Zend Framework and it's Frontcontroller implementation).
View 0 Replies
ADVERTISEMENT
Mar 27, 2009
Does anyone have this weird problem?? For php applications, they're not so much of an issue. But recently I started to put up .NET applications and there it started so many problems.
The first and most annoying is the caching problem. Whenever i uploaded an aspx file with some change, it takes ages to show up. I have to wait like many many hours to finally see the new version.
View 5 Replies
View Related
Dec 1, 2007
I've got APC installed and caching op-code fine, and I'm preparing to use the data caching. I did a small test according to the manual:
PHP Code:
<?php$bar = 'BAR';apc_store('foo', $bar);var_dump(apc_fetch('foo'));?>
Returns:
string(3) "BAR"
All good. Then I run just the fetch bit:
PHP Code:
<?phpvar_dump(apc_fetch('foo'));?>
Returns:
bool(false)
It seems that the data is not caching beyond the execution of the file with apc_store in it. How to fix this? Or am I misunderstanding the way data caching works in APC? May be a silly question but I'm working with this for the first time and would appreciate help.
View 2 Replies
View Related
Aug 26, 2007
When I downloading some files from my ftp on server, this files ALWAYS caches by server.
E.g after downloading 50MB file, server's cache are much bigger than before downloading.
In effect my board which is installed too on server has got less memory space for current php/mysql operations. How can I modify or disable that server caching? I have got Debian 4.0 and PhpAccelerator.
View 0 Replies
View Related
Oct 7, 2013
I updated our Apache 2.2. to Apache 2.4.6. (on Windows 2008). Now, I'm not sure if caching with mod_cache and mod_cache_disk is working properly.
Reproduce:
- Restart Apache and clear the cache
- Open a simple html site on the webserver
- If you take a look at the cache-directory, two files are generated (i.e. 12aabcd1234.data and 12aabcd1234.header)
- Wait a minute or two and refresh the site, doing a second request
You see that:
With Apache 2.2, the files in the cache-directory are not updated after the second request. They have the timestamp from the first request. With Apache 2.4, the files in the cache-directory are updated on the second request. They have the timestamp from the second request.
So it seems to me, that Apache 2.4 is not really caching. On every page refresh, Apache is updating the files in the cache.
View 1 Replies
View Related
May 2, 2009
Currently I cache php to html in a folder, and any time I upload index.php the whole site recaches. It also is set to a specific time such as 1 day, and the specific page will recache on someone hitting a page in 1 day from last cache.
The problem is when there are thousands of people on, and the index.php is uploaded the site crashes due to connections to the database, and possibly writing to the folder as well.
What is the best way to cache these files to html, and not have it crash every time I try to update things on the site. Also it needs to be something somewhat simple.
View 1 Replies
View Related
Jul 19, 2008
why so few shared hosting companies enable a php op-caching system on their system (xcache, apc, eaccelerator).
Is there some specific technical reason in place?
Usually I run my own servers, but it happens from time to time that you need a quality shared hosting in order to reccomend it to a friend, for a personal blog, a small website, maybe your own personal blog that you're not keen to host on your dedicated servers already used for big projects ...
Now, as everyone using php applications knows, software like xcache or eaccelerator gives a nice speed bost to page generation. I run xcache on all my servers and vps (mainly running vbullettin and wordpress) and never encountered any issue.
Installing one of those (eg. xcache) is a 5minutes procedure, and even for kiddie-hosting companies that won't know how to build php, the ability to compile eaccelerator is in the cpanel easy php build software, so you don't even need to know how to rebuild php to enable eaccelerator in cpanel.
Despite all these facts is quite impossible to find a decent webhoster with xcache or apc/eacc enabled ...
The only one claiming to have eaccelerator is medialayer : "# Zend Optimizer, IonCube, and eAccelerator" this is a quote from their website.
How come nobody else undertakes this step?
What I have been noticing is most premium shared-hosting provider I encountered run their server with a lot of free memory .. so why not impress the customer with blazing fast page generation times (wordpress footer displaying "page generated in 0.071 seconds" impresses also the non-technical savy customers) enabling such a simple feature ?
There should be something I am missing, for sure.
View 14 Replies
View Related
May 31, 2009
we have little problem on our server - from some time it starts reporting some errors:
kernel: spamd[6479]: segfault at 9a16000 ip 467840ac sp bffe9b5c error 6 in libc-2.5.so[46713000+13e000]
kernel: webalizer[12318]: segfault at 81a80cc ip 080d9279 sp bff2f230 error 4 in webalizer[8048000+b2000]
kernel: spamd[6515]: segfault at 9cbb000 ip 467840ac sp bffe9b5c error 6 in libc-2.5.so[46713000+13e000]
kernel: pure-quotacheck[16285]: segfault at bf3c9ff8 ip 46769d76 sp bf3c9fec error 6 in libc-2.5.so[46713000+13e000]
kernel: php[14910]: segfault at bf727da0 ip 080b0edc sp bf727d30 error 6 in php[8048000+64d000]
errors appear 2-3 times every 10min and always in this 4 programs: webalizer, php, spamd, pure-quotacheck
and second thing there is problem with some file caching or sth - for example when we restarts named it reports:
/etc/named.conf:23564: open: /var/named/slaves/slaves.named.conf: file not found
file of course exist but funniest thing is when we remove this line from named.conf and tries restart it, error appear again, even when this line is empty in named.conf and there is no other include of this file
even after server restart (without this include in named.conf) it still reports this error
server config: C2Q Q9550, 8GB ram, 2x500GB in hw Raid1, Centos 5.3 32bit, cPanel
maybe someone have any idea what it could be, and what else we can check ?
View 0 Replies
View Related
Aug 20, 2014
I would like to setup a caching Bind nameserver for which I need to modify the file /etc/named.conf. The file is automatically created by Plesk however and I am unable to find information on how to modify the file in Plesk.
Code:
#ATTENTION!
#
#DO NOT MODIFY THIS FILE BECAUSE IT WAS GENERATED AUTOMATICALLY,
#SO ALL YOUR CHANGES WILL BE LOST THE NEXT TIME THE FILE IS GENERATED.
// $Id: named.conf,v 1.1.1.1 2001/10/15 07:44:36 kap Exp $
Any way to modify named.conf?
View 1 Replies
View Related
Apr 13, 2009
Is there anything that takes the concept of a CDN (localised content delivery), but applies it to dynamic stuff like PHP and databases, syncing across worldwide servers as necessary? It'd be nice to deliver the entire site in a localised manner.
I'd imagine Google does something like this for their own sites, and maybe other large companies too — but I have no idea if such a technology exists in the consumer space.
I can see it being a logistical nightmare having to keep all versions of the database in sync, so it wouldn't surprise me if nothing like this exists.
View 3 Replies
View Related
May 18, 2007
I received this error msg for my Plesk account
Cannot log into Webmail. It shows error: "Your Internet Address has changed since the beginning of your Mail session. To protect your security, you must login again."
The solution is given by
[url]
But the host that I was using in the USA refuse to implement it saying it will endanger the server. Is it true? But most of us are using dynamic IPs ADSL, this restriction will affect all, wont it?
View 3 Replies
View Related
Nov 2, 2008
im trying to set up a site for a client whereby they can add subdomains to their existing domain (http://test1.client.com/, http://test2.client.com/, etc.).
its a dedicated server with Plesk...can anyone point me in the right direction please?
ive searched these forums but havent come up with much, but maybe didnt search for the right terms, so my apologies if this has been answered before.
View 1 Replies
View Related
Feb 9, 2006
I need to forward some dynamic URL's So for example:
mysite.com?product=1
needs to be directoed to
mysite.com/1.htm
How can I do this in .htaccess?
View 1 Replies
View Related
Sep 4, 2008
A casual reader of WHT would observe that there is no perfect hosting company. They will all at one time or another have either a performance issue or an outright outage.
I think there is a simple way to address this problem: upon detecting a failure route traffic to a secondary location. This is done typically through Dynamic DNS.
There a lot of monitoring companies out there and most of them - if not all - limit their function to sending out an alert. Well, that's not good enough for an HA solution.
There needs to be a way to take actual automated remedy action upon failure detection.
I think the simplest possible action would be to update IP address of a host with a backup IP through dynamic DNS. My question then is: does any one know of a monitoring service that would support this?
If you think of a cost of adding another hosting account through a backup provider especially if they both use cPanel, its minimal. And yet you would have a HA solution that enterprise customers spend millions on.
View 14 Replies
View Related
Apr 9, 2008
I have a problem with a site that I'm hosting on a managed dedicated server - I'll try to explain this as simply as possible!
From my office I seem to have a problem viewing dynamic pages on the site.
- The HTML index page loads fine
- Internal dynamic PHP pages throw up 404s
- Other PHP pages/sites on the same server are fine
- The pages load fine using a proxy browser
- I've cleared my cache which made no difference
- From other locations (home) I have never had the problem
I'm obviously worried that I'm not the only person having these problems.
The fact that the site loads fine through a proxy indicates that there's not a problem with the server,
However I'm confused that it's not a local problem as the HTML pages shouldn't be loading either right?
View 1 Replies
View Related
Oct 3, 2007
I've got an application (java web ) tha dynamically creats images ( with dynamic url - ...tab&vi=nia&h=24&ds=bottom&fn...) - like thumbnails,icons ect.
The think I'm trying to deal with is to force caching theese images by a browser.
When the application starts the server gets images and shows code 200 ( and this images apppers in web browser cache), but after reloding or simply viewing the images from the cache url the server shows again code 200. I'd like to have code 304 - not modified - like when browser gets an image from cache.
The dynamic url for image is being created only once - when the appication starts, and after that it stays unchanged, but I still can't force use the cached images - like when it is a static url - .../image.jpg.
View 10 Replies
View Related
Jul 10, 2013
For some reason I have some old urls which just don't want to rewrite. I have lots of others working fine but I think it may be to do with the symbols in these paths which are stopping it from working. Ideally these should be 301'd.
I need view.asp?filter=category%20name to go to category-name
View 3 Replies
View Related
Feb 22, 2008
Many ISPs assign dynamic IP addresses and I'm wondering if the following will be a problem for my site if it for example had 5 million all-time unique users:
So if someone new comes to my site with an IP that has already been in use by someone else who visited my site, that user will use the same databases with the previous user and won’t even be considered a unique in user.
Do dynamic ISP given IPs work so that someone else gets that IP once you release it?
View 5 Replies
View Related
Sep 19, 2008
Currently I have my site hosted on a box at home, and using JIP to autoupdate the dynamic ip through zoneedit.
What am I am looking to do is to move my site to a hosted company, and keep my exhange server at home, having the dynamic ip updated through zoneedit, or other.
I have been poking around in zoneedit, and searching the web, but don't seem to be able to work it all out. (the autoupdater, JIP, wants to change the site ip at the same time)
View 2 Replies
View Related
Jul 18, 2008
I have a weird issue with my Plesk VPS. If I restart the VPS it will work find for about 20 minutes and then go down. All my websites will continue to load and load until they time out.
The weird thing is, I can still access everything. FTP, Plesk, SSH. Just no my websites.
Here is the last error I receive before it continues to load:
PHP Warning: PHP Startup: Unable to load dynamic library '/usr/lib/php/modules/pgsql.so' - libpq.so.4: cannot open shared object file: No such file or directory in Unknown on line 0
Here are the last few errors in my log:
[Thu Jul 17 19:51:59 2008] [notice] suEXEC mechanism enabled (wrapper: /usr/sbin/suexec)
[Thu Jul 17 19:51:59 2008] [warn] RSA server certificate CommonName (CN) `plesk' does NOT match server name!?
[Thu Jul 17 19:51:59 2008] [warn] RSA server certificate CommonName (CN) `plesk' does NOT match server name!?
[Thu Jul 17 19:51:59 2008] [notice] Digest: generating secret for digest authentication ...
[Thu Jul 17 19:51:59 2008] [notice] Digest: done
[Thu Jul 17 19:51:59 2008] [notice] LDAP: Built with OpenLDAP LDAP SDK
[Thu Jul 17 19:51:59 2008] [notice] LDAP: SSL support unavailable
PHP Warning: PHP Startup: Unable to load dynamic library '/usr/lib/php/modules/pgsql.so' - libpq.so.4: cannot open shared object file: No such file or directory in Unknown on line 0
[Thu Jul 17 19:51:59 2008] [notice] mod_python: Creating 4 session mutexes based on 128 max processes and 0 max threads.
[Thu Jul 17 19:51:59 2008] [warn] RSA server certificate CommonName (CN) `plesk' does NOT match server name!?
[Thu Jul 17 19:51:59 2008] [warn] RSA server certificate CommonName (CN) `plesk' does
NOT match server name!
View 6 Replies
View Related
Mar 6, 2007
I'm trying to compile PHP 5.2.1 on my Ubuntu 6.10 server. I've downloaded the source code from php.net and am running the following configure command on it:
Code:
./configure --with-apxs2=/usr/bin/apxs2 --with-mysql --with-informix=/opt/informix --enable-shared --enable-pdo=shared --without-sqlite --without-pdo-sqlite --with-pdo-mysql=shared --with-zlib --with-xml --with-pdo-informix=shared,/opt/informix
After doing this, then make, I copy over the generated libphp5.so file into my Apache extensions directory, add extension=pdo.so (and lines for the PDO-MySQL/Informix extensions) into my php.ini and restart Apache. I would expect to see PDO, PDO-MySQL and PDO-Informix listed in my phpinfo() - but they don't appear.
So, I tried recompiling PHP but without any of the PDO extensions being shared. This worked, and I could see PDO and PDO-MySQL in phpinfo(), but not PDO-Informix.
So, can anyone hazard a guess as to why none of the PDO extensions load when compiled shared? I don't get any related error messages in the Apache or System logs by the way....
View 0 Replies
View Related
Sep 12, 2008
If I wanted to host my website from home is there a solution to having a Dynamic IP issued by the internet company ?
View 6 Replies
View Related
Nov 14, 2013
I transferred my WordPress site to static HTML website, but some other website have a link to my old WordPress site URL....
I want to redirect all traffic from that URL to new URL which is URL...., but my redirect in .htaccess file doesn't work (Redirect 301 /?page_id=1234 URL... because of the query string."mod_rewrite" to create the right code in .htaccess file.
View 1 Replies
View Related
Mar 15, 2013
how can I rewrite a dynamic image url? URL....
View 3 Replies
View Related
Mar 1, 2013
I have been trying to install apache server on a windows pc which will deliver adobe HDS content. there is a specific tutorial for this in the adobe site, can be found here. I have been following it to the word, but when I try to start apache after asking it to load new modules (mod_f4fhttp), it returns me an error saying that the file is not readable/not found. I have installed the proper visual c++ libraries and also checked the permissions and spellings. This seems to be a common error with php modules in apache, but none of the solutions seems to work.
View 1 Replies
View Related
Feb 15, 2013
I'm really struggling to write htaccess rules for dynamic pages. I've like 20 pages to redirect What I want to do is redirect:
[URL] ....
to
[URL] ....
View 10 Replies
View Related
Oct 29, 2014
How do I architect and design a dynamic, white-label website i.e. a site where the components are dynamic based on a path component in the URL?
View 1 Replies
View Related