How do you edit php.ini on hostrocket servers?
| SitePoint Sponsor |





How do you edit php.ini on hostrocket servers?





I doubt you can your best bet is to add php directives to a .htaccess file in the form of for example
php_value auto_prepend_file "/home/html/prepend.php"
php_value auto_append_file "/home/html/append.php"
php_value include_path "/home/html"
php_value session.name "PHPSESSID"
php_value session.cookie_path "/"
php_value session.cookie_domain "www.yourdomain.com"
Please don't PM me with questions.
Use the forums, that is what they are here for.





I don't know if i cna use .htaccess files
STRANGE





It seems you are using a Linux server running apache so I don't see why you can't use .htaccess files have you tried? Normall a virtual host will not let you have access to the php.ini file and will force you to put your directives in a .htaccess file.
Please don't PM me with questions.
Use the forums, that is what they are here for.





I am contacting HostRocket about this, strange.
No .htaccess...
I wanted to change the php.ini to change include path as i read the databse articles by Matt and i was doing that security thing. Including a user name and password and storing it in the base dir





You don't need to do that just specify the absolute path to the file you want to include
like
include("/home/myuser/dbstuff.inc");
Please don't PM me with questions.
Use the forums, that is what they are here for.





Ok...
I found that .htaccess does work but is delete when uploaded as it changes server config files





Or is it that your ftp client is not setup to show system files or .htaccess files after you upload it can you telnet in and see it, if so that just means that you need to configure your ftp client properly, did hostrocket tell you that you could use them and you just can't see them after you upload them?
Please don't PM me with questions.
Use the forums, that is what they are here for.





HostRocket says i can use them but nothing about them being invisible.
FTP confirgured fine.
STRANGE, maybe because i only signed up with them 1 hour ago





HostRocket wouldn't tell you they were invisble it would be your ftp client that couldn't see them unless you have configured it to recognize files with a .htaccess extenstion what ftp client do you use?
Please don't PM me with questions.
Use the forums, that is what they are here for.





CuteFTP
I logged onto a different host - petestech.com and i could see my htaccess filez





In the wonderful land of unix, files that begin with a "." are dot-files and are generally not displayed when you LIST (ftp) or ls (normal) the directory. This is because they are generally configuration files.
In almost all FTP clients, there is an option to "Show hidden files" or "Show dotfiles." Turn this on and you will be able to see them.




To show it, you have to use LIST -la





What was that List thingo?





My CuteFTP doesn't show them either just telnet in and cd into the dir where you uploaded it then issue the following command
ls -la
you should get the directory contents including the .htaccess file
Please don't PM me with questions.
Use the forums, that is what they are here for.





Got it, how do you delete a file in Telnet





rm -r -f filename
Please don't PM me with questions.
Use the forums, that is what they are here for.





Thanx allot every1, BTW, the rm -r -f goes for folders aswell right?
I got my first eva database up and running. At the age of 14
216.74.101.27/test.php
I just have to work out how to use a form to add things to the database
Hi,
rmdir is the remove directory command.
-Brendan Brader
HostRocket! Launch Your Site Today
http://www.hostrocket.com





rm -r -f dirname will remove it as well try it if you like
Please don't PM me with questions.
Use the forums, that is what they are here for.
I've WRITTEN bigger stuff at the age of 14Originally posted by petesmc
I got my first eva database up and running. At the age of 14![]()
- John M





I only learnt HTML 6 months ago
I learned PHP a few months ago![]()
- John M





I learnt it yesterday
Bookmarks