Web Hosting Forum | Lunarpages


*
Welcome, Guest. Please login or register.
Did you miss your activation email?



Login with username, password and session length
March 10, 2010, 10:53:05 PM

Pages: [1]   Go Down
  Print  
Author Topic: php.ini configured but not working..  (Read 877 times)
earnj0
Spacescooter Operator
*****
Offline Offline

Posts: 44



« on: April 20, 2009, 04:53:22 PM »

Hi, I read around for a while and I had this issue previously,,Can upload more then 2MB.. Here is what I have done:

Created a php.ini file and placed it under public_html and named it php.ini . I put the following in it

upload_max_filesize = 12M
post_max_size = 12M

Question: Can my problem be permission, I have the php.ini at 644



Then I went to my .htaccess and added the following line:

suPHP_ConfigPath  /home/mycpanellogin/public_html

I did leave a space between Path & Home.

Here is a copy of the files directly from "Show File" On Cpanel

.htaccess
File Type: ASCII text, with no line terminators

suPHP_ConfigPath  /home/myaccountlogin/public_html


php.ini
File Type: HTML document text

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>Untitled Document</title>
</head>

<body>
<p>upload_max_filesize = 12M </p>
<p>post_max_size = 12M </p>
</body>
</html>

Question: Can it be the way I'm creating the php.ini file? Which includes the head, body or is the file only to contain the <p>upload_max_filesize = 12M </p>
<p>post_max_size = 12M </p> and nothing else?


I also ran the info.php to check and the seems the upload limit is still at 2MB, as if the steps above did not change anything.

Is there anything wrong I'm doing?


I would like to note that php.ini file is on my root directory, but the domain name with this issue is an add-on domain which has it's own folder on the root, don't know if that makes a difference. Thanks.

« Last Edit: April 20, 2009, 04:58:30 PM by earnj0 » Logged
Mitch
Senior Moderator
Berserker Poster
*****
Offline Offline

Posts: 12672


Business Development Specialist at Lunarpages


WWW
« Reply #1 on: April 21, 2009, 06:05:38 AM »

The php.ini should be a text-based document, not an HTML page.  Check this page here out on how to create the php.ini file:

http://wiki.lunarpages.com/Create_php.ini

Logged

New Lunarpages Contest! - Win a Free Web Site Design! Enter Today!


Mitch the Moderator - follow me @lunarpages on Twitter!
Important Threads: Read This Before Posting! | Lunarforums Rules! | Mitch's Link of the Day!
Also, be sure to check out and subscribe to the Lunartics Blog and the Lunarpages Newsletter !

Need Web Hosting Help? Check out the Lunarpages Web Hosting Wiki. It has tons of tips, tutorials and resources!
earnj0
Spacescooter Operator
*****
Offline Offline

Posts: 44



« Reply #2 on: April 21, 2009, 12:21:16 PM »

Thanks, I did those steps and nothing, here is what the php.ini file has:

<p>upload_max_filesize = 12M </p>
<p>post_max_size = 12M </p>

That's all the text in the file, no more HTML but still not working. It's in the public_html directory.

Here is the htaccess file:

suPHP_ConfigPath  /home/mylogin/public_html


I don't know what I could be doing wrong? The step are pretty easy....
Logged
MrPhil
Professor in Nanotechnology
*****
Offline Offline

Posts: 4579



« Reply #3 on: April 21, 2009, 01:15:15 PM »

Get rid of <p> and </p> in both lines. The following should be the ONLY stuff in the file:
Code:
upload_max_filesize = 12M
post_max_size = 12M

Do NOT use HTML (page) editors to create this file -- that's what added all that junk before.
Logged

earnj0
Spacescooter Operator
*****
Offline Offline

Posts: 44



« Reply #4 on: April 21, 2009, 01:21:20 PM »

Thanks Mr.Phil, that solved the problem.... Thumbs Up Applause
Logged
Pages: [1]   Go Up
  Print  
 
Jump to: