![]() |
|
|||||||
| Chit Chat Public Talk about any thing you want! This forum is public. |
![]() |
|
|
Thread Tools | Search this Thread | Display Modes |
|
#1
|
||||
|
||||
|
Custom PHP.INI here
--- EDITED BY: Bladesnitz on June 5, 2003 ---
The custom php.ini file is no longer required for mail on Windows servers. They are now set to use the default SMTP of 'localhost' when using the mail() function in PHP. You are still able to use your own custom php.ini, but it is not necessary to set it up yourself to allow sending mail. --------------------------------------------------------- If you have some settings you would like in php.ini and we will not do it server wide for some reason.. You can put a php.ini file in your web root and the server will use that one. Here is a copy of a simple php.ini file. NOTE: If your on windows use this php.ini and place it in your domain.com dir. also edit the smtp to mail.yourdomain.com or mail1.yourdomain.com and mail will work fine. I have updated the PHP.ini to 4.3.1 now 3/31/2003 Last edited by Bladesnitz : 06-05-2003 at 02:22 AM. |
|
#2
|
|||||||||||
|
|||||||||||
|
Server Root
I have totally understand the PHP.INI thing.
But can you please tell me where should I put that .ini file? You have said "in the web root". If I have the following: /hsphere/local/home/domain1.com /hsphere/local/home/sub1.domain1.com /hsphere/local/home/sub2.domain1.com /hsphere/local/home/domain2.com Then where should put the file?? Please HELP!! |
|
#3
|
||||
|
||||
|
In each of them in the domain.com dir. You need to put the php.ini in each dir as each site is run with the php.ini file.
|
|
#4
|
|||||||||||
|
|||||||||||
|
Next Question
Pleas let me clear, ...have mean to say I should put it on every main domain?? Or every main domain, as well as any sub-domains.
Please HELP!! Note## I have send you an email regarding Vortech redesign. Please check it out. Sorry to say about it here. |
|
#5
|
|||||||||||
|
|||||||||||
|
[never mind]
[deleted]
Last edited by gadget : 10-01-2002 at 11:05 AM. |
|
#6
|
|||||||||||
|
|||||||||||
|
Admin, Thank you for posting this. Doing it this way is really the safest way to do it and still allow some flexibility in a shared hosting environment. Kudos!
__________________
Regards, Dan W. Sign over a SysAdmin's desk: "Just because you are paranoid, doesn't mean they are not out to get you!!" |
|
#7
|
||||||||||||
|
||||||||||||
|
I'm copy this file into my web root and uncomment GD extension in there, but now I can't access any php pages. Can anyone help?
Few more questions: 1. What version of GD is install on Windows? 2. Do we need to change the extension_dir? 3. GD is standard on php 4.3.1, do we still need to download the dll and change the extension_dir? 4. Shouldn't it be gd2.dll not gd.dll? I'm very new at these stuff so any help would be appreciated.
__________________
AwishStar |
|
#8
|
|||||||||||
|
|||||||||||
|
Had the same issue. I removed the file and everything worked.
Do you think you could post a copy of the one that is actually running on the server so we have a good baseline that we know everythings runs well on then we can edit the mail and other specific features? Thanks |
|
#9
|
||||
|
||||
|
Updated the php.ini file to 4.3.1
__________________
Brad Pugh http://www.vortechhosting.com ------ Local System/Network Monitor http://nagios.hsphere.cc/ Login:guest Pass:guest XML FEED http://nagios.hsphere.cc/feed.xml ------ My Other Life:
|
|
#10
|
|||||||||||
|
|||||||||||
|
We are on Unix and we are trying to put this file in both the "/" root directory as well as the "domain" directory and neither work for us. Do we need to place this in another directory. (We ask because you've switched magic quotes again and all our scripts are funky.)
|
|
#11
|
|||||||||||
|
|||||||||||
|
Unix accounts do not work with custom php.ini, what do you need modified?
|
|
#12
|
|||||||||||
|
|||||||||||
|
Magic Quotes used to be "off". All our scripts for our sites are based on this. Recently, magic quotes turned "on". We actually like that them being on, but now we have to go through all our sites changing our scripts. Please keep it one way or the other, because we've gone through this several times now since hosting with you (since the beginning). If it's going to be "on" make sure it will always stay "on" so that we don't have to keep changing all our scripts with each upgrade.
|
|
#13
|
||||
|
||||
|
Theoddity, not trying to be a smart as but have you ever put in a ticket for the server with it off.. It should be on all of our systems as far as I know.
__________________
Brad Pugh http://www.vortechhosting.com ------ Local System/Network Monitor http://nagios.hsphere.cc/ Login:guest Pass:guest XML FEED http://nagios.hsphere.cc/feed.xml ------ My Other Life:
|
|
#14
|
|||||||||||
|
|||||||||||
|
Back in October, we placed a ticket about GD, but only posted the magic quote problem. Admin, you told me to run a custom php.ini file in http://www.matrixwebhosting.net/foru...&threadid=525. We tried that, it didn't work and didn't have the time to mess with it, so we just changed our script to reflect magic quotes off. We just adapted to your system at that time and it all laid dormant until a client recently used our backend system again only to discover that magic quotes are back on. I just want to make sure that we don't run into this again if we have no way of customizing php.ini files on unix systems. Thanks.
|
|
#15
|
|||||||||||
|
|||||||||||
|
BTW, I don't want magicquotes off. We can change our scripts for it being "on" since that's preferrable. I only want to make sure it stays on.
|
![]() |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | Search this Thread |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| All Windows Servers | johnk | Network / Server Status | 6 | 11-23-2003 03:44 PM |