lamp

Windows server person wanting an easy way to migrate to Linux/Java (LAMP I guess)

Hi, open ended question I realize.. and probably well documented somewhere! I used to write a lot of Java server code way way back - mostly banking etc... I have been using mostly a windows platform for quite some time.. so I am about to re-embark on the Linux/Java/PHP/MySQL travels... Just wonder, given the administration for Windows...

Is it more memory efficient to store images in mysql as BLOB or as plain files somewhere?

I have a LAMP server with 256MB RAM (poor man's server in cloud). I have an app written to run on this machine. Currently people upload images and they go straight into mysql as BLOB. There are concerns that this might be very memory consuming operation and we move over it to simple plain files. Can some one tell me if these concerns a...

Back-end services on LAMP

We are developing a web-client for a startup. We are thinking on different solutions. We need a guideline on how to handle back-end services. We are developing the web-client on LAMP stack. There are certain DB tasks that needs to be handled 24/7 at back-end. Would it be flexible enough to write those services in JAVA? We are really new ...

PHP MS SQL Unix Driver - Microsoft or FreeTDS

I am running a LAMP server but now need to connect to MS SQL (client request). I have heard Microsoft has a driver, but can't verify if Does anyone know if the Microsoft driver is available for Unix? If not, should I just stick with FreeTDS? This appears to be recommended by PHP, however install documentation seems lacking. Any directi...

If you have an SSL Cert, why not use https for the whole site?

I was asked this question not too long ago, and didn't have a good answer... Is there a good reason why a site that has an SSL certificate wouldn't use https:// for their entire site rather than http:// Are there SEO issues? Performance overhead for the server? Just in case it matters, we use LAMP stacks. Thanks! ...

Search Engine Help

I have a mediawiki installation that I've customized with some of my own extensions. Here is the basic platform, pretty standard LAMP install. Ubuntu Server Apache 2 Mediawiki 1.15 PHP 5.2.6 MySQL 5.0.67 For the actual MW search I use Lucene (EzMwLucene). I also have custom extension that displays tabular data from a separate datab...

Certain Pieces of a Web Page in MVC

I am rewriting a client's application from a crappy built as one huge blob of a project into a MVC application for obvious reasons. In doing a view for pieces of it I am noticing the original programmer has plenty of statements where they change up images or put in different links based on the logged in user. How does everybody that wr...

Lightweight method to cache some text with LAMP

I have a symfony website running on the standard LAMP setup. I need to store about 400 bytes (the result of a JSON query, actually). the result for this query fails often (out of my hands). I want to cache this somehow. what is the easiest, cleanest, lightest way to do this? I have a MySQL database that's being used by my models, so I ...

Could aggressive proxy/cache server be causing session problems?

I have a question regarding whether incorrectly configured proxy/cache servers might be the cause of an odd problem I have seen in my web application. The application is LAMP based, and run off a single host, and the service is used from a number of different countries. Sessions are used to manage user interactions. While this appli...

Find a file and open it for editing. How to do it fast in a bash shell ?

I face many times this simple and repetitive task configuring the LAMP or some stuff in Ubuntu or Drupal: I have to edit a config file (php.ini, httpd.conf, ... whatever) so quite frequently, if I don't remember the path by heart, I run these 2 commands: locate php.ini ------- typing manually one of the paths that are shown in the list...

On a LAMP server, I want the URL http://example.com/index.php to be rewritten to http://example.com. How do I do that?

On a LAMP server, I want the URL http://example.com/index.php to be rewritten to simply http://example.com My current .htaccess file is as follows... IndexIgnore * ErrorDocument 400 /index.php?module=error&action=error ErrorDocument 401 /index.php?module=error&action=error ErrorDocument 403 /index.php?module=error&action=error ErrorDo...

Lock visitor until mysql query is complete

I have a bunch of pages on a site for which the actions that can be taken on one page are contingent upon the info in the database for the site visitor. So, let's say Visitor A comes to page B and updates a database to show that they have joined a certain group. Then the visitor goes to page C, the group page. If the user is a group memb...

No error output after installing all LAMP components

Today I installed LAMP on my Ubuntu 10.04. I created separate VH file for my site. When I started playing with code I noticed, that there are no errors. Some times code didn't appear, but no error message. I got curious and started to search, what might cause such behaviour. After 2h of searching I still don't have answear. Can anyone h...

UPDATED: Apache Chokes on PHP ldap_connect() Call

If I run the following PHP code on the command line I get the expected result: php -r 'var_dump(ldap_connect("ldaps://ldaps.example.com", 636));' resource(4) of type (ldap link) However if I put this in a PHP script <?php ldap_connect("ldaps://ldaps.example.com", 636); ?> Apache drops the connection, for example this is what cURL r...

Intermittent problem with UTF-8 characters

I am running a fairly standard LAMP stack. The problem is an intermittent rendering of UTF-8 characters correctly. About 50% of the time the non-ASCII UTF-8 characters render correctly (e.g. with appropriate diacritical marks), but about 50% of the time I get the '?' rendition instead. If I reload the page, sometimes it corrects the pro...

LAMP UTF-8 saving incorrectly to MySQL Database

I've converted my database from Latin 1 to UTF8, and using phpPMyAdmin you can enter data and display it correctly. However viewing in the pages I've developed in PHP and editing it using my simple CMS saves characters that must be incorrectly coded. I've spent a few hours researching and eventually came up with this code snippet: mysq...

Xampp / Lampp changing database dir (No datadir)

Hello, I want to use same database dir on my ubuntu installation as of windows 7, I read a lot on net which guided to change datadir of my.cnf but there is no datadir in my /opt/lampp/etc/my.cnf # Example MySQL config file for medium systems. # # This is for a system with little memory (32M - 64M) where MySQL plays # an important part,...

How to create a share folder for multiple domains on Dreamhost

I have a Virtual Private server with Dreamhost. I'm trying to create a shared folder that all of my domains can access. In the folder I'd like to put PHP classes, and even static files like javascripts. I've created a directory on the same level as my domain folders. I'd like to call a file via something like this... /home/username/sh...

Recommendation for an EC2 Instance Stack

Our development servers are on Amazons EC2. We would ideally like the following: PHP 5.3.x Oracle Drivers mHash mCrypt Apache Does anyone have a recommendation on a good place to get a stack that would meet most of those needs with a minimum of additional configuration? ...

Work-around for aggressive proxy/cache servers causing session problems?

I have a question regarding whether incorrectly configured proxy/cache servers might be the cause of an odd problem I have seen in my web application. The application is LAMP based, and run off a single host, and the service is used from a number of different countries. Sessions are used to manage user interactions. While this applicat...