Ht Access

Status
Not open for further replies.

zoom

Account Disabled
Anybody that know ht access could tell me how to put php.ini on my html area please via cpanel or whm?
 
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?
 
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.
 
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.
 
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
 
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?
 
zarvixe was also good ,the easiest is to find out if procedure can be done,I would need some help on performing it
 
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:
<?  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:

php_value upload_max_filesize 300M

Hope that helps.
 
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.:thumbup:
 
I had a way doin SFTP ,Im gonna get to it,in case someone can refresh me on it I would truly appreciate
 
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.
 
Status
Not open for further replies.
Back
Top