terminal – localhost

HOST FILE

sudo nano /private/etc/hosts

 

Virtual hosts

sudo nano /private/etc/apache2/extra/httpd-vhosts.conf

 

httpd.conf

sudo vi /private/etc/apache2/httpd.conf

 

php.ini

sudo vi /private/etc/php.ini

*on refresh install change php.ini.default to php.ini and restart server

 

post_max_size
upload_max_filesize
memory_limit

sudo vi /private/etc/php.ini

*then check phpinfo();

 

RESET APACHE

sudo apachectl graceful
sudo apachectl restart

 

START APACHE

sudo apachectl start

 

STOP APACHE

sudo apachectl stop

 

CHECK APACHE VERSION

httpd -v

 

PERMISSIONS – world writable

chmod -R a+w ~/Sites/testsite

or

chmod -R 777 uploads

 

PERMISSIONS – Apache _www

chmod -R _www ~/Sites/testsite

 

http://codex.wordpress.org/Changing_File_Permissions
http://computerplumber.com/2009/01/using-the-chmod-command-effectively/

sudo chown -R JLY singteach.nie.edu.sg

 

IP ADDRESS

ifconfig

 

Advertisements