I tried to show the navigation menu based on user role in WordPress. I couldn’t really find what I need from Google. So I decided to modify the template directly. I need to create role for user. By default we can’t add new role in WordPress. So, I use Capability Manager Plugin to create new …
Category Archive: PHP
Permanent link to this article: http://lindaocta.com/?p=499
Mar
29
Install Apache2, Php5 and MySql on Ubuntu 9.10
Step 1. List of libraries needed for Apache2, Php5 and MySql for Ubuntu: apt-get update apt-get install apache2 libapache2-mod-php5 mysql-server libapache2-mod-auth-mysql php5-mysql php5 Step 2. Turn on php module to work with Apache: a2enmod php5 Step 3. If you have .phtml or .pl file, remember to add to the follwing line to apache configuration file …
Permanent link to this article: http://lindaocta.com/?p=290
Mar
28
Increase file upload for php in Apache
When working with moodle, I always encounter file upload size problem (normally 2M). To increase file upload size, edit /etc/php5/apache2/php.ini file (in Ubuntu 9.10) for PHP 5 and Apache 2 by changing the upload maximum filesize to the size you want: upload_max_filesize=30M Save the file and restart apache: sudo /etc/init.d/apache2 restart
Permanent link to this article: http://lindaocta.com/?p=298
Feb
26
Frustrated with Moodle
Getting frustrated with my work…. trying to solve the problem the whole day, but as I do not have access to the main data, i could not do much. it works fine in my local machine, trunk and one of the production server. I tested and try to guess what is the main problem with …
Permanent link to this article: http://lindaocta.com/?p=77
Nov
01
Installing php gettext in Mac Leopard
I was trying to get phpldapadmin work in my Mac, I get this error: undefined function _() Search through website, I need gettext extension to be installed as php extension. This is the useful website to get gettext work in Leopard: Adding Gettext Extension for Mac OS X Leopard NOTE from installation steps: Even though …
Permanent link to this article: http://lindaocta.com/?p=64
Jan
08
Enabling Apache, PHP and MySql in Mac Leopard
Just got my first Mac yesterday and try to get PHP and Mysql to work so I can start to do my assignment. PHP is disabled by default and the value of mysql.default_socket is empty. Let’s start with PHP: Open /etc/apache2/httpd.conf using text editor with root account. e.g. sudo vi /etc/apache2/httpd.conf Search for LoadModule php5_module …
Permanent link to this article: http://lindaocta.com/?p=36