Showing posts with label apache. Show all posts
Showing posts with label apache. Show all posts

Wednesday, October 22, 2014

Merubah MPM Apache 2 dari prefork ke worker (dengan PHP dan FastCGI)

MPM adalah Multi-Processing Module dari Apache 2, yaitu cara Apache menjalankan process-nya.
Ada dua jenis MPM yang sering dipakai yaitu prefork dan worker.
Masing-masing ada kelebihan dan kekurangan.

Cek modul yang telah di-loading oleh Apache :

$ apachectl -l

Dari terminal console :

$ sudo apt-get install apache2-mpm-worker
$ sudo apt-get install libapache2-mod-fastcgi php5-fpm php5

Paket libapache2-mod-fastcgi
ada di dalam repository multiverse. Jadi mungkin anda mendapatkat error saat instalasi. Jika anda menggunakan Ubuntu 12.04, periksa /etc/apt/sources.list dan buka komen dari baris-baris berikut :

deb http://archive.ubuntu.com/ubuntu precise multiverse 
deb http://archive.ubuntu.com/ubuntu precise-updates multiverse 
deb http://security.ubuntu.com/ubuntu precise-security multiverse

Jalankan :

$ sudo apt-get


Dan ulangi  :

$ sudo apt-get install libapache2-mod-fastcgi php5-fpm php5

Aktifkan modul-modul di Apache :

$ sudo a2enmod actions fastcgi alias




Restart Apache :
$ sudo service apache2 restart


Ada yang perlu diubah di konfigurasi Apache.
Buat berkas konfigurasi di : /etc/apache2/conf.d/php5-fpm.conf


Restart kembali Apache :

$ sudo service apache2 restart

Selamat mencoba PHP5 dengan FastCGI.

Tuesday, February 19, 2008

WordpressMU with wp-phpmailer and WP e-Commerce plugins



First install WordPressMU from here.
+ Open the package file
+ I placed the files in /var/www/wpmu
+ sudo chown -R www-data:www-data /var/www/wpmu
+ Create/edit /etc/apache2/site-available/wpmu

<virtualhost>
ServerName wpmu.localhost.localdomain
DocumentRoot /var/www/wpmu
<directory>
Options Indexes MultiViews FollowSymLinks
AllowOverride None
Order deny,allow
Deny from all
Allow from 127.0.0.0/255.0.0.0 ::1/128
</directory>
</virtualhost>


+ sudo a2ensite wpmu
+ sudo /etc/init.d/apache2 reload
+ sudo vi /etc/hosts, add wpmu.localhost.localdomain on 127.0.0.1

127.0.0.1 localhost localhost.localdomain wpmu.localhost.localdomain



+ Create MySQL user & database name it both : wpmu
+ open-up http://wpmu.localhost.localdomain
+ just fill-up the fields
+ OK. wpmu should be up and running

I try to create a new blog.
Somehow wpmu send activation/password via email but I don't remember I ever setting some SMTP or else in wpmu. No wonder the email never come.
I search this issue and I got this link .
You need to download this plugin.
After you extract the plugin to /var/www/wpmu/wp-content/plugins/, you need to activate it via plugins menu with admin user.
And set the SMTP server under Options menu.

Other plugin you may have interested as I need to search a shopping cart with multiple store support is WP e-Commerce.

Some issues with wordpress :
- the mail notification didn't report any error even when there is no mailer installed.
- cannot delete user before the user is active. I need to wait until 2 days when automatic removal removed the user that did not confirm the activation.