Page 1 of 1

Apache question

Posted: Thu Dec 30, 2004 9:56 am
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.

Posted: Thu Dec 30, 2004 10:02 am
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..)

Posted: Thu Dec 30, 2004 10:14 am
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.

Posted: Thu Dec 30, 2004 10:24 am
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.

Posted: Thu Dec 30, 2004 10:27 am
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.

Posted: Thu Dec 30, 2004 10:33 am
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.

Posted: Thu Dec 30, 2004 10:50 am
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!

Posted: Thu Dec 30, 2004 4:53 pm
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.

Posted: Thu Dec 30, 2004 4:58 pm
by feyd
c:/program files/apache group/apache2/conf/

Posted: Fri Dec 31, 2004 12:52 am
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?