After my host has configured my centos server having a plesk control panel. It’s now up to me to configure and optimize my server at its most desirable configuration. And of course oe of the main files that needed to be configured is the php.ini files. It is responsible on how your server will execute its php files for your server. Though this guide is available in some hidden forums on the internet, there is completely no resource to know how to do this step by step.
How to find the php.ini files.
1. First create a php file, you can name it phpinfo.php or whatever you like.
2. Then enter these lines in the php file
<? echo info(); ?>
3. Save it and upload it to your root directory.
4. Execute the file in your browser. (Open the file) i.e. www.yourname.com/phpinfo.php
That’s it, in the output of php info you can find this one –>
Configuration File (php.ini) Path /etc/php.ini , that means your php.ini is in /etc folder.
Related Commands in Shell to edit php.ini file.
# cd etc/
# vi php.ini
To edit via vi, press Insert on your keyboard. Once your done, press ESC key then enter ZZ to save your settings on exit.
Transferring from one host to another is a very daunting task, especially when there are types of files that are not permitted to be downloaded into your windows system. When i first got my dedicated server, my head almost go crazy becausei cannot fully transfer my site from one host to another host because of some files violating the file formats in windows. Believe me, i even purchased 3D-FTP thinking that it would work. But thanks to SCP command i was able to transfer from one host to the other without a problem. But your problems wont end here, i had probleexecuting these commands into the shell because the guides online are complicated and sometimes it does not work. Oh well im just going to make it easy for you so that you wont have any problems with transferring it.
What your first need to do is login to your existing host using the Shell, jailed shell access will also work. Once you have login as a <strong>root</strong> , type the following commands:
cd /
scp -r public_html/(folder) root@domain.com:/domains/public_html
<strong>-r</strong> refers to the folder being transferred and root@domains.com is the remote host you wish to connect. Now you might be wondering where could the password be, dont worry..shell will prompt you for password before it initiats a transfer. Also make sure that the directory it will transfer to the remote host is created. The process of transferring 1.6 GB of file took me about 75 minutes..believe me this is the best bet to transfer from one host to another. Hidden files were also transferred in this process, i was able to download my files on FTP at only 156MB and it was 600MB via SCP…see what your missing now? Goodluck!
Finally i can get into the world of blogging again, i told myself a year ago that i will never blog until i get back my own domain name. And guess what its now mine all mine again, i lost my domain because i register this doman back at my old webhost at netfirms, when its about to expire that time i manage to renew it however i didnt realize that its in the period after the expiry date, after a week my domain expired and to my surprise it was immediately snatched by a domain broker firm and their asking me $300 for it.
Our negotiation did not push thru, but lucky me after a year of waiting they finally let it go. i can finally start blogging about all the ramblings im doing on the web, ill be adding some more techy categories such as linux administration as well. I hope this is the start for a good year next year.. ![]()
Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Quisque sed felis. Aliquam sit amet felis. Mauris semper, velit semper laoreet dictum, quam diam dictum urna, nec placerat elit nisl in quam. Etiam augue pede, molestie eget, rhoncus at, convallis ut, eros. Aliquam pharetra. Nulla in tellus eget odio sagittis blandit. Maecenas at nisl. Nullam lorem mi, eleifend a, fringilla vel, semper at, ligula. Mauris eu wisi.