Linux installation - no php.ini created
Posted: Fri Jan 06, 2012 5:22 am
This attempt comes after an initial installation of AMP last year, in september. I removed Apache and PHP and I downloaded some new versions, because I had problems with something on a website. I have CentOS 5.5, Apache 2.3.8 and PHP 5.4. Apache and MySQL are installed and functioning normally, working website accessible from browser, databases accessible using navicat. The problem is I can't make PHP work again.
I took the archive, extracted it, then:
1../configure --with-apxs2=/usr/local/apache2/bin/apxs --disable-debug --enable-ftp --enable-inline-optimization --enable-magic-quotes --enable-mbstring --enable-mm=shared --enable-safe-mode --enable-track-vars --enable-trans-sid --enable-wddx=shared --enable-xml --with-dom --with-gd --with-gettext --with-mysql-dir=/usr/ --with-regex=system --with-xml --with-zlib-dir=/usr/lib --with-config-file-path=/usr/local/lib/php.ini
2. Make
3. Make install
All without errors, except the first one, where it says it does not recognize some parameters (ie those with --), but it does not matter that much, I think: unrecognized options: --enable-magic-quotes, --enable-mm, --enable-safe-mode, --enable-track-vars, --enable-trans-sid, --with-dom, --with-mysql-dir, --with-xml. Besides that, there are no other errors during compilation and installation. But after installation, there is no php.ini anywhere on the hard drive.
What should I do? Maybe I was tired and missed something...
PS: Note that for --with-config-file-path=/usr/local/lib/php.ini, I tried with file path (how it is written here), with directory path, (/usr/local/lib), and no option (the default path) and it still does not work, no php.ini file anywhere.
I took the archive, extracted it, then:
1../configure --with-apxs2=/usr/local/apache2/bin/apxs --disable-debug --enable-ftp --enable-inline-optimization --enable-magic-quotes --enable-mbstring --enable-mm=shared --enable-safe-mode --enable-track-vars --enable-trans-sid --enable-wddx=shared --enable-xml --with-dom --with-gd --with-gettext --with-mysql-dir=/usr/ --with-regex=system --with-xml --with-zlib-dir=/usr/lib --with-config-file-path=/usr/local/lib/php.ini
2. Make
3. Make install
All without errors, except the first one, where it says it does not recognize some parameters (ie those with --), but it does not matter that much, I think: unrecognized options: --enable-magic-quotes, --enable-mm, --enable-safe-mode, --enable-track-vars, --enable-trans-sid, --with-dom, --with-mysql-dir, --with-xml. Besides that, there are no other errors during compilation and installation. But after installation, there is no php.ini anywhere on the hard drive.
What should I do? Maybe I was tired and missed something...
PS: Note that for --with-config-file-path=/usr/local/lib/php.ini, I tried with file path (how it is written here), with directory path, (/usr/local/lib), and no option (the default path) and it still does not work, no php.ini file anywhere.