LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
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, 06: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, 06:35 AM   #2
neonsignal
Senior Member
 
Registered: Jan 2005
Location: Melbourne, Australia
Distribution: Debian Bookworm (Fluxbox WM)
Posts: 1,391
Blog Entries: 54

Rep: Reputation: 360Reputation: 360Reputation: 360Reputation: 360
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 06:39 AM.
 
Old 07-27-2009, 06: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, 08:06 AM   #4
neonsignal
Senior Member
 
Registered: Jan 2005
Location: Melbourne, Australia
Distribution: Debian Bookworm (Fluxbox WM)
Posts: 1,391
Blog Entries: 54

Rep: Reputation: 360Reputation: 360Reputation: 360Reputation: 360
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, 08: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, 10: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



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 08:37 PM
php page displaying text that is supposed to be part of php code DragonM15 Programming 9 07-31-2008 04:58 PM
Adding users with PHP (pass php variables to Expect script) Jayla Programming 1 10-20-2006 10:44 AM
Php account verify email links back to php.org zenerdiode Linux - Server 3 10-03-2006 05:21 PM
php apache or php cgi - php learner rblampain Linux - Security 3 12-17-2004 11:10 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 05:35 PM.

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
Open Source Consulting | Domain Registration