Archive

Archives pour 02/2024

Increase PHP memory limit

16/02/2024 Comments off

note: increasing PHP memory limit is different from increasing PHP upload size. You can learn to increase upload size here.

A PHP memory limit of 32MB is the minimum requirement for Drupal 7 (16MB for Drupal 6), and 64MB is recommended. Some sites may need more than 64MB if they are using certain contributed modules such as Views and Panels. Memory limits of 128MB and higher are not unusual. There are several techniques to increase the PHP memory limit and you only need to use one of them. The right one for you depends on your system configuration.
Lire la suite…

Categories: Logiciel Tags: , ,

How to mount ext2/ext3 Linux Volumes in Mac OS X (Snow Leopard) with Read/Write access

16/02/2024 Comments off

Source: The WireFrame

I was actually surprised to find out that there is no native support for popular ext2/ext3 Linux Volumes in mac OS X. So if you are like me and have ext2/ext3 drives lying around and want to access them using OS X then here is a compact guide to sort things out in Snow Leopard.

1. Install MacFUSE

If you haven’t already installed it download and install MacFUSE from http://code.google.com/p/macfuse/downloads/list.

2. Install FUSE – Ext2

Once you have MacFUSE download and install fuse-ext2 from http://sourceforge.net/projects/fuse-ext2/. Even though it says fuse-ext2, this one package gives both ext2 and ext3 read-write support.

After installation you should see both MacFUSE and fuse-ext2 icons in System Preferences.

 

fuse_ext2

That’s it. You now have support for ext2 and ext3 file systems. When you plug in an external ext2/ext3 partition it should automatically show up in Finder, mounted and ready to use. You can also use the following commands if you prefer the shell.

$ fuse-ext2 <device|image> <mountpoint> [-o option[,...]]
$ mount -t fuse-ext2 <device|image> <mountpoint>

 

Note: If auto-mount is not giving you read/write access to ext2/ext3 partitions then you will have to edit the auto-mount script for fuse-ext2 which can be found at /System/Library/Filesystems/fuse-ext2.fs/fuse-ext2.util.

$ sudo nano -c /System/Library/Filesystems/fuse-ext2.fs/fuse-ext2.util

Around line 207 (in function Mount ()) you will find the line OPTIONS="auto_xattr,defer_permissions". Change that line to read asOPTIONS="auto_xattr,defer_permissions,rw+".

...
function Mount ()
{
LogDebug "[Mount] Entering function Mount..."
# Setting both defer_auth and defer_permissions. The option was renamed
# starting with MacFUSE 1.0.0, and there seems to be no backward
# compatibility on the options.
# OPTIONS="auto_xattr,defer_permissions"
OPTIONS="auto_xattr,defer_permissions,rw+"
# The local option is only enabled on Leopard. It causes strange

…


Categories: Système Tags:

How to chmod 755 all directories but no file (recursively)?

15/02/2024 Comments off

zqtPL

To recursively give directories read&execute privileges:

find /path/to/base/dir -type d -exec chmod 755 {} +

To recursively give files read privileges:

find /path/to/base/dir -type f -exec chmod 644 {} +

Or, if there are many objects to process:

chmod 755 $(find /path/to/base/dir -type d)
chmod 644 $(find /path/to/base/dir -type f)

Or, to reduce chmod spawning:

find /path/to/base/dir -type d -print0 | xargs -0 chmod 755 
find /path/to/base/dir -type f -print0 | xargs -0 chmod 644

 

Categories: Système Tags: ,

PHP accélérateurs : eAccelerator XCache ionCube Nusphere APC MemCache (cache PHP)

15/02/2024 Comments off

Selon leur système de cache, quel est le meilleur accélérateur de code PHP ?

Les différents PHP cache accélérateur

Les accélérateurs maintenus

APC

APC — Cache PHP alternatif

Le « Alternative PHP Cache » (APC) est un cache d’opcode libre et ouvert pour PHP permetant d’optimiser le code PHP et le cache de données et le code compilé PHP depuis le compilateur bytecode en mémoire partagée. Il a été conçu afin de fournir un framework libre, ouvert et robuste pour la mise en cache et l’optimisation de code intermédiaire PHP. (extension PECL, incluse en standard à partir de PHP6)

eAccelerator

eAccelerator est né en Décembre 2004 comme une branche de Turck MMCache projet. Turck MMCache a été créé par Dmitry Stogov et une grande partie de la eAccelerator code est toujours fondée sur son travail. eAccelerator contenait également un codeur PHP et chargeur, mais le développement personnel de l’encodeur abandonnées et ont supprimé cette fonction après Décembre 2006.
Lire la suite…

Categories: Logiciel Tags: , ,

Get Lynx for Mac OS X 10.7 Lion

14/02/2024 Comments off

Source: OSXdaily

lynx-from-macports

Lynx is a text based command line web browser, it’s relatively popular within unix communities but it also has a variety of general uses too; it’s great if you want to discretely browse the web and read articles at work or school, and developers use lynx frequently to test accessibility and to roughly estimate how spiders or crawlers view a website. Because it only loads text and avoids javascript and images, it’s also lightning fast.

Anyway, after updating to Lion I discovered my previous installation of lynx was not functioning. Thankfully it’s very easy to install a working version with the help of MacPorts.

Installing and Running Lynx in Mac OS X 10.7 Lion

For the purpose of this walkthrough, we’re going to keep requirements to a minimum and install lynx through MacPorts, here’s what you’ll need:

Assuming you have now installed Xcode 4.1 and MacPorts 2.0, here’s how to install lynx:

sudo port install lynx

MacPorts will then fetch all the required dependencies including ncurses and zlib, and then proceed to install the lynx browser.

Once it’s finished, just type ‘lynx’ at the command line and it’ll launch as expected. You can then hit “G” to go to a URL, or open one directly from the command line.

This opens OSXDaily.com, for example:

lynx osxdaily.com

You then just use the arrow keys and return/enter to navigate around a site.

Lynx is great, enjoy!

Categories: Logiciel Tags: , ,