LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 04-17-2006, 05:04 AM   #1
Gins
Senior Member
 
Registered: Jul 2004
Location: Germany
Distribution: open SUSE 11.0, Fedora 7 and Mandriva 2007
Posts: 1,662

Rep: Reputation: 47
Is PHP installed by default


[nissanka@c83-250-111-43 ~]$ locate php

I wrote the above command as I suspected that 'PHP' is installed on my system by default.

The following is the output. Does it mean that 'PHP' is already inside? If so, how can I start it.



------------------------------------------------------------------------

/home/nissanka/Documents/sendmail.php
/home/nissanka/.kde/share/apps/quanta/dtep/php
/usr/share/doc/lib64idn11-0.5.18/contrib/web/idn.php
/usr/share/doc/libidn11-0.5.18/contrib/web/idn.php
/usr/share/vim/ftplugin/php.vim
/usr/share/vim/indent/php.vim
/usr/share/vim/syntax/php.vim
/usr/share/icons/crystalsvg/128x128/apps/phppg.png
/usr/share/icons/crystalsvg/128x128/mimetypes/source_php.png
/usr/share/icons/crystalsvg/16x16/apps/phppg.png
/usr/share/icons/crystalsvg/16x16/mimetypes/source_php.png
/usr/share/icons/crystalsvg/32x32/apps/phppg.png
/usr/share/icons/crystalsvg/32x32/mimetypes/source_php.png
/usr/share/icons/crystalsvg/48x48/apps/phppg.png
/usr/share/icons/crystalsvg/48x48/mimetypes/source_php.png
/usr/share/icons/crystalsvg/64x64/apps/phppg.png
/usr/share/icons/crystalsvg/64x64/mimetypes/source_php.png
/usr/share/icons/crystalsvg/scalable/mimetypes/source_php.svgz
/usr/share/icons/gnome/48x48/mimetypes/gnome-mime-application-x-php.png
/usr/share/icons/HighContrastLargePrint/48x48/mimetypes/gnome-mime-application-x-php.png
/usr/share/icons/HighContrastLargePrintInverse/48x48/mimetypes/gnome-mime-application-x-php.png
/usr/share/icons/LowContrastLargePrint/48x48/mimetypes/gnome-mime-application-x-php.png
/usr/share/icons/Gorilla/scalable/mimetypes/gnome-mime-application-x-php.svg
/usr/share/icons/Lush/scalable/mimetypes/gnome-mime-application-x-php.svg
/usr/share/icons/Wasp/scalable/mimetypes/gnome-mime-application-x-php.svg
/usr/share/icons/mono/scalable/apps/phppg.svgz
/usr/share/icons/mono/scalable/mimetypes/php.svgz
/usr/share/icons/mono/scalable/mimetypes/source_php.svgz
/usr/share/apps/katepart/syntax/css-php.xml
/usr/share/apps/katepart/syntax/html-php.xml
/usr/share/apps/katepart/syntax/javascript-php.xml
/usr/share/apps/katepart/syntax/php.xml
/usr/share/apps/quanta/dtep/php
/usr/share/apps/quanta/dtep/php/bcompiler.tag
/usr/share/apps/quanta/dtep/php/apache.tag
/usr/share/apps/quanta/dtep/php/apd.tag
/usr/share/apps/quanta/dtep/php/array.tag
/usr/share/apps/quanta/dtep/php/aspell.tag
/usr/share/apps/quanta/dtep/php/bc.tag
/usr/share/apps/quanta/dtep/php/calendar.tag
/usr/share/apps/quanta/dtep/php/bzip2.tag
/usr/share/apps/quanta/dtep/php/classkit.tag
/usr/share/apps/quanta/dtep/php/ccvs.tag
/usr/share/apps/quanta/dtep/php/objaggregation.tag
/usr/share/apps/quanta/dtep/php/classobj.tag
/usr/share/apps/quanta/dtep/php/com.tag
/usr/share/apps/quanta/dtep/php/cpdf.tag
/usr/share/apps/quanta/dtep/php/crack.tag
/usr/share/apps/quanta/dtep/php/ctype.tag
/usr/share/apps/quanta/dtep/php/curl.tag
/usr/share/apps/quanta/dtep/php/cybercash.tag
/usr/share/apps/quanta/dtep/php/cybermut.tag
/usr/share/apps/quanta/dtep/php/cyrus.tag
/usr/share/apps/quanta/dtep/php/datetime.tag
/usr/share/apps/quanta/dtep/php/dba.tag
/usr/share/apps/quanta/dtep/php/dbase.tag
/usr/share/apps/quanta/dtep/php/dbm.tag
/usr/share/apps/quanta/dtep/php/dbplus.tag
/usr/share/apps/quanta/dtep/php/dbx.tag
/usr/share/apps/quanta/dtep/php/description.rc
/usr/share/apps/quanta/dtep/php/dio.tag
/usr/share/apps/quanta/dtep/php/dir.tag
/usr/share/apps/quanta/dtep/php/dom.tag
/usr/share/apps/quanta/dtep/php/domxml.tag
/usr/share/apps/quanta/dtep/php/dotnet.tag
/usr/share/apps/quanta/dtep/php/errorfunc.tag
/usr/share/apps/quanta/dtep/php/exec.tag
/usr/share/apps/quanta/dtep/php/exif.tag
/usr/share/apps/quanta/dtep/php/fam.tag
/usr/share/apps/quanta/dtep/php/fbsql.tag
/usr/share/apps/quanta/dtep/php/fdf.tag
/usr/share/apps/quanta/dtep/php/filepro.tag
/usr/share/apps/quanta/dtep/php/filesystem.tag
/usr/share/apps/quanta/dtep/php/fribidi.tag
/usr/share/apps/quanta/dtep/php/ftp.tag
/usr/share/apps/quanta/dtep/php/funchand.tag
/usr/share/apps/quanta/dtep/php/gettext.tag
/usr/share/apps/quanta/dtep/php/gmp.tag
/usr/share/apps/quanta/dtep/php/http.tag
/usr/share/apps/quanta/dtep/php/hw.tag
/usr/share/apps/quanta/dtep/php/hwapi.tag
/usr/share/apps/quanta/dtep/php/hyperwave.tag
/usr/share/apps/quanta/dtep/php/ibase.tag
/usr/share/apps/quanta/dtep/php/icap.tag
/usr/share/apps/quanta/dtep/php/iconv.tag
/usr/share/apps/quanta/dtep/php/id3.tag
/usr/share/apps/quanta/dtep/php/ifx.tag
/usr/share/apps/quanta/dtep/php/iisfunc.tag
/usr/share/apps/quanta/dtep/php/image.tag
/usr/share/apps/quanta/dtep/php/imap.tag
/usr/share/apps/quanta/dtep/php/info.tag
/usr/share/apps/quanta/dtep/php/ingres-ii.tag
/usr/share/apps/quanta/dtep/php/ircg.tag
/usr/share/apps/quanta/dtep/php/java.tag
/usr/share/apps/quanta/dtep/php/ldap.tag
/usr/share/apps/quanta/dtep/php/lzf.tag
/usr/share/apps/quanta/dtep/php/mail.tag
/usr/share/apps/quanta/dtep/php/mailparse.tag
/usr/share/apps/quanta/dtep/php/math.tag
/usr/share/apps/quanta/dtep/php/mbstring.tag
/usr/share/apps/quanta/dtep/php/mcal.tag
/usr/share/apps/quanta/dtep/php/mcrypt.tag
/usr/share/apps/quanta/dtep/php/mcve.tag
/usr/share/apps/quanta/dtep/php/memcache.tag
/usr/share/apps/quanta/dtep/php/mhash.tag
/usr/share/apps/quanta/dtep/php/mime_magic.tag
/usr/share/apps/quanta/dtep/php/ming.tag
/usr/share/apps/quanta/dtep/php/misc.tag
/usr/share/apps/quanta/dtep/php/mnogosearch.tag
/usr/share/apps/quanta/dtep/php/msession.tag
/usr/share/apps/quanta/dtep/php/msql.tag
/usr/share/apps/quanta/dtep/php/mssql.tag
/usr/share/apps/quanta/dtep/php/muscat.tag
/usr/share/apps/quanta/dtep/php/mysql.tag
/usr/share/apps/quanta/dtep/php/mysqli.tag
/usr/share/apps/quanta/dtep/php/ncurses.tag
/usr/share/apps/quanta/dtep/php/network.tag
/usr/share/apps/quanta/dtep/php/nis.tag
/usr/share/apps/quanta/dtep/php/notes.tag
/usr/share/apps/quanta/dtep/php/nsapi.tag
/usr/share/apps/quanta/dtep/php/outcontrol.tag
/usr/share/apps/quanta/dtep/php/oci8.tag
/usr/share/apps/quanta/dtep/php/odbc.tag
/usr/share/apps/quanta/dtep/php/openal.tag
/usr/share/apps/quanta/dtep/php/openssl.tag
/usr/share/apps/quanta/dtep/php/oracle.tag
/usr/share/apps/quanta/dtep/php/overload.tag
/usr/share/apps/quanta/dtep/php/ovrimos.tag
/usr/share/apps/quanta/dtep/php/parsekit.tag
/usr/share/apps/quanta/dtep/php/pcntl.tag
/usr/share/apps/quanta/dtep/php/pcre.tag
/usr/share/apps/quanta/dtep/php/pdf.tag
/usr/share/apps/quanta/dtep/php/pfpro.tag
/usr/share/apps/quanta/dtep/php/pgsql.tag
/usr/share/apps/quanta/dtep/php/posix.tag
/usr/share/apps/quanta/dtep/php/printer.tag
/usr/share/apps/quanta/dtep/php/pspell.tag
/usr/share/apps/quanta/dtep/php/qtdom.tag
/usr/share/apps/quanta/dtep/php/rar.tag
/usr/share/apps/quanta/dtep/php/readline.tag
/usr/share/apps/quanta/dtep/php/recode.tag
/usr/share/apps/quanta/dtep/php/regex.tag
/usr/share/apps/quanta/dtep/php/sem.tag
/usr/share/apps/quanta/dtep/php/sesam.tag
/usr/share/apps/quanta/dtep/php/session.tag
/usr/share/apps/quanta/dtep/php/shmop.tag
/usr/share/apps/quanta/dtep/php/simplexml.tag
/usr/share/apps/quanta/dtep/php/snmp.tag
/usr/share/apps/quanta/dtep/php/soap.tag
/usr/share/apps/quanta/dtep/php/sockets.tag
/usr/share/apps/quanta/dtep/php/spl.tag
/usr/share/apps/quanta/dtep/php/sqlite.tag
/usr/share/apps/quanta/dtep/php/stream.tag
/usr/share/apps/quanta/dtep/php/strings.tag
/usr/share/apps/quanta/dtep/php/swf.tag
/usr/share/apps/quanta/dtep/php/sybase.tag
/usr/share/apps/quanta/dtep/php/tcpwrap.tag
/usr/share/apps/quanta/dtep/php/tidy.tag
/usr/share/apps/quanta/dtep/php/tokenizer.tag
/usr/share/apps/quanta/dtep/php/uodbc.tag
/usr/share/apps/quanta/dtep/php/url.tag
/usr/share/apps/quanta/dtep/php/var.tag
/usr/share/apps/quanta/dtep/php/vpopmail.tag
/usr/share/apps/quanta/dtep/php/w32api.tag
/usr/share/apps/quanta/dtep/php/wddx.tag
/usr/share/apps/quanta/dtep/php/xattr.tag
/usr/share/apps/quanta/dtep/php/xdiff.tag
/usr/share/apps/quanta/dtep/php/xml.tag
/usr/share/apps/quanta/dtep/php/xmlrpc.tag
/usr/share/apps/quanta/dtep/php/xsl.tag
/usr/share/apps/quanta/dtep/php/xslt.tag
/usr/share/apps/quanta/dtep/php/yaz.tag
/usr/share/apps/quanta/dtep/php/zip.tag
/usr/share/apps/quanta/dtep/php/zlib.tag
/usr/share/apps/quanta/templates/pages/php
/usr/share/apps/quanta/templates/pages/php/demo.php
/usr/share/apps/quanta/templates/scripts/php
/usr/share/apps/quanta/templates/scripts/php/demo.php
/usr/share/apps/templates/text/scripts/demo.php
/usr/share/apps/kafkapart/pics/php.png
/usr/share/mimelnk/application/x-php.desktop
/usr/share/emoticons/phpBB
/usr/share/emoticons/phpBB/confused.png
/usr/share/emoticons/phpBB/biggrin.png
/usr/share/emoticons/phpBB/devil.png
/usr/share/emoticons/phpBB/cry.png
/usr/share/emoticons/phpBB/emoticons.xml
/usr/share/emoticons/phpBB/oh.png
/usr/share/emoticons/phpBB/smile.png
/usr/share/emoticons/phpBB/sunglasses.png
/usr/share/emoticons/phpBB/tongue.png
/usr/share/emoticons/phpBB/unhappy.png
/usr/share/emoticons/phpBB/wink.png
/usr/share/services/searchproviders/php.desktop
/usr/share/mime/application/x-php.xml
/usr/share/cups/model/tektronix/tkphpxi1.ppd.gz
/usr/share/gtksourceview-1.0/language-specs/php.lang
/usr/share/mc/syntax/php.syntax
/usr/share/screem/tagtrees/funcref_php.tagtree
/lib/modules/2.6.12-12mdk/kernel/drivers/pci/hotplug/acpiphp_ibm.ko.gz
/lib/modules/2.6.12-12mdk/kernel/drivers/pci/hotplug/acpiphp.ko.gz
/lib/modules/2.6.12-12mdk/kernel/drivers/pci/hotplug/fakephp.ko.gz
[nissanka@c83-250-111-43 ~]$
 
Old 04-17-2006, 06:15 AM   #2
zaichik
Member
 
Registered: May 2004
Location: Iowa USA
Distribution: CentOS
Posts: 419

Rep: Reputation: 30
Doesn't look like it is installed, and I would be awfully surprised to find it installed by default. It normally is installed to /usr/bin/php or /usr/local/bin/php. Try "which php" instead of "locate php".
 
Old 04-17-2006, 06:53 AM   #3
Gins
Senior Member
 
Registered: Jul 2004
Location: Germany
Distribution: open SUSE 11.0, Fedora 7 and Mandriva 2007
Posts: 1,662

Original Poster
Rep: Reputation: 47
Thanks zaichik for the comments.
You know this is a hell for me. My new computer is a 64 bit one; so when I download a program it should be a 64 bit version.

I went to the php's homepage and looked for a 64 bit version. They don't mention the words '64 bit version'. That is why I say that this is a hell for me.

I just downloaded the following program.
PHP 4.4.2 (tar.gz) [5,333Kb] - 13 Jan 2006
http://www.php.net/downloads.php

Is the above correct program?

............................................................................

I expanded it.
tar -xvvzf php-4.4.2.tar.gz [ It worked fine.]
It created the following folder:

php-4.4.2/
------------------------------------------------------------------------------------


[root@c83-250-111-43 php-4.4.2]# ls
acconfig.h ext/ Makefile.global README.EXT_SKEL server-tests.php*
acconfig.h.in EXTENSIONS makerpm README.PARAMETER_PARSING_API snapshot*
acinclude.m4 footer missing README.QNX stamp-h.in
aclocal.m4 generated_lists mkinstalldirs README.SELF-CONTAINED-EXTENSIONS stub.c
build/ genfiles* netware/ README.STREAMS tests/
buildconf* header NEWS README.SUBMITTING_PATCH TODO
CODING_STANDARDS INSTALL pear/ README.TESTING TODO_SEGFAULTS
config.guess install-sh php4.spec.in README.UNIX-BUILD-SYSTEM TSRM/
config.sub LICENSE php.gif README.Zeus win32/
configure* ltmain.sh php.ini-dist regex/ Zend/
configure.in main/ php.ini-recommended run-tests.php*
CREDITS makedist* README.CVS-RULES sapi/
cvsclean* Makefile.frag README.EXTENSIONS scripts/
[root@c83-250-111-43 php-4.4.2]#

How can I proceed to install the program?
 
Old 04-17-2006, 07:38 AM   #4
Gins
Senior Member
 
Registered: Jul 2004
Location: Germany
Distribution: open SUSE 11.0, Fedora 7 and Mandriva 2007
Posts: 1,662

Original Poster
Rep: Reputation: 47
I used the command '' ./configure "" and it worked.

------------------------------------------------------------------------------------------------
[root@c83-250-111-43 php-4.4.2]# ./configure
creating cache ./config.cache
checking for egrep... grep -E
checking for a sed that does not truncate output... /bin/sed
checking host system type... x86_64-unknown-linux-gnu
checking for gcc... gcc
checking whether the C compiler (gcc ) works... yes
checking whether the C compiler (gcc ) is a cross-compiler... no
checking whether we are using GNU C... yes
checking whether gcc accepts -g... yes
checking whether gcc and cc understand -c and -o together... yes
checking how to run the C preprocessor... gcc -E
checking for AIX... no
checking if compiler supports -R... no
checking if compiler supports -Wl,-rpath,... yes
checking for re2c... exit 0;
checking whether ln -s works... yes
checking for gawk... gawk
checking for bison... no
checking for byacc... no
configure: warning: You will need bison if you want to regenerate the PHP parsers.
checking for flex... lex
checking for yywrap in -ll... no
checking lex output file root... ./configure: line 2540: lex: command not found
configure: error: cannot find output from lex; giving up
[root@c83-250-111-43 php-4.4.2]#
-------------------------------------------------------------------------------

However, the commands '' make '' and '' make install '' didn't work

[root@c83-250-111-43 php-4.4.2]# make
make: *** No targets specified and no makefile found. Stop.
[root@c83-250-111-43 php-4.4.2]# make install
make: *** No rule to make target `install'. Stop.
[root@c83-250-111-43 php-4.4.2]#

---------------------------------------------------------------------------------------

What is the problem?
 
Old 04-17-2006, 07:42 AM   #5
demian
Member
 
Registered: Apr 2001
Location: Bremen, Germany
Distribution: Debian
Posts: 303

Rep: Reputation: 30
Quote:
Originally Posted by Gins
I used the command '' ./configure "" and it worked.

------------------------------------------------------------------------------------------------
[root@c83-250-111-43 php-4.4.2]# ./configure
[snip]
checking for flex... lex
checking for yywrap in -ll... no
checking lex output file root... ./configure: line 2540: lex: command not found
configure: error: cannot find output from lex; giving up
No, it didn't work.

Any reason you want to compile php yourself rather than installing the rpm from the mandriva repository via urpmi or whatever package manager you use?
 
Old 04-17-2006, 07:46 AM   #6
Gins
Senior Member
 
Registered: Jul 2004
Location: Germany
Distribution: open SUSE 11.0, Fedora 7 and Mandriva 2007
Posts: 1,662

Original Poster
Rep: Reputation: 47
Thanks for the comment demian. I am a novice to urpmi installations.

Please tell me how to do it. Do I have the proper program, in first place? My Mandriva is a 64 bit version
 
Old 04-17-2006, 07:56 AM   #7
demian
Member
 
Registered: Apr 2001
Location: Bremen, Germany
Distribution: Debian
Posts: 303

Rep: Reputation: 30
I've never used mandriva. However, I know how to use google:
http://mandriva.vmlinuz.ca/index.php/SysAdmin/Urpmi
 
Old 04-17-2006, 08:10 AM   #8
Gins
Senior Member
 
Registered: Jul 2004
Location: Germany
Distribution: open SUSE 11.0, Fedora 7 and Mandriva 2007
Posts: 1,662

Original Poster
Rep: Reputation: 47
Thanks demian.
I looked at the site you mentioned.

The following is the command.
urpmi --keep xxx.rpm [ Is this correct?]

However, there should be a '' .rpm '' file.

The file is a tarball. The site doesn't have a '' .rpm '' file.

What shall I do?
 
Old 04-17-2006, 08:33 AM   #9
demian
Member
 
Registered: Apr 2001
Location: Bremen, Germany
Distribution: Debian
Posts: 303

Rep: Reputation: 30
The idea is that you use a package manager (urpmi or a front-end to it) to download and install the software from some repository. That way you don't have to go and hunt for the package itself + it will install all software the package you actually want depends upon.

As I said, I don't use mandriva but I'd be very surprised if this machanism isn't already setup and working. There's a control center or something that will give you the option to install software. Use it.

And also try this google thing, it's really cool:
http://www.marcelgagne.com/urpmi_install.html
 
Old 04-17-2006, 11:06 AM   #10
Gins
Senior Member
 
Registered: Jul 2004
Location: Germany
Distribution: open SUSE 11.0, Fedora 7 and Mandriva 2007
Posts: 1,662

Original Poster
Rep: Reputation: 47
Yes, there is a repository on Mandriva. I just clicked and installed PHP. It asked me to insert the CD.

Now, how do I check whether PHP is on my system?
 
Old 04-17-2006, 11:49 AM   #11
Gins
Senior Member
 
Registered: Jul 2004
Location: Germany
Distribution: open SUSE 11.0, Fedora 7 and Mandriva 2007
Posts: 1,662

Original Poster
Rep: Reputation: 47
I installed even '' apache ''. So both are up and running. How do I check whether they are on my system.

I just want to check. I installed ' mysql' for Linux almost 48 hours ago. It works fine.

I need your help to check 'PHP' and 'Apache' .
 
Old 04-17-2006, 11:49 AM   #12
Gins
Senior Member
 
Registered: Jul 2004
Location: Germany
Distribution: open SUSE 11.0, Fedora 7 and Mandriva 2007
Posts: 1,662

Original Poster
Rep: Reputation: 47
I installed even '' apache ''. So both are up and running. How do I check whether they are on my system.

I just want to check. I installed ' mysql' for Linux almost 48 hours ago. It works fine.

I need your help to check 'PHP' and 'Apache' .
 
Old 04-17-2006, 11:53 AM   #13
Gins
Senior Member
 
Registered: Jul 2004
Location: Germany
Distribution: open SUSE 11.0, Fedora 7 and Mandriva 2007
Posts: 1,662

Original Poster
Rep: Reputation: 47
Sorry for the double posting. I don't know how to remove it. I in vain tried remove it.

Last edited by Gins; 04-17-2006 at 11:54 AM.
 
Old 04-17-2006, 03:30 PM   #14
Gins
Senior Member
 
Registered: Jul 2004
Location: Germany
Distribution: open SUSE 11.0, Fedora 7 and Mandriva 2007
Posts: 1,662

Original Poster
Rep: Reputation: 47
I urge someone to look at this and help me.

How can I start the PHP? I installed it successfully. Not only the PHP but also the Apache were installed.

Please tell me how to activate or rather start PHP.
 
Old 04-17-2006, 06:25 PM   #15
zaichik
Member
 
Registered: May 2004
Location: Iowa USA
Distribution: CentOS
Posts: 419

Rep: Reputation: 30
Not sure what you mean by "start" PHP. Normally you just call a script from the command line or from a web page and the PHP engine takes over.

What do you get from the command line you enter the command

php -i
 
  


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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Is CUPS not installed by default? christopher5 Debian 1 06-19-2005 02:18 PM
is nslookup installed by default? mandrakewanta Linux - Networking 2 05-15-2005 02:16 PM
PHP Installed by default? delamatrix Slackware - Installation 4 11-30-2004 07:45 PM
What is the default folder where Apache is installed? johann519 Linux - Networking 3 01-22-2004 05:08 PM
Is lftp installed by default on... Coolrunr Linux - Software 3 09-30-2003 05:02 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 12: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