You are here: Re: cant get php.ini to be read « All PHP « IT news, forums, messages
Re: cant get php.ini to be read

Posted by dylan.boudreau on 08/18/06 21:36

Thanks for the advice, I opted to start from scratch and removed and
built from source mysql, openssl, apache, and php. And this time
everythign seems to be working perfectly. Don't know why it wouldn't
read it the last time...thanks again.

Dylan


Luke - eat.lemons@gmail.com wrote:
> dylan.boudreau@gmail.com wrote:
> > Hi, I have tried putting it in /etc and /usr/local/etc both with the
> > same result. This is the configure command I used when building...
> >
> > ./configure' '--with-apxs2=/usr/local/apache/bin/apxs'
> > '--with-mysql=/usr/local/mysql' --with-mysql-sock=/data/db'
> > '--prefix=/usr/local/php'
> > --with-config-file-path=/usr/local/apache/conf/'
> > '--enable-force-cgi-redirect' '--disable-cgi' --with-zlib'
> > '--with-gettext' '--with-gdbm'
> >
> > I can get the file to load if I use the PHPRC variable when starting
> > apache but then that causes other problems (phpMyAdmin doesn't work
> > anymore)
> >
> > Luke - eat.lemons@gmail.com wrote:
> >> dylan.boudreau@gmail.com wrote:
> >>> My configuration is Apache/2.0.59 (Unix) mod_ssl/2.0.59 OpenSSL/0.9.7d
> >>> PHP/5.0.4 on Solaris 10.
> >>>
> >>> phpinfo() lists the location of php.ini as /usr/local/apache/conf and
> >>> my php.ini file is there but for some reason it does not appear to be
> >>> being read by php. I have defined things such as upload_tmp_dir in
> >>> that file yet even with restarting apache I am not seeing this
> >>> reflected in phpinfo().
> >>>
> >>> I am pretty new to PHP so its entirely possible I am missing somethign
> >>> but any help as to why php.ini would not be read would help me a lot.
> >>>
> >>> Thanks,
> >>>
> >>> Dylan
> >>>
> >> try placing it in /etc/ "/etc/php.ini"
> >>
> >> Then restart your httpd and invoke the phpinfo(); function agian.
> >
> Try this configure line, paste it in
>
> ./configure --with-config-file-path=/etc/
> --with-apxs2=/usr/local/apache/bin/apxs --with-mysql=/usr/local/mysql
> --with-mysql-sock=/data/db --prefix=/usr/local/php
> --enable-force-cgi-redirect --disable-cgi --with-zlib --with-gettext
> --with-gdbm
>
> Then place your config in /etc/ and restart apache.
>
> (it could be a simple whitespace causing it)

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация