我有一个使用WHM(PHP配置编辑器)的VPS服务器(使用Apache)。我用这个编辑了php.ini:
;;;;;;;;;;;;;;;;;;;
; Resource Limits ;
;;;;;;;;;;;;;;;;;;;
max_execution_time = 3000
max_input_time = 6000
memory_limit = 3000M
upload_max_filesize = 1024M
post_max_size = 1024M
更新并重新启动后显示更新的限制,但我仍然收到此错误
PHP致命错误:内存不足(已分配51118080)(试图分配14588字节)/
PhpmyAdmin>导入正在显示
(最大:50MiB)
我的public_html文件夹没有任何php.ini文件。
答案 0 :(得分:0)
解决方案:
<table><TBODY>
<TR>
<TH>BUDataId</TH>
<TH>BU</TH>
<TH>AccountNum</TH>
<TH>Category</TH>
<TH>CurrAmt</TH>
<TH>BUMonth</TH>
<TH>BUYear</TH>
<TH>MonthlyAmt</TH></TR>
<TR>
<TD>1</TD>
<TD>12</TD>
<TD>AA</TD>
<TD>N91</TD>
<TD> $9,700.00 </TD>
<TD>1</TD>
<TD>2015</TD>
<TD> $9,700.00 </TD></TR>
<TR>
<TD>2</TD>
<TD>12</TD>
<TD>AA</TD>
<TD>N91</TD>
<TD> $19,437.00 </TD>
<TD>2</TD>
<TD>2015</TD>
<TD> $9,737.00 </TD></TR>
<TR>
<TD>3</TD>
<TD>12</TD>
<TD>AA</TD>
<TD>N91</TD>
<TD> $29,560.00 </TD>
<TD>3</TD>
<TD>2015</TD>
<TD> $10,123.00 </TD></TR>
<TR>
<TD>4</TD>
<TD>12</TD>
<TD>AA</TD>
<TD>N91</TD>
<TD> $38,465.00 </TD>
<TD>4</TD>
<TD>2015</TD>
<TD> $8,905.00 </TD></TR>
<TR>
<TD>5</TD>
<TD>12</TD>
<TD>AA</TD>
<TD>N91</TD>
<TD> $48,584.00 </TD>
<TD>5</TD>
<TD>2015</TD>
<TD> $10,119.00 </TD></TR>
<TR>
<TD>6</TD>
<TD>12</TD>
<TD>AA</TD>
<TD>N91</TD>
<TD> $59,654.00 </TD>
<TD>6</TD>
<TD>2015</TD>
<TD> $11,070.00 </TD></TR>
<TR>
<TD>7</TD>
<TD>12</TD>
<TD>AA</TD>
<TD>N91</TD>
<TD> $67,900.00 </TD>
<TD>7</TD>
<TD>2015</TD>
<TD> $8,246.00 </TD></TR>
<TR>
<TD>8</TD>
<TD>12</TD>
<TD>AA</TD>
<TD>N91</TD>
<TD> $77,699.00 </TD>
<TD>8</TD>
<TD>2015</TD>
<TD> $9,799.00 </TD></TR>
<TR>
<TD>9</TD>
<TD>12</TD>
<TD>AA</TD>
<TD>N91</TD>
<TD> $87,486.00 </TD>
<TD>9</TD>
<TD>2015</TD>
<TD> $9,787.00 </TD></TR>
<TR>
<TD>10</TD>
<TD>12</TD>
<TD>AA</TD>
<TD>N91</TD>
<TD> $97,000.00 </TD>
<TD>10</TD>
<TD>2015</TD>
<TD> $9,514.00 </TD></TR>
<TR>
<TD>11</TD>
<TD>12</TD>
<TD>AA</TD>
<TD>N91</TD>
<TD> $99,687.00 </TD>
<TD>11</TD>
<TD>2015</TD>
<TD> $2,687.00 </TD></TR>
<TR>
<TD>12</TD>
<TD>12</TD>
<TD>BB</TD>
<TD>N51</TD>
<TD> $1,200.00 </TD>
<TD>1</TD>
<TD>2015</TD>
<TD> $1,200.00 </TD></TR>
<TR>
<TD>13</TD>
<TD>12</TD>
<TD>BB</TD>
<TD>N51</TD>
<TD> $2,400.00 </TD>
<TD>2</TD>
<TD>2015</TD>
<TD> $1,200.00 </TD></TR>
<TR>
<TD>14</TD>
<TD>12</TD>
<TD>BB</TD>
<TD>N51</TD>
<TD> $3,600.00 </TD>
<TD>3</TD>
<TD>2015</TD>
<TD> $1,200.00 </TD></TR>
<TR>
<TD>15</TD>
<TD>12</TD>
<TD>BB</TD>
<TD>N51</TD>
<TD> $4,654.00 </TD>
<TD>4</TD>
<TD>2015</TD>
<TD> $1,054.00 </TD></TR>
<TR>
<TD>16</TD>
<TD>12</TD>
<TD>BB</TD>
<TD>N51</TD>
<TD> $6,538.00 </TD>
<TD>5</TD>
<TD>2015</TD>
<TD> $1,884.00 </TD></TR>
<TR>
<TD>17</TD>
<TD>12</TD>
<TD>BB</TD>
<TD>N51</TD>
<TD> $7,277.00 </TD>
<TD>6</TD>
<TD>2015</TD>
<TD> $739.00 </TD></TR>
<TR>
<TD>18</TD>
<TD>12</TD>
<TD>BB</TD>
<TD>N51</TD>
<TD> $8,400.00 </TD>
<TD>7</TD>
<TD>2015</TD>
<TD> $1,123.00 </TD></TR>
<TR>
<TD>19</TD>
<TD>12</TD>
<TD>BB</TD>
<TD>N51</TD>
<TD> $9,609.00 </TD>
<TD>8</TD>
<TD>2015</TD>
<TD> $1,209.00 </TD></TR>
<TR>
<TD>20</TD>
<TD>12</TD>
<TD>BB</TD>
<TD>N51</TD>
<TD> $10,658.00 </TD>
<TD>9</TD>
<TD>2015</TD>
<TD> $1,049.00 </TD></TR>
<TR>
<TD>21</TD>
<TD>12</TD>
<TD>BB</TD>
<TD>N51</TD>
<TD> $12,055.00 </TD>
<TD>10</TD>
<TD>2015</TD>
<TD> $1,397.00 </TD></TR>
<TR>
<TD>22</TD>
<TD>12</TD>
<TD>BB</TD>
<TD>N51</TD>
<TD> $12,900.00 </TD>
<TD>11</TD>
<TD>2015</TD>
<TD> $845.00 </TD></TR></TBODY></table>
此处禁用“RLimitMEM设置”并保存。