Jul 24, 2008

Custom Php.ini Woes - Any help is appriciated

Free Web Hosting, No Ads > General > Hosted Members Area

free web hosting

Custom Php.ini Woes - Any help is appriciated

Revan
Ok, so I tried to install Joomla but there is no save session information. To confirm I used a phpinfo script to discover that this isn't set in my server's configuration. So, after searching these forums for how to create a custom php.ini, I found a nifty little tutorial and script to do this. However when I run such a script, I can never access the php.ini file. In another thread from about a year ago the administrator offered to CHMOD the php.ini file so that it could be temporarily copied to the main public_html directory for use. Is there anyway someone could do this for me? If not, I downloaded php 5.2.0, and began the tedious process of manually changing all of the values to match the phpinfo from my server when I realized that even if that did work I would have to do it again if Trap17 upgrades to 5.2.5 or simply changes one of the values in the master php.ini. Thank you for everything, and advice would be extremely helpful. Thank you.

Reply

jlhaslip
Certain things can be modified using the ini_set function in php.

Check out the function description etc at http://php.net, in particular, there is an Appendix to the php Manual which tells you which directives can be modded via scripting.
Good Luck.

Reply

Revan
There is, however, no way I can use a script to read the php.ini file and edit it on the fly to create my own php.ini? Doing it manually is extremely inefficient sleep.gif . I just wish there was a way I could edit all of my settings separate from individual scripts. Is it at all possible that the session.save_path option could be set to tmp in our root public_html directories? Is there a security disadvantage for not doing so? Thanks for the response, I love Trap17 and I'm sure I will find ways around these problems.

Reply

jlhaslip
I don't think you can re-write the php.ini file since you do not have full access to the Server files.
Also, as you call php to perform this re-write, the directives are already configured.

Look at adding the ini_set() into your Configuration files for the scripts? to alter what changes you need.

Reply

Saint_Michael
I agree with haslip that you can't rewrite the php.ini, however, why would you need to download php 5.2 when its already installed in your hosting account. However, I do believe your problem is common so I googled a search for you to sift through the results to get an answer about installing joomla on a save session path. Of course I do believe the pre-install joomla 1.3 comes with it but not to sure about that though.

Reply

Revan
I downloaded php 5.2.0 because that is the version installed on my webhost. You see, PHP allows you to load your own custom php.ini file, so I wanted to to configure my own. My dilemma, as previously stated, is that I can't use any of the MANY scripts written for this purpose, Import the main php.ini and put in your values for the things you want to change on the fly; This is simply because the php.ini is fully hidden from users, I can understand why in some instances, but I'm not trying to change the values for everyone on xisto, that's silly. I only want to be able to use my own values for the php.ini, I understand php.ini is a file shared to everyone who is on my server, I was just wondering if any help could be given in properly utilizing a custom php.ini script. I think my solution is to simply use phpinfo to find all of the values for trap17's php.ini file and edit them into the php.ini file I downloaded with php 5.2.0, considering that unfortunately ini_set seems unresponsive. Thanks for all of your help, I have been on Joomla forms as well and I assure you bothering the good folks here with my problems was a last resort.

 

 

 


Reply

jlhaslip
It is no bother at all. Experienced Members help newer members and they help still newer members. That is the beauty of the Forum system we have here. It is a collection of people with different strengths, all assisting one another to develop the skills needed to run a Web site and other stuff. We share what we know and others share the stuff we need to learn. A win-win situation.

What system are you downloading the php5.2 on? XAMPP, WAMP, easyphp? or the apache http server directly?

Reply

Revan
I downloaded PHP 5.2.0 on my home computer from their site just so that I could get a copy of php.ini to edit. I added my own values on top of putting in trap17 values to be as in sync as possible. The script I was trying to use in my first post does this automatically. The original topic I received this information from was from trap17 about two years ago found here.

Reply



Got an Opinion! Express your Views! (no registration):-
Add your Reply/ Opinion/ Views/ Comments/ Suggestion/ Questions/ Queries etc.
Posts with decent grammar & English will be accepted and please refrain from profanities.
For asking a Question, We recommend you to sign-up (for free) so that you can track the topic easily.

Nature of your Post*: Opinion/ Reply/ Comments
Question/Query
Feedback to us.
       
Name   Email
Title/Question*

(Maximum characters: 10,000)
You have characters left.
Confirm Code:

Recent Queries:-
  1. joomla custom php.ini - 6.34 hr back. (1)
  2. free webhosting with option to edit php.ini file - 33.41 hr back. (1)
  3. changing php.ini on the fly - 40.53 hr back. (1)
  4. cpanel users custom php.ini - 43.34 hr back. (1)
  5. http error 404 - file or directory not found. when downloading .ini - 45.87 hr back. (1)
  6. getting a copy of the standard php.ini in cpanel - 66.43 hr back. (1)
  7. write your own php.ini - 121.77 hr back. (1)
Similar Topics

Keywords : custom, php, ini, woes, appriciated

  1. Installing Custom Fonts...
    (5)
  2. Cms: Can I Use My Own Custom Template?
    I really wanna know. Need ya help here (3)
    I am quite good with HTML and some of the other Web programming languages, but I am having some
    difficulty in getting a web portal done. I have thought of using a content management system (CMS)
    to get the job done. But, one thing I dont like is the themes or do you call that templates, which
    come installed in them CMS softwares. I wanna know whether I can possibly design my own custom
    template/theme and then incorporate it into the CMS program...say Mamboo...so that instead of it
    displaying the default template which was preinstalled, it will now be displaying my own ....
  3. Making Custom Error Pages With Cpanel
    Not working properly (4)
    I set up the custom error pages using CPanel, but they aren't working properly. I get the
    standard error code. CODE The requested URL was not found on this server. Additionally, a 404
    Not Found error was encountered while trying to use an ErrorDocument to handle the request.
    Plust that little bit on the end. Am I doing something wrong or is it something that needs to be
    handled by an admin?....
  4. Custom Drop Down Menu's
    Link Bug (4)
    Personally I like the idea of the custom drop down menu's, but its a pain when they don't
    work. /tongue.gif" style="vertical-align:middle" emoid=":P" border="0" alt="tongue.gif" /> The
    Credit dropdown when you click one of the links, nothing happens just refreshes and takes you back
    to the forums index, or what ever page you were just on. I have not yet checked the hosting one,
    but all the others work or take you to where they go. (At least the ones I have checked).....
  5. Custom Bbcodes
    Ipb Forum Help (3)
    Hey All, I am running IPB 2.0 Forum. I want to add a BBCode for Moderators and Admins. (like the
    one here on Trap 17) when they Post a comment or Edit a topic. I have very little to no knowledge
    of how to do this. Help would be very grateful. Thanx Please take topic title and description
    seriously. Editing. ....
  6. Website Woes
    Cannot connect (6)
    QUOTE Warning: fopen(/home/kevlar55/public_html/Settings.php): failed to open stream: Permission
    denied in /home/kevlar55/public_html/Sources/Admin.php on line 1098 Warning: fclose(): supplied
    argument is not a valid stream resource in /home/kevlar55/public_html/Sources/Admin.php on line 1099
    Warning: fopen(/home/kevlar55/public_html/Settings.php): failed to open stream: Permission denied
    in /home/kevlar55/public_html/Sources/Admin.php on line 1102 Warning: fwrite(): supplied argument
    is not a valid stream resource in /home/kevlar55/public_html/Sources/Admin.php o....
  7. Creating Custom Error Pages
    For My Domain (9)
    Hi, I am running my own Domain here on Trap 17. I am wanting to know how I go ago making Custom
    Error Pages. I know that there is a part in the Cpanel to do this, but that only allows text. I want
    to add in my site logo etc. Is there a way I can make the page through Frontpage? If so what do I
    name the page, for example on a 404 Error. And where would I upload that file to? Thanking you in
    advance for your help.....
  8. Phpnuke Custom Theme Error
    (10)
    Hey, I just setup PHP-Nuke, which worked fine, until I tried installing a custom theme. It was the
    Charcoal one, but it had the same error with another theme that I tried. I got this error: QUOTE
    Warning: head(themes/Charcoal/theme.php): failed to open stream: No such file or directory in
    /home/gchl/public_html/nuke/header.php on line 31 Warning: head(themes/Charcoal/theme.php): failed
    to open stream: No such file or directory in /home/gchl/public_html/nuke/header.php on line 31
    Warning: head(): Failed opening 'themes/Charcoal/theme.php' for inclusion (i....
  9. Custom Cms
    Need someone... (6)
    I need someone with the abilities to use and integrate mysql and php well. I need help doing the
    backend (coding) of a custom CMS for this site http://teq1.info If you can help me with this let
    me know in pm or email me at trystim@gmail.com. thanks.....

    1. Looking for custom, php, ini, woes, appriciated

Searching Video's for custom, php, ini, woes, appriciated
advertisement



Custom Php.ini Woes - Any help is appriciated



 

 

 

 

ADD REPLY / Got an Opinion! Remove these ADs! RAPID SEARCH! Free Web Hosting [X]
Express your Opinions, Thoughts or Contribute more info. to help others.
Ask your Doubts & Queries to get answers, So that "Together We can help others!"
Register FREE for AD-FREE forum, Create your own topics, Ask Questions, track topics, setup subscriptions & notifications and Get a Free Website w/ Email and FTP.
500MB Space *No Ads*, CPanel, FTP, PHP, MySQL, EMails - 100% FREE