Web Hosting Forum | Lunarpages


*
Welcome, Guest. Please login or register.
Did you miss your activation email?



Login with username, password and session length
May 25, 2012, 09:45:24 AM

Pages: [1]   Go Down
  Print  
Author Topic: File Structure & php.ini  (Read 803 times)
EdwardOwens
Newbie
*
Offline Offline

Posts: 3


« on: May 25, 2007, 07:07:40 AM »

I hope this is the place to ask. I have a vps and I'm trying to install Joomla and for the life of me I can't find php.ini file that I need to edit to make the site work & secure. I used the file manager in plesk and couldnt find it going through all the directories. I also ssh but was only givin 2 directories and 3 files when I did that. My linux experience has been limited but I do know how to navigate through using ls and cd. I also need to know how to give Joomla Write permissions.. Do I need to CHMOD my website? If so how do I do that or where can anyone point me so that I can learn that. Any help is much appreciated.

Edward Owens
Logged
Lupine1647
Berserker Poster
*****
Offline Offline

Posts: 10868


« Reply #1 on: May 26, 2007, 11:04:16 AM »

Hello,

Login as root or su to root when you are logged in via SSH. From there do a 'locate php.ini' without the quotes. This will tell you where the file php.ini is located on your system (it may come up multiple times depending on how many copies there are but it should be noticeable as to which one you will need to edit).

Let us know if you have any other questions.
Logged
perestrelka
Administrator
Master Jedi
*****
Offline Offline

Posts: 1395



« Reply #2 on: May 26, 2007, 10:04:49 PM »


Just to add. Please be very careful modifying system php.ini. This can break your plesk or webmail functionality.

To customize PHP settings per domain basis, you need to edit the file /var/www/vhosts/{domain_name}/conf/httpd.include and add lines such as

php_admin_value {php_setting_name} {php_setting_value}

For example:

php_admin_value safe_mode 0
php_admin_value session.use_trans_sid 0

Then restart Apache and check phpinfo() output to check that the changes have taken effect.
Logged

Kind Regards,
Vlad Artamonov
Pages: [1]   Go Up
  Print  
 
Jump to: