Solved

I need to change my php ini file

Posted on 2003-10-21
6
264 Views
Last Modified: 2010-04-06
I need to change my php ini file as follows
; Maximum allowed size for uploaded files.
upload_max_filesize = 2M

Chance It To  

; Maximum allowed size for uploaded files.
upload_max_filesize = 999999999999999999999M

I have root, I own the server, I am a PHPMoron . Can someone write me through this step by step. Ie
Log in
su to root
now what (I really need specific instructions as I know nothing and don't want to mess up a thing.
Thanks
0
Comment
Question by:phpmoron
  • 2
6 Comments
 
LVL 17

Accepted Solution

by:
dorward earned 125 total points
ID: 9597351
Type "locate php.ini"
Open the file it finds in whatever text editor you like most
Change the line as your instructions say
Save
(You _might_ have to restart apache:
PROBABLY
/etc/init.d/apache restart
OR
/etc/init.d/httpd restart)
0
 
LVL 5

Expert Comment

by:LornaJane
ID: 9598616
You _do_ need to restart apache usually, type "apachectl restart"

If it can't find it, then do "locate apachectl"
change into the directory which has that in and type
"./apachectl restart"

Let us know how you get on!
0
 
LVL 17

Expert Comment

by:dorward
ID: 9598666
If you are using PHP as CGI then I don't believe Apache needs restarting, only if you are using it as a module. (Of course the odds are fairly heavily in favour of it being a module as this is much more efficient)
0

Featured Post

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

There are two main kinds of selectors in CSS: One is base selector like h1, h2, body, table or any existing HTML tags.  For instance, the following rule sets all paragraphs (<p> elements) to red: (CODE) CSS also allows us to define our own custom …
Have you tried to learn about Unicode, UTF-8, and multibyte text encoding and all the articles are just too "academic" or too technical? This article aims to make the whole topic easy for just about anyone to understand.
The viewer will learn how to look for a specific file type in a local or remote server directory using PHP.
The viewer will learn how to create and use a small PHP class to apply a watermark to an image. This video shows the viewer the setup for the PHP watermark as well as important coding language. Continue to Part 2 to learn the core code used in creat…

708 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

14 Experts available now in Live!

Get 1:1 Help Now