3

開発中にいくつかのサイトの問題が発生したため、magento-check.php ファイルを実行して、すべてが問題ないかどうかを確認することにしました。結果は。

Your server does not meet the following requirements in order to install Magento.
The following requirements failed, please contact your hosting provider in order to receive assistance with meeting the system requirements for Magento:

You need MySQL 4.1.20 (or greater)
The following requirements were successfully met:
You have PHP 5.2.0 (or greater)
Safe Mode is off
You have the curl extension
You have the dom extension
You have the gd extension
You have the hash extension
You have the iconv extension
You have the mcrypt extension
You have the pcre extension
You have the pdo extension
You have the pdo_mysql extension
You have the simplexml extension

問題は、MySql Server バージョンを実行していることです: 5.5.24-0ubuntu0.12.04.1

また、Magento は既にサーバーにインストールされ、動作していることにも注意してください。私が抱えている問題は、製品ページだけで一貫して 500 内部サーバー エラーが発生することです。これらの問題は関連しているとは思いませんが、それでも奇妙です。

4

3 に答える 3

4

そこに質問があるかどうかはわかりませんが、ここで配布されている magento-check.php スクリプトについて話しているのであれば

http://www.magentocommerce.com/knowledge-base/entry/how-do-i-know-if-my-server-is-compatible-with-magento/

これは、次のコメントで mysql のバージョンを取得します

preg_match('/[0-9]\.[0-9]+\.[0-9]+/', shell_exec('mysql -V'), $version);

を使用して比較します。

if(version_compare($version[0], '4.1.20', '<')) {

つまり、スクリプトは次のシェル コマンドを実行します。

$ mysql -V

次に、出力で XXX バージョン番号を探します。たとえば、これ

/usr/local/mysql/bin/mysql  Ver 14.14 Distrib 5.1.41, for apple-darwin9.5.0 (i386) using readline 5.1

は、スクリプトがバージョンが であると認識していることを意味します5.1.41

私の推測では、削除サーバーを使用しています。これは、上記のスクリプトが、ローカルで実行されている mysql cli クライアントのバージョンをチェックすることを意味します。また、ローカルで mysql を実行していない可能性もあります。これは、スクリプトがテキストを解析しようとすることを意味します。

mysql: command not found

バージョン番号が見つからない。

500 Internal Server Errors に関しては、これは apache にエラーがあるか、PHP にエラーがあることを意味します。それぞれのエラー ログをチェックして、エラーの内容を確認してください。

于 2012-08-17T00:13:07.730 に答える
0

この問題を解決しました。MySQL の警告は誤警報である可能性があります。私にとっては、PHP バージョン (MAMP を使用しています) を 7 から 5.6 に変更するとうまくいきました。いくつかのフォーラムを見ると、PHP のバージョンを 5.3 から 5.2 に下げるとうまくいくものもありました。

于 2016-01-18T15:09:52.540 に答える
0

PHPとMySQLで正確なmagentoバージョンのサポートを確認する必要があります。以下のコードが正確なバージョンのPHPとMySQLを確認するのに役立つことを願っています

##Test What Exact Version PHP & MySQL
echo "<h2>Exact Version PHP & MySQL: </h2>";
printf("PHP version: %s\n", PHP_VERSION); 
$mysql = mysqli_connect('localhost', 'devonbd_com', 'XSZefjGW'); 
#$mysql = mysqli_connect('localhost', 'root', ''); 
## Test the MySQL connection 
if (mysqli_connect_errno()) {
printf("</br> Connection failed: %s\n", mysqli_connect_error());
exit();
}
## Print the MySQL server version 
printf("</br> MySQL server version: %s\n", mysqli_get_server_info($mysql)); 
##Close the MySQL connection 
mysqli_close($mysql);
于 2015-08-16T07:12:39.053 に答える