Ubuntu下安裝XAMPP,Ubuntu安裝XAMPP

來源:互聯網
上載者:User

Ubuntu下安裝XAMPP,Ubuntu安裝XAMPP

來源:http://www.ido321.com/1265.html

最近,我也玩起了Linux了,瞬間覺得自己逼格又上去了,所以,就給筆記本安裝了Ubuntu+Win7雙系統。當然在Ubuntu下必須安裝的就是XAMPP了,我是說對我而言。

     要安裝,必須先下載,這個去官網下載Linux版本的XAMPP的。下載下來的包只有rw許可權,沒有X許可權,所以必須更改其許可權。對於Ubuntu新手,就只能網上找教程了,可是安裝失敗了

  第一種方式是chmod a+x  XAMPP安裝包名,給其增加x許可權,變成可執行檔,failure.

     第二種方式是chmod 777 *.run ,之前將許可權改為777,但是還是failure.

     所以,我就想,用root許可權來安裝,總是可以了吧,這是最高許可權了。也就是試試了。首先擷取root許可權

擷取root許可權

1、輸入sudo passwd root

2、輸入新的密碼,再次確認密碼

3、每次開啟終端輸入 su root

    擷取到許可權之後,切換到xampp包的目錄,輸入./包完整名稱  就能安裝了

安裝完成之後,會自動開啟xampp的一個介面。ubuntu14的儲存路徑是在/opt/lampp下面。

  在Ubuntu下,也是有一個控制介面的,調出控制介面的命令如下:

//Linux下的XAMPP圖形化面板必須是root許可權$ cd /opt/lampp/share/xampp-control-panel$ sudo ./xampp-control-panel

    

   各設定檔目錄:

             Apache主目錄:/opt/lampp/htdocs/

             Apache設定檔:/opt/lampp/etc/httpd.conf

             MySQL設定檔:/opt/lampp/etc/my.cnf

             PHP設定檔:/opt/lampp/etc/php.ini

            ProFTPD設定檔:/opt/lampp/etc/proftpd.conf

            PHPMyadmin設定檔:/opt/lampp/phpmyadmin/config.inc.php

   常用XAMPP命令(在終端以root輸入):

             啟動/停止/重啟Apache:/opt/lampp/lampp start/stop/restart(包括啟動/停止/重啟了mysql,proftpd)

             安全設定:/opt/lampp/lampp  security

             使用php版本/查看版本:/opt/lampp/lampp php4(5)/phpstatus

             只啟動和停止Apache:/opt/lampp/lampp startapache/stopapache

             只啟動和停止MySQL:/opt/lampp/lampp startmysql/stopmysql

             只啟動和停止ProFTPD伺服器:/opt/lampp/lampp startftp/stopftp

             啟動和停止Apache的SSL支援:/opt/lampp/lampp startssl/stopssl

             隨系統自啟動:

                                      ln –s /opt/lampp/lampp/etc/rc.d/rc3.d/S99lampp

                                      ln –s /opt/lampp/lampp/etc/rc.d/rc4.d/S99lampp

                                      ln –s /opt/lampp/lampp/etc/rc.d/rc5.d/S99lampp

            取消自啟動:

                                     ln –s /opt/lampp/lampp K01lampp

            卸載XAMPP:rm –rf /opt/lampp

下一篇:Blogilo:Ubuntu下“wlw”

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.