apache

Social networking sites using ASP.NET or PHP

I am familiar with both ASP.NET and PHP and now want to develop a social networking website. Before start development, I have been browsing some articles / forums and etc to find out which technology is suitable to develop and handle much traffic in future. Some people prefer PHP for the development. Is this only because of: open sou...

CakePHP webroot not accessible on new Apache setup

I've just set up a new Ubuntu 10.4 slice on Slicehost, and have installed apache, mysql and php. I've uploaded my CakePHP app and everything is running fine, except for the webroot being inaccessible. I have tried adding AllowOverride to all in /etc/apache2/sites-available/default and followed the Cake instructions to httpd.conf by addi...

Concurrent execution in apache/mod_php?

Hello, i am currently working on an MVC webframework with a very special feature. Layouts defined in XML files are seperated into content blocks that can be arranged/cached/loaded individually. Every content block (this could be e.g. the footer which is re-used on several pages) has some sort of Controller of its own. I call it Blockco...

Where is the proper place for mod_rewrite entries?

Hello fellas, For the love of God, I can't seem to get this mod_rewrite working properly. Instead of doing brute force trial-and-error, let me ask here. I want mod_rewrite rules to apply to ALL domains. I want mod_rewrite entries in httpd.conf I want to get rid of this WWW virus (for SEO purposes): http://www.example.com > http://ex...

PHP/Apache: GET Request Doesn't Exist?

Hi, Basically I have the following in my .htaccess file in the root of my site: Options -Indexes <IfModule mod_rewrite.c> Options +FollowSymLinks RewriteEngine on RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule ^(.*)$ index.php?route=$1 [L,QSA] </IfModule> In my PHP script when I use $_GET['route'...

How to serve up dynamic content via django and php on same domain?

I just finished rewriting a significant portion of my web site using python's django, but I also have some legacy code in php that I haven't finished migrating over yet. Is it possible to get these two working on the same domain and if so, how do I go about doing it? I'm running this site on a virtual Ubuntu instance and serving content...

How to get php page load time statistics?

Recently we've been having problems with our LAMP setup and we started to see the number of MySQL database connections spike up every now and then. We suspect that some mysql operation is taking longer than usual and apache just started to build a backlog of connections to deal with incoming requests. Question is, is there a way to per...

What is wrong with this apache url htaccess rewrite rule?

I've got this: RewriteEngine On RewriteRule ^/redir?url=(.*)$ http://blah.$1 When I use this and go to the url that looks like: http://www.mydomain.com/redir?url=www.otherdomain.com It says the file isn't found on my server. I.E. no redirect. What I want it to do in the above example would be to redirect to: http://blah.www.othe...

Rewrite only specific URL's through .htaccess

Hi All, I have created a front controller for my website. I want to pass all requests to the website through this front controller. Now I also have some other software installed in the web root and right now I am adding those folders to ignore via .htaccess so that their requests also don't go to front controller. I am doing something l...

Is it ok to rely on the writeability of /tmp folder?

Is it ok to assume /tmp folder writable by PHP/Apache on any unix system? I'm making a script and want to save cache in the tmp folder and want to know whether that can cause problems. ...

apache/php : possible to throttle uploads?

My website allows users to upload their photos Can I put kb/sec (or similar) limit on uploads to prevent them impacting performance of the frontend of my site? ...

Mapping multiple domain names to different resources in a Rails app

The rails app I have allows users to manage holiday homes. Each property has it's own "website/homepage" within my app and a user can tweak the content, it works well, quite pleased so far. Typical rails approach to the resources so the URLs to a particular property look like this for the "homepage" of a particular property. localhost:3...

Apache, PHP: send filename through $_GET

Hello, I'm having an upload Java applet to handle large files upload. The use of this upload is mandatory, so dropping it is not an option. The problem is that, after the upload, the applet redirects to a given url and sends some info through $_GET. I can't change that ( the sending method, the params order ). And the last param sent is...

which of these two servers are likely to do better under heavy http load?

As the title asks, the reason I'm asking is because I have a wordpress site which gets about 10K visitors per day on a dedicated server from iweb but in the evenings, around 8 to midnight the site crawls to a halt and page load time goes up to about 12 seconds or more compared to 2-3 during the day. Checking my google analytics its shows...

how to change my domain Name to new one in Ubuntu Apache PHP?

Hello guys, I need help. Currently I am using Ubuntu Apache server with PHP. My server name is some rt-arr-php. I want to change it to rtapp.arr.edu Please help me. Thanks, Raj ...

How to get String array from returned XML-RPC object?

I am using Apache java XML-RPC latest version. The code for sending the array in Server is the following: LinkedList<String> messages = new LinkedList<String>(); public String[] getMessages() { System.out.println("Sent messages"); return messages.toArray(new String[messages.size()]); } To receive in the client I have tried s...

localhost/test.php is also reachable under localhost/test/

What is wrong with my apache-conf, why is the file also reachable under a folder-path without an extension? I haven't set any rewrite rules and there are no .htaccess files. This is the default os x apache installation. ...

Hudson server always stopped every morning day ?

Hi Everyone, I've got this regular problem every morning that my build server (Hudson) is always stopped every morning so I have to manually start it, is there any reason why or any location that i can started to look for the error message ? Thanks. here's the error diagnostic that i did: ascari:~# ps -ef | grep -i hud root 595...

PHP Apache SQL Server production environment on OS X

I have a client who wants me to build a site using PHP and SQL Server. Problem is I do all my PHP development in OS X running Apache. I have one machine running Windows with an SQL Server production environment but I can't seem to connect via "sqlsrv_connect" because I can't install the drivers for sql server on my Mac Has anyone found ...

what's the lowest the timeout value in apache should be set to?

I'm having issues with rails/ruby passenger and need to lower the timeout value for apache. I lowered it to 30 before. What are the effects of setting it really low - like 5 seconds? ...