Mac OS: XAMPP + XBEBUG + JOOMLA installation

It is a truly disaster to install Joomla on mac os.


It takes me almost a week to try again, again and again!!!.


Finally I get it work. Here is my experience during the installation, I would like to share with all the ppl who used a mac os with joomla.



Here is some of the peoblem/issues i have been faced:

/**mac os x: xampp + xdubug + joomla*/


1st:

after the installation, remove the installation file, when u go to "http;//localhost/joomla , it shows nothing but a error message.

(Here is the error, no configuration.php.)


2nd:

Copy the configuration.php and put it under joomla folder. it shows the joomla main page, that is wow!!! But but but, when try to install the plugin, error again: can not create file under component folder.

(Here is the solution: going to the configuration.php, get the log_path and tmp_path, going to the terminal set: chmod 777 [+path])


3rd:

finally enable the tmp and log folder, no more error msg when start to install plugin, but but but, it hangs during the installation. it keeps loading up to 5 mins non stop and still fail for the installation. alright then it may because of the plugin file itself, then try another plugin. it installed, but the error message and the installation succeed showed at the same time. And the plugin never shows on the plugin manager.

(Here is error: because no FTP Layer been set.)


OMG!!!!!!


After reinstall a million of times, here is a succeed way:


1. install XAMPP:

If using mac os, you have to drag the file to "Application".

Using Xampp, the Xdebug  is build-in, so no need to download again.


open php.ini, path: /Applications/XAMPP/xamppfiles/etc/php.ini

change:

a.

implicit_flush = On

b.

display_errors = Off

c. add those lines at the end:


;xDebug Configuration starts


zend_extension="/Applications/XAMPP/xamppfiles/lib/php/php-5.3.1/extensions/no-debug-non-zts-20090626/xdebug.so"


xdebug.profiler_output_dir = "/tmp/xdebug/"

xdebug.profiler_enable = On

xdebug.remote_enable=On

xdebug.remote_host="localhost"

xdebug.remote_port=10000

xdebug.remote_handler="dbgp"


;xDebug Configuration ends 



** if after edit the php.ini but cannot save it. change to used the terminal:

"sudo nano /Applications/XAMPP/xamppfiles/etc/php.ini"

it required the admin password.

after edit, press "Control + O", to save the modification. at the button of the terminal window it ask for where to save the chagnes, to overwrite the existing, press "enter".


** the default port on mac is 80, those who want to trouble themselves, go head to change the listening port.

 


After this, you can start the Xampp. The best for Xampp is that it will put two default host:  /Applications/XAMPP/htdocs and /users/[username]/sites


Here is the key: if u used /Applications/XAMPP/htdocs, later u have modify every folder's access promeission, and for somebody who dun familiar with those settings like me, it is a disaster. so, short cut way, put all the files under /users/[username]/sites. Means the Joomla folder has to put inside sites as well.


2. set up FTP.

Xampp do has a FTP server, however the experience i search hours on Google and Baidu told me better not use the Xampp FTP server at all. in this case, stop the FTP from xampp, going to system preference, under share. choose File share. and  at the middle windows box, add on the "/users/[username]/sites" folder. After that, click on "option", choose share as FTP.


3. start to install Joomla.

download joomla zip file (those who dunt know where to download, please google it.) unzip it and put under /users/[username]/sites/joomla

b. start xampp, going to "http://localhost/~[username]/joomla", u can see the installation page. 


1st. language choose English and after that is the pre-installation check. 

 

2nd. pre-installation check.  if you following the same as above steps, there is only one red line: configuration.php writeable: no. it is ok, just next.


3rd. page is license page, next.


4th. the database configuration. follow the instruction on the page and next.


5th. FTP. the ftp is a MUST. choose yes and fill in the name: [mac os login name]; password: [mac os login password]; ftp path: "/users/[username]/sites/joomla". next.


6th. fill in the necessary information and next. !!remember the password u fill in. it will be the password for u to enter the back end. the user name is admin.

** if it shows the error message: session_path error, just close the xampp and browser. restart again.


7th. it required to remove the "/users/[username]/sites/joomla/installation" folder. and after remove the installation folder, goes to "/users/[username]/sites/joomla/configuration.php" check for the log_path and tmp_path. open terminal: "chmod 777 /users/[username]/sites/joomla/logs" and "chmod 777 /users/[username]/sites/joomla/tmp"


8th. close the browser and open it with "http://localhost/~[username]/joomla", then you can see ur home page. and if u open "http://localhost/~[username]/joomla/administrator", u can login with the user name: admin and the password u filled in during the joomla installation (step.7th). 


9th. try to download one official Joomla plugin. (Joomla extension library) and under installation extensions, fill in the ftp username and the password, upload the zip file and install.


Congratulations! installation succeed!

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章