xampp安裝事項

2021-08-31 17:42:47 字數 1638 閱讀 6359

xampp中apache啟動失效問題

在windows上使用xampp搭建php的開發環境,後來又安裝了oracle 10g。

你會發現,由於oracle 10g 建立了「perl5lib」的環境變數路徑,從而導致xampp啟動apache的時候報錯:

[thu oct 22 08:56:27 2009] [error] can't load perl file: c:/xampp/apache/conf/extra/startup.pl for server localhost:80, exiting...

有2種解決方法:

1、重新配置好perl5lib環境變數,這種方法可能有些麻煩;

2、更簡單的方法是:

找到apache\conf\extra\perl.conf檔案,增加一行為:

loadfile "c:/xampp/perl/bin/perl510.dll"

loadmodule perl_module modules/mod_perl.so

perlswitches -t

perlpostconfigrequire "c:/xampp/apache/conf/extra/startup.pl"

其中perlswitches -t 引數-t的意思為檢查perl所在路徑。

error.log,裡面的錯誤描述如下

[sun sep 20 20:10:03 2009] [error] attempt to reload dynaloader.pm aborted.\ncompilation failed in require at f:/xampp/perl/site/lib/modperl/const.pm line 18.\nbegin failed--compilation aborted at f:/xampp/perl/site/lib/modperl/const.pm line 18.\ncompilation failed in require at f:/xampp/perl/site/lib/apache2/const.pm line 18.\nbegin failed--compilation aborted at f:/xampp/perl/site/lib/apache2/const.pm line 18.\ncompilation failed in require at f:/xampp/apache/conf/extra/startup.pl line 9.\nbegin failed--compilation aborted at f:/xampp/apache/conf/extra/startup.pl line 9.\ncompilation failed in require at (eval 2) line 1.\n

[sun sep 20 20:10:03 2009] [error] can't load perl file: f:/xampp/apache/conf/extra/startup.pl for server localhost:80, exiting...

結果是跟本機安裝的oracle 10g有關;

oracle在系統環境變數裡有個perl5lib,具體怎麼衝突的本人還沒搞清楚,希望哪位高人能指點一二。

將該環境變數的值修改一下,我在之前加上了下面這段,或者可以備份下直接將其刪除...

%xampp%\perl\lib;%xampp%\perl\site\lib;

安裝xampp過程

安裝完畢後,要對檔案進行配置,配置如下 1 在php.ini檔案中,寫入 windows path1 path2 include path xampp php includes warning mysqli connect hy000 1045 access denied for user root...

XAMPP安裝指南

按照預設選項,依次安裝 去掉不必要的選項 選擇安裝路徑 顯示下圖說明已經成功安裝完成了。開啟xampp,啟動 apache 服務 如果顯示apache服務無法啟動,有如下錯誤 這是由於埠占用造成的,本機在啟動apache服務的時候出現 443埠被占用的問題 解決方法 點選config按鈕,選擇如圖藍...

XAMPP安裝過程

方法 a 使用安裝包進行安裝 使用安裝包來安裝 xampp 是最簡單的方法。xampp win32 的安裝嚮導 安裝過程結束後,您會在 開始 程式 xampp 選單下找到 xampp。您可以使用 xampp 控制面板來啟動 停止所有服務或安裝 解除安裝所有服務。xampp 控制面板能啟動 停止 ap...