LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 07-27-2009, 07:29 AM   #1
smaj84_1
Member
 
Registered: Jul 2009
Location: Pakistan
Distribution: Fedora
Posts: 71

Rep: Reputation: 15
Smile PHP


I have downloaded and installed PHP 5.3.0...while i tried to copy php.ini.dist file to /usr/local/apache/php5/php.ini it says
--------------------------------------------------------------------------
[root@localhost php-5.3.0]# cp php.ini-dist /usr/local/apache/php5/php.ini
cp: cannot stat `php.ini-dist': No such file or directory
--------------------------------------------------------------------------
Then i took ls and here is the output...
--------------------------------------------------------------------------
[root@localhost php-5.3.0]# ls
acconfig.h cvsclean.bat Makefile.fragments README.EXT_SKEL sapi
acconfig.h.in ext Makefile.gcov README.input_filter scripts
acinclude.m4 EXTENSIONS Makefile.global README.MAILINGLIST_RULES server-tests-config.php
aclocal.m4 footer Makefile.objects README.namespaces server-tests.php
build generated_lists makerpm README.PARAMETER_PARSING_API snapshot
buildconf genfiles missing README.PHP4-TO-PHP5-THIN-CHANGES stamp-h.in
buildconf.bat header mkinstalldirs README.QNX stub.c
CODING_STANDARDS include modules README.REDIST.BINS tests
config.cache INSTALL netware README.RELEASE_PROCESS TODO
config.guess install-sh NEWS README.SELF-CONTAINED-EXTENSIONS TODO-5.1
config.log libs pear README.STREAMS TODO-PHP5
config.nice libtool php5.spec README.SUBMITTING_PATCH TSRM
config.status LICENSE php5.spec.in README.TESTING UPGRADING
config.sub ltmain.sh php.gif README.TESTING2 win32
configure main php.ini-development README.UNIX-BUILD-SYSTEM Zend
configure.in makedist php.ini-production README.WIN32-BUILD-SYSTEM
CREDITS Makefile README.CVS-RULES README.Zeus
cvsclean Makefile.frag README.EXTENSIONS run-tests.php
--------------------------------------------------------------------------
Plz guide me wht should i do..?
 
Old 07-27-2009, 07:35 AM   #2
neonsignal
Senior Member
 
Registered: Jan 2005
Location: Melbourne, Australia
Distribution: Debian Jessie (Fluxbox WM)
Posts: 1,387
Blog Entries: 52

Rep: Reputation: 355Reputation: 355Reputation: 355Reputation: 355
php.ini-dist no longer present

php.ini-dist is now php.ini-production

There is a wiki entry here with some more information on the two new ini files.

Last edited by neonsignal; 07-27-2009 at 07:39 AM.
 
Old 07-27-2009, 07:57 AM   #3
smaj84_1
Member
 
Registered: Jul 2009
Location: Pakistan
Distribution: Fedora
Posts: 71

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by neonsignal View Post
php.ini-dist is now php.ini-production

There is a wiki entry here with some more information on the two new ini files.
Thanks for the reply but see this output..
-------------------------------------------------------------------------
cp php.ini-production /usr/local/apache/php5/php.ini
cp: cannot create regular file `/usr/local/apache/php5/php.ini': No such file or directory
-------------------------------------------------------------------------

it says cannot create regular file /usr/local/apache/php5/php.ini...Why? wht should i do now?
 
Old 07-27-2009, 09:06 AM   #4
neonsignal
Senior Member
 
Registered: Jan 2005
Location: Melbourne, Australia
Distribution: Debian Jessie (Fluxbox WM)
Posts: 1,387
Blog Entries: 52

Rep: Reputation: 355Reputation: 355Reputation: 355Reputation: 355
directory

Quote:
cp: cannot create regular file `/usr/local/apache/php5/php.ini': No such file or directory
This is possibly because the directory '/usr/local/apache/php5' that you are copying to does not exist.

Is it supposed to be '/usr/local/apache/php' instead? (I believe that this location depends on the --with-config-file parameter that was used earlier in the installation process).
 
Old 07-27-2009, 09:35 AM   #5
smaj84_1
Member
 
Registered: Jul 2009
Location: Pakistan
Distribution: Fedora
Posts: 71

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by neonsignal View Post
This is possibly because the directory '/usr/local/apache/php5' that you are copying to does not exist.

Is it supposed to be '/usr/local/apache/php' instead? (I believe that this location depends on the --with-config-file parameter that was used earlier in the installation process).
Thanks i resolved that copy issue but the new issue is this

[root@localhost bin]# ./apachectl restart
httpd: Syntax error on line 313 of /usr/local/apache/conf/httpd.conf: Cannot load /usr/local/apache/modules/libphp5.so into server: /usr/local/apache/modules/libphp5.so: undefined symbol: ap_server_root

I had add some lines in httpd.conf that are as follow:
AddType application/x-httpd-php .php .phtml
AddType application/x-httpd-php-source .phps
AddType application/x-httpd-php .php
LoadModule php5_module /usr/local/apache/modules/libphp5.so


pls tell me where i have to add lines in httpd.conf and also tell me wht exactly i have to add in httpd.conf
 
Old 07-27-2009, 11:34 AM   #6
smaj84_1
Member
 
Registered: Jul 2009
Location: Pakistan
Distribution: Fedora
Posts: 71

Original Poster
Rep: Reputation: 15
Is there any Linux Guru who can help me for the above problem?
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Are PHP session variables held in memory when you leave a PHP site? Locura Programming 11 11-16-2008 09:37 PM
php page displaying text that is supposed to be part of php code DragonM15 Programming 9 07-31-2008 05:58 PM
Adding users with PHP (pass php variables to Expect script) Jayla Programming 1 10-20-2006 11:44 AM
Php account verify email links back to php.org zenerdiode Linux - Server 3 10-03-2006 06:21 PM
php apache or php cgi - php learner rblampain Linux - Security 3 12-18-2004 12:10 AM


All times are GMT -5. The time now is 01:35 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration