Compile PHP

software development

#1

I want to run file-sharing website ( http://share-file.net )
but upload via “url method” do not work in Dream Host .
i have a same website in dedicated server ( http://7share.org )
i know this script work with php4 ,
but i can’t fix the problem ,
the supporter replied that i should compile php in host ,
i read tutorial but still don’t know how to compile .
how can help me for php compile ?
http://share4u.org/phpinfo.php ( work fine )
http://share-file.net/phpinfo.php ( problem in DreamHost )

Thank you

http://7share.org
http://share-img.org


#2

allow_url_fopen is OFF

The script you’re using has several unpatched exploits and I’d seriously recommend you either update it to at least v1.3 - or choose a different script - before letting it loose on your account here, especially if you’re going to do something like set allow_url_fopen as true (which in itself is not advisable).


#3

First thank you for reply ,
It is V 1.3 ,
how to set allow_url_fopen ON ?

http://7share.org
http://share-img.org


#4

Please don’t do that on a shared server:

http://wiki.dreamhost.com/Allow_url_fopen

–rlparker


#5

the script is coded by author and i can’t change the code .

now please help me to compile php .

i download php-4.4.8.tar from php.net .
now what should i do ?

may i just upload php.ini file ?

http://7share.org
http://share-img.org


#6

Is it encrypted or are you prevented from modifying it by it’s license?

[quote]now please help me to compile php .

i download php-4.4.8.tar from php.net .
now what should i do ?[/quote]
The instructions for how to do that are on the wiki. Use the search feature there, or carefully re-read the link I already gave you (hint: There are more links in that article)

Yes, but that will not help you resolve this issue even if you edit that file. Read the wiki.

–rlparker


#7

With respect, if you don’t know how to install your own custom version of PHP you should not be trying to do so in order to create a security risk like allowing URL file access.

Also, bear in mind that you will be personally and legally responsible for anything one of your users may upload. If your users upload copyrighted material, cracked software, kiddie porn or anything else that does not comply with California/US law you will likely have your account terminated (and may face legal action).

si-blog
Max discount on any plan with promocode SCJESSEYTOTAL


#8

That particular script was handed out encrypted and has more holes in it than a June bride.


#9

Yikes! how would the typical non-technically astute user even be able to easily see what such an encrypted script might be doing with/via allow_url_fopen? :open_mouth:

Anyway, as scjessey correctly intimates, people thinking to use DreamHost’s shared servers generous bandwidth and storage quotas for “general publicly accessible file-sharing/uploading” are likely courting disaster anyway as far as keeping their account; those things are usually just too heavily abused to last on DreamHost over even the relatively short term.

They tend to either kill the server with connections, or end up in TOS trouble pretty quickly. :wink:

–rlparker