Add to Favorites     Get Paid to Participate     Twitter     Facebook     Google+
Hosting Discussion
 

forgot password?


Closed Thread


Old
  Post #1 (permalink)   08-30-2010, 10:56 PM
HD Amateur
 
Join Date: Aug 2010
Posts: 74

Status: zoom is offline
Anybody that know ht access could tell me how to put php.ini on my html area please via cpanel or whm?
 
 


Old
  Post #2 (permalink)   09-03-2010, 03:14 PM
HD Amateur
 
Join Date: Aug 2010
Posts: 74

Status: zoom is offline
If you could please tell me about this
Anybody that know ht access could tell me how to put php.ini on my html area please via cpanel or whm?
 
 


Old
  Post #3 (permalink)   09-03-2010, 05:59 PM
HD Community Advisor
 
handsonhosting's Avatar
 
Join Date: Mar 2005
Location: Omaha, NE
Posts: 1,853

Status: handsonhosting is offline
Depending on your configuration of Apache you may not be able to reference php commands from inside a .htaccess file.

You can create a .htaccess file and upload it to your /public_html folder. If your host support SuPHP (many hosts do), then you can upload a custom php.ini file to your public_html folder also and override any PHP flag settings on the server.

But basically all you'd be doing is FTP'ing the information to your site.
 
 


Old
  Post #4 (permalink)   09-04-2010, 07:37 AM
HD Newbie
 
Join Date: Aug 2010
Posts: 38

Status: BreezeHost is offline
Your server must be running php with suPHP if you want to use customized php.ini file under public_html.
__________________
http://BreezeHost.net
Fully Managed and UnManaged VPS Servers - Powered by SolusVM - OpenVZ VPS Available!
Reliable cPanel Shared & Reseller Hosting
Chicago Datacentre - 24/7 Live Chat Support Available!
 
 


Old
  Post #5 (permalink)   09-04-2010, 12:14 PM
HD Newbie
 
Join Date: Jul 2010
Posts: 11

Status: ZArvixe is offline
Setup a phpinfo page in your account and check whats the value for "Server API". If its CGI then you can place the php.ini inside public_html and its settings will be applied to your site.
 
 


Old
  Post #6 (permalink)   09-05-2010, 05:24 PM
HD Amateur
 
Join Date: Aug 2010
Posts: 74

Status: zoom is offline
The best response was hands on and it is not the others aint good but since Im just getting introduced in ht access It would be nice of you if you could be more objective in asserting details in a more scaled and explained way providing step by step solution many thanks brothers
 
 


Old
  Post #7 (permalink)   09-05-2010, 05:34 PM
HD Amateur
 
Join Date: Aug 2010
Posts: 74

Status: zoom is offline
how do I override PHP flag settings on the server?
and in case I have suphp ,
-where I find the customized php.ini?
-what code will php.ini needs inside?
-how do I customize it?
 
 


Old
  Post #8 (permalink)   09-05-2010, 05:41 PM
HD Amateur
 
Join Date: Aug 2010
Posts: 74

Status: zoom is offline
zarvixe was also good ,the easiest is to find out if procedure can be done,I would need some help on performing it
 
 


Old
  Post #9 (permalink)   09-06-2010, 05:28 AM
HD Newbie
 
Join Date: Jul 2010
Posts: 11

Status: ZArvixe is offline
Quote:
Originally Posted by zoom View Post
how do I override PHP flag settings on the server?
and in case I have suphp ,
-where I find the customized php.ini?
-what code will php.ini needs inside?
-how do I customize it?
In your public_html, create a file phpinfo.php with the following code:

PHP Code:
<?  phpinfo();  ?>
then check the output as http://yourdomain.com/phpinfo.php and look for value for "Server API". If its CGI then you can customize php settings in php.ini otherwise you will have to use .htaccess..

In case its CGI, the best option would be requesting your host to copy server level php.ini to your account and you can then modify it as per needs.

In case its not CGI, you will have to use .htaccess to customize php settings e.g to increase upload_max_filesize to 300M you will have to set following in .htaccess:

Quote:
php_value upload_max_filesize 300M
Hope that helps.
 
 


Old
  Post #10 (permalink)   09-06-2010, 01:10 PM
HD Amateur
 
Join Date: Aug 2009
Posts: 74

Status: PowerDot is offline
A good advice; for security reasons better you disable info.php!
 
 


Old
  Post #11 (permalink)   09-06-2010, 05:55 PM
HD Amateur
 
Join Date: Aug 2010
Posts: 74

Status: zoom is offline
You are wonderfull zarvixe thank you brother
 
 


Old
  Post #12 (permalink)   09-10-2010, 07:27 PM
HD Amateur
 
Join Date: Aug 2010
Posts: 74

Status: zoom is offline
I f is CGI can I have php.ini on my htm areea?
 
 


Old
  Post #13 (permalink)   09-28-2010, 02:28 PM
HD Newbie
 
Join Date: Jul 2010
Posts: 41

Status: hostingguy12 is offline
Quote:
Originally Posted by handsonhosting View Post
Depending on your configuration of Apache you may not be able to reference php commands from inside a .htaccess file.

You can create a .htaccess file and upload it to your /public_html folder. If your host support SuPHP (many hosts do), then you can upload a custom php.ini file to your public_html folder also and override any PHP flag settings on the server.

But basically all you'd be doing is FTP'ing the information to your site.
I agree I have done this for a customer of mine in the past and it seemed to work. FTP Is all that it is.
__________________
Hostingguy12 :)

A technology and web hosting specialist with a lot of knowledge willing to share. Just ask and you will receive!
 
 


Old
  Post #14 (permalink)   11-16-2010, 04:32 PM
HD Amateur
 
Join Date: Aug 2010
Posts: 74

Status: zoom is offline
I had a way doin SFTP ,Im gonna get to it,in case someone can refresh me on it I would truly appreciate
 
 


Old
  Post #15 (permalink)   11-16-2010, 10:11 PM
HD Community Advisor
 
handsonhosting's Avatar
 
Join Date: Mar 2005
Location: Omaha, NE
Posts: 1,853

Status: handsonhosting is offline
sFTP is similar to FTP. You just need to be sure that your software supports the sFTP connection. It operates over a SHELL connection, so instead of the default "port 21" for FTP, you will want to enter the Port Number for your shell connection.

That's it. It functions just like FTP.
 
 
Closed Thread
Previous Thread Next Thread


Thread Tools

New Post New Post   Old Post Old Post
Posting Rules:
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Sponsored By: