Hello, I recently discovered that one of our sites has a memory leak in it, it's very strange because it happened all of the sudden. I've used GTop to measure the memory size per process and it tells me that the real value is somewhere around 65 MB (on the server) per request and and additional 5 MB shared.
I tried preloading the modul...
I installed Apache on my Ubuntu server, and when it installed, it created a directory ~/Apache/ with directories such as htdocs, logs, cgi-bin, etc. I was then able to create several pages and scripts which I placed into the corresponding directories (~/Apache/htdocs, ~/Apache/cgi-bin), and I was able to serve these files on the web.
Un...
I want to redirect this:
foo.com/xxx
... to this:
foo.com/somepage.php?id=xxx
This is how I do it:
Options +FollowSymLinks
RewriteEngine On
RewriteCond %{QUERY_STRING} ^$
RewriteRule ^([^/]+)$ http://foo.com/somepage.php?id=$1 [L]
the problem now, is that foo.com doesn't work any more.
I can't see foo.com neither foo.com/index.p...
I'd like to set up a LAMP (or LAPP) web server for hosting Internet sites. Assuming no more than moderate traffic, are there practical concerns against setting it all up on the same machine (or, in this case, VPS?)
...
What is faster: writing PHP code using functions or writing it as pure script? So, as I see it Apache or any other server will create from PHP code using functions a pure script... I mean we had:
function foo($a, $b){ return ($a + $b); }
echo foo(4, 5);
and PHP will turn it into something like:
echo 9;
Or will it?
...
Hi guys i have this in my htaccess file, i was wondering what is it for ? what happens if i increase it to say 128mb or 16mb what difference would it make
...
I'm dynamically generating some charts using mod_python, in .png and .pdf formats. When a user points to /some/path/some_imagefile_name.png, I want to show the image within the browser, like in this url. I also want the image to be accessible from an HTML <img src=> tag.
So far, whenever I point my browser to a .png address from my serv...
Hi guys,
Have a very strange problem with Apache .htaccess URL Rewriting and Redirection. Here's my setup:
I have a zend application with a single point of entry (index.php) directly under my apache document root (call this the "public" folder). I also have all other public files (images, js, css, etc.) under the public folder. Here, ...
Hi,
I'm trying to install CakePHP on my Windows XP machine running Apache 2.2. I have installed the Cake folder in my doc root.
I've read the installation instructions that say to include this line in the httpd.conf file;
<Directory /path/to/cake>
Does anyone know how to translate that into Windows? I currently have the following in ...
Will calling
$ httpd graceful
clear out the APC cache, or do I have to do a full-blown
$ httpd restart
to do it? (Keeping in mind that I know there are better ways to do it, like calling apc_clear_cache() programmatically).
...
I need to add a comment to an HSSF Cell in Excel. Everything works fine the very first time but if I open the same file and run the code again it corrupts the file.
I've also noticed that I need to create a Drawing object on a Sheet only once:
_sheet.createDrawingPatriarch();
If the line above gets executed more than once comments w...
First of all, I have some time reading this page and I find very interesting, the content also has many questions and are very entertaining.
My question is about handling my incoming mail server, no matter if you use PHP, Perl, or Python.
I do not care, what if I want is the result which should be as close to:
I send an email to update...
Hi,
i have a web service implemented in java using apache cxf and spring. But the requirement is the same i need that service to be implemented in .net and use that service with my java project web service client..... the package structure of the interface and its implementation should be simulated in .net..... i am novoice to .net and ...
I want to use mode rewrite to display the following:
mydomain.com/Florida/Tampa/ instead of mydomain.com/place.php?state=Florida&city=Tampa
I've akready done this: (since I think it might make a difference!)
mydomain.com/[name].html instead of mydomain.com/profile?user=[name]
Here is the code!
Options +FollowSymLinks
Options +Indexe...
I just copied my magento site over to a local server running CentOS 5.4. The browser said it can't locate the location of the stylesheets. The stylesheets are within /skin/frontend/my_new_interface/design2/css. I tried to view in the browser and I can't view any of the files within the css directory. I verified a million times that I'm t...
I have a site that physically has this directory structure.
-public_html
--conf > contains file conf.php
-SiteFiles
-LiveSite > contains file ConfLive.php
Directory public_html/conf/ contains a file called conf.php
this file contains the following include
include_once('/home/mydir/SiteFiles/LiveSite/conf/ConfLive.iphp');
I wan...
I mean, can I use the com.sun.org.apache (all subpackages) classes as I use they from org.apache (in any Apache lib)?
Will the OpenJDK maintain this package up to date with apache updates?
And the JDK7 will maintain this package?
Where can I find information about that?
...
I'm on Android 1.5, and my code is like this:
HttpPost httpPost = new HttpPost(url);
HttpEntity entity = new UrlEncodedFormEntity(params, HTTP.UTF_8);
httpPost.setEntity(entity);
HttpResponse response = httpClient.execute(httpPost);
HttpEntity respEntity = response.getEntity();
String result = EntityUtils.toString(respEntity, DEFAULT_C...
I am facing a problem while submitting a simple HTML form. Here is the form:
<form name="form1" method="post" action="dest.php">
<input type="hidden" name="my_url" value="http://www.livrotek.com/book_image/thumb/12726851341.jpg" />
</form>
When I submit this form, I get an apache error:
You don't have permission to access dest.php on...
We have a custom PHP/MySQL CMS running on Linux/Apache thats rolled out to multiple sites (20+) on the same server. Each site uses exactly the same CMS files with a few files for each site being customised.
The customised files for each site are:
/library/mysql_connect.php
/public_html/css/*
/public_html/ftparea/*
/public_html...