Apache question

Need help installing PHP, configuring a script, or configuring a server? Then come on in and post your questions! We'll try to help the best we can!

Moderator: General Moderators

Post Reply
feartetsuo
Forum Newbie
Posts: 9
Joined: Tue Dec 21, 2004 9:25 am

Apache question

Post by feartetsuo »

Hello. Before I download and install Apache, can someone answer a question for me. I read in another thread that you can host php off your own computer with Apache. Can you really do this and if so how do I set it up so that I can use my php scripts to use my php setup?
I am interested in this because most web hosts only allow a default of around 2 to 8 mb max file size upload. And I need atleast 100+mb because I am having someone use my php script to upload to my FTP and I dont want to give them my username and password to access it. Any help would be great. Thanks.
User avatar
feyd
Neighborhood Spidermoddy
Posts: 31559
Joined: Mon Mar 29, 2004 3:24 pm
Location: Bothell, Washington, USA

Post by feyd »

once you install apache, your computer basically because like any other server (on a smaller scale).. Once you get php set up to work with apache, you have a full php server. There's little to no difference between you and a host (outside of network resources and hardware..)
feartetsuo
Forum Newbie
Posts: 9
Joined: Tue Dec 21, 2004 9:25 am

Post by feartetsuo »

oh really, thats awesome. Sorry to sound like a noob, but how do I set up PHP to work with apache? I already have php installed, but what would the settings be to have php work with apache?

And also, where can I specify the max file upload size when I have php and apache working with each other? Is there a tutorial or anything I can read? Thanks again.
User avatar
feyd
Neighborhood Spidermoddy
Posts: 31559
Joined: Mon Mar 29, 2004 3:24 pm
Location: Bothell, Washington, USA

Post by feyd »

php.net has info on both things: Installation on Windows systems at the top are links for installing php into apache 1 and 2. Handling file uploads contains links to the php.ini configuration settings and information needed for file uploads.
feartetsuo
Forum Newbie
Posts: 9
Joined: Tue Dec 21, 2004 9:25 am

Post by feartetsuo »

Awesome thanks alot. I read that article about the handling file uploads, but I am still confused about where I configure my php.ini file once I install php on my computer.
User avatar
feyd
Neighborhood Spidermoddy
Posts: 31559
Joined: Mon Mar 29, 2004 3:24 pm
Location: Bothell, Washington, USA

Post by feyd »

Handling file uploads wrote: This feature lets people upload both text and binary files. With PHP's authentication and file manipulation functions, you have full control over who is allowed to upload and what is to be done with the file once it has been uploaded.

PHP is capable of receiving file uploads from any RFC-1867 compliant browser (which includes Netscape Navigator 3 or later, Microsoft Internet Explorer 3 with a patch from Microsoft, or later without a patch).

Related Configurations Note: See also the file_uploads, upload_max_filesize, upload_tmp_dir, post_max_size and max_input_time directives in php.ini

PHP also supports PUT-method file uploads as used by Netscape Composer and W3C's Amaya clients. See the PUT Method Support for more details.
feartetsuo
Forum Newbie
Posts: 9
Joined: Tue Dec 21, 2004 9:25 am

Post by feartetsuo »

Cool thanks. I will try this out when I get home and let you know if I have any problems installing everything. Thanks again!
feartetsuo
Forum Newbie
Posts: 9
Joined: Tue Dec 21, 2004 9:25 am

Post by feartetsuo »

ok, i installed both php and apache. PHP is installed in the c:/php directory and apache is installed in the c:/program files/apache group. Now where is the httpd.conf file? I cant seem to fine it because I know you have to inter lines of code to get it to work with PHP.
User avatar
feyd
Neighborhood Spidermoddy
Posts: 31559
Joined: Mon Mar 29, 2004 3:24 pm
Location: Bothell, Washington, USA

Post by feyd »

c:/program files/apache group/apache2/conf/
timvw
DevNet Master
Posts: 4897
Joined: Mon Jan 19, 2004 11:11 pm
Location: Leuven, Belgium

Post by timvw »

just wondering.. wouldn't it be easier if you run a ftp-server on your machine... and eventually put in some restrictions on the account you give to the user?
Post Reply