apache

Localhost extensions check

Hi. I have to install big CMS on my localhost, but it requires mcrypt, and pdo_mysql. Before I've tried to install them, I've tried to access site, but I only got blank page. I'm running apache on windows, so I heard that I have to keep dll's in php extension folder. I've downloaded from dlldll.com (it's not ad) files php_pdo_mysql.dll,...

Ruby and Apache

I followed these instructions, installed passenger, but the web page is still not resolving to the ruby app. It just shows the files. Please help! http://wiki.github.com/teambox/teambox/installing-on-ubuntu ...

REST API on Lighttpd does not take file

I have a REST API written in PHP located on Apache server. It takes as a parameter a file (15KB). When I call this API from J2ME application it does work fine. Moreover when I wrote a API client in C# it worked too fine. But now I have this second server with Lighttpd. I copied my API to this server and called it from C# app and it wor...

Perl Connection Pooling

Right now we have a large perl application that is using raw DBI to connect to MySQL and execute SQL statements. It creates a connection each time and terminates. Were starting to approach mysql's connection limit (200 at once) It looks like DBIx::Connection supports application layer connection pooling. Has anybody had any experience...

Batch Import of json documents to Apache CouchDb

I have approximately 250,000 JSON-formatted files, each with one object in it (formatted just how CouchDB likes it with _id). What's the best way to import these into my remote CouchDB server as records? -I am on a windows xp machine. -I have internet access but I can't set up a couchDB server on my local machine and have it be WWW ac...

Saving Files in the Root Website Directory in Apache

I have an ASP.NET application running on Apache server with mod_mono. If I have a folder called "temp" located in the website's root directory and run the following code System.IO.TextWriter tw = new System.IO.StreamWriter("temp/test.txt"); tw.WriteLine(DateTime.Now); tw.Close(); it saves test.txt in C:\Program Files\Mono-2.6.4\bin\te...

URL Rewriting - PHP + Apache

I wanna turn PHP dynamic URLs into static URLs. For example, I want URLs like http://www.example.com/book.php?title=twilight to become http://www.example.com/book/twilight and http://www.example.com/writer.php?name=meyers to become http://www.example.com/writer/meyers When it's done, will my form validation on the site change? My URL...

Most affordable, portable, battery-powered hardware for running a LAMP setup for development?

I will be flying to Australia (~15 hr. flight) and I'd like to continue work on my current project while on the airplane. My project (website on CakePHP framework) requires a LAMP bundle so I'm looking for a very portable, reasonably affordable device that can accommodate a LAMP installation, and also could retain battery life througho...

Upgrading Wampserver

Hi, I looked for a specific answer to this question, but couldn't find it -- even on the WAMPSERVER site. I'm sure I overlooked it. I have Wampserver 2.0, with MySQL 5.0.51b, PHP 5.2.6, and Apache 2.2.8. Would it be correct to install Wampserver 2.0i (MySQL 5.1.36, PHP 5.3, and Apache 2.2.11) over the older installation? Would I los...

Install cURL in CentOS

Can someone direct me on how to install cURL on a CentOS server. Preferably through WHM if it's possible to recompile PHP that way.. I am a noob in SSH and this is a production server. ...

Installing PHP APC on Windows/Apache

i need help installing and configuring PHP APC i have downloaded from http://downloads.php.net/pierre/ in my PHP info, i see Compiler MSVC9 (Visual C++ 2008) Architecture x86 so i downloaded php_apc-5.3-nts-svn20100226-vc9-x86.zip. then to install, i tried adding [PHP_APC] extension=php_apc.dll to php.ini. restarting Apach...

How do i map myapp/index.php/controller/view to myapp/controller/view?

Hello, I am using CodeIgniter framework for PHP. It requires that index.php should be there in whatever url i type. How do i prevent this? Can anybody provide me a simple .htaccess file that will implicitly map it to index.php so user doesn't have to type it every time? Thanks in advance:) ...

.htaccess is interfering with nested .htaccess/.htpasswd?

I'm using Simple Mailing List (http://www.notonebit.com/projects/mailing-list). It's good mailing list, but no admin area. So you have to use .htaccess/.htpasswd to protect the /mail/admin folder. However, my site has WordPress installed in the website's root folder. WordPress creates .htaccess for custom permalinks. And for some reason...

How to add banners and ads on squid

hey guys are you aware of anchorfree vpn?, i have used them before, however i am running my cybercafe on squid, and i want to advertise using squid, i would like to know how to add a banner at the top of every page randomly just like anchorfree thank you. ...

Apache Rewrite Rule (Regex)

Hello fellow programmers, I'm using apache and i need to rewrite URL of type: /a/b/c/d/boundary/stuff* to: /boundary/a_b_c_d/stuff* I need to rewrite the first Uri to the second format. The number of elements before '/boundary' are variable and i want to replace all slashes('/') between elements by '_' The boundary word is...

GWT + GAE Servlet URL and Servlet Mapping

http://127.0.0.1:8888/socialnetwork/contactsService That's the current URL for one of my servlets. My question is, how do I change it? In my web.xml file, altering <servlet-mapping> <servlet-name>contactsServiceServlet</servlet-name> <url-pattern>/socialnetwork/contactsService</url-pattern> </servlet-mapping> to <serv...

Mod Rewrite for NGINX

Hi Everyone, I'm currently using nginx as a transparent proxy for apache. I would like to use nginx + fcgi(php) but need mod-rewrite support. Is this possible or is there an alternative solution to my woes? This is for only 1 site, would litespeed be an effective solution? ...

Give 404 on existing folder/directory

I have a folder in my root that i want no one to know of. Even if someone types in it correct i want to throw a 404 not found. Would this be Possible to do with mod-rewrite perhaps? I cant store it outside root right now, dont ask why Thanks! ...

MAMP Pro + Espionage folder encryption = 403 error?

I'm using MAMP PRO on my OS X 10.6 with Espionage to encrypt my ~/Sites folder (where MAMP is pulling my virtual hosts from). I'm having trouble having MAMP's Apache follow the symlink that Espionage automatically creates to /Volumes/EspionageMounts/lee/3042560432 (I believe this changes all the time, so cannot be static). My 'Sites' f...

Symfony - name based virtual servers on localhost - is this possible?

I am rapidly coming to the conclusion that this is not feasible, although for some reason, people - most likely who have not implemented the 'advice' they give, seem to think this is possible. The scenario is quite straightforward. I am developing symfony websites on my local dev machine, running Ubuntu 10.0.4 LTS. I want to be able to ...