問(wèn)題描述
我剛剛將 magento 從本地移動(dòng)到服務(wù)器,但出現(xiàn)以下錯(cuò)誤,我只是想知道是否有人可以幫我解決這個(gè)問(wèn)題,
I just moved magento from local to server and Im getting the following error, I was just wondering if someone could help me solve this,
腳本/home/.../public_html/index.php"的UID小于min_uid
UID of script "/home/.../public_html/index.php" is smaller than min_uid
我所做的是進(jìn)行數(shù)據(jù)庫(kù)轉(zhuǎn)儲(chǔ)并將其傳輸?shù)椒?wù)器,
what I did was to make a database dump and transfer it to server,
創(chuàng)建所有 magento 文件的備份并傳輸并擴(kuò)展到服務(wù)器,
create a backup of the all the magento files and transfer and expand to server,
更改數(shù)據(jù)庫(kù)中的 core_config 表.
change the core_config table in the database.
提前致謝.
推薦答案
在我看來(lái),這像是一個(gè) suPHP 問(wèn)題.
That looks like an suPHP issue to me.
將腳本的用戶和組更改為運(yùn)行網(wǎng)絡(luò)服務(wù)器進(jìn)程的用戶.因此,例如,如果您正在使用用戶 www-data
運(yùn)行 Apache,請(qǐng)更改為:
Change the user and group of your script to the user running your webserver process. So if you're running an Apache with user www-data
for example, change to:
chown www-data:www-data /home/.../public_html/index.php
或者通過(guò)以下方式一次性更改所有文件:
Or change all your files at once by:
chown -R www-data:www-data /home/.../public_html/
如果您在更改用戶和組后仍然遇到此問(wèn)題,那么您的 suPHP 可能使用默認(rèn)的 min_uid = 100
,但使用了 www-data
的 UID代碼>低于這個(gè) 100.
If you're still running into this issue after changing user and group, then your suPHP is probably working with the default min_uid = 100
, but the UID of www-data
is below this 100.
要解決此問(wèn)題,您可以更改 suPHP 配置中的 min_uid
以匹配 www-data
的 UID:
To fix this you can change the min_uid
in suPHP's config to match the UID of www-data
:
vi /etc/suphp/suphp.conf
min_uid = <UID of www-data>
這篇關(guān)于腳本“/home/...../public_html/index.php"的UID小于 min_uid的文章就介紹到這了,希望我們推薦的答案對(duì)大家有所幫助,也希望大家多多支持html5模板網(wǎng)!