View previous topic :: View next topic |
Author |
Message |
cnesb860 -
Joined: 16 Feb 2006 Posts: 6
|
Posted: Thu Feb 16, 2006 3:54 pm Post subject: Linux install php |
|
|
Ifollowed the link on the "Adding php support" webpage to the php website and downloaded the tar.gz for php5. Just like I was supposed to.
I untar'ed and ungz'ed the file and moved it to the folder on my computer where I keep all my programs (/opt/).
My question is... Do I need to do anything else to complete the installation of php5, before I continue adding php support to my web server? The reason I ask, is because when I go to the step that says ...
" In the Interpreter field, press Browse..., go to the directory where you have installed PHP and click on php.exe if you have installed PHP 4 or php-cgi.exe if you have installed PHP 5."
... I cannot find any files called "php-cgi.exe". where is it and how do I get it, now that I've installed php5?
thanks in advance,
cnesb860
[/i] |
|
Back to top |
|
 |
Anonymoose -
Joined: 09 Sep 2003 Posts: 2192
|
Posted: Thu Feb 16, 2006 4:17 pm Post subject: |
|
|
You're reading the Windows instructions. There will be no .exe file.
Follow the Linux instructions instead :
http://www.aprelium.com/abyssws/php.html#linux _________________
"Invent an idiot proof webserver and they'll invent a better idiot..." |
|
Back to top |
|
 |
cnesb860 -
Joined: 16 Feb 2006 Posts: 6
|
Posted: Thu Feb 16, 2006 4:33 pm Post subject: |
|
|
sorry... pasted wrong text into my question. I had been looking at the linux instructions, and I looked abck through them after your post, just incase.
I still don't see the right file. is it in a subdirectory?
p.s. I also went to the php directiroy and typed ./conifgure into the command prompt, but I'm not sure that worked. |
|
Back to top |
|
 |
aprelium -
Joined: 22 Mar 2002 Posts: 6800
|
Posted: Fri Feb 17, 2006 11:02 am Post subject: Re: Linux install php |
|
|
cnesb860 wrote: | Ifollowed the link on the "Adding php support" webpage to the php website and downloaded the tar.gz for php5. Just like I was supposed to.
I untar'ed and ungz'ed the file and moved it to the folder on my computer where I keep all my programs (/opt/). |
You have downloaded the source code of PHP. So you'll have to compile it and build the php executable before declaring it in Abyss Web Server.
To do so:
* Open a terminal window
* go to the directory where you have untar-ungzipped the source code (using the cd command).
* execute Code: | ./configure --prefix=/final/php/path --with-gd --enable-fastcgi --with-mysql |
Replace of course /final/php/path with the path where the PHP interpreter and its associated files should be installed.
You can add more options to configure. For a complete list of available options, execute
* If configure works fine and does not report errors, execute
Note that the execution of make may take a while (a few minutes on a fast computer, up to 1 hour if you have a slow one).
* If there is no error, you can now proceed with the installation of the just built PHP by executing:
* Execute
Code: | cp php.ini-dist /final/php/path/lib/php.ini |
Of course, /final/php/path should be replaced with the value of the prefix option you have passed to configure.
* Now your PHP interpreter is ready and its executable is
/final/php/path/bin/php . All you have to do is to declare it in Abyss Web Server (as explained in http://www.aprelium.com/abyssws/php.html#linux ).
* The directory where you have untar-ungzipped the PHP source code is no more required, you can delete it. _________________ Support Team
Aprelium - http://www.aprelium.com |
|
Back to top |
|
 |
cnesb860 -
Joined: 16 Feb 2006 Posts: 6
|
Posted: Fri Feb 17, 2006 11:02 pm Post subject: |
|
|
Quote: |
* If configure works fine and does not report errors, execute
|
Well, I tried the "configure" code that you talked about, but I did get the following output...
Code: |
root@slax:/opt/php-5.1.2# ./configure --prefix=/opt/php5 --with-gd --enable-fastcgi --with-mysql
loading cache ./config.cache
checking for Cygwin environment... no
checking for mingw32 environment... no
checking for egrep... grep -E
checking for a sed that does not truncate output... /usr/bin/sed
checking host system type... i586-pc-linux-gnuoldld
checking target system type... i586-pc-linux-gnuoldld
checking for gcc... no
checking for cc... no
configure: error: no acceptable cc found in $PATH
root@slax:/opt/php-5.1.2# make
-bash: make: command not found
root@slax:/opt/php-5.1.2#
|
not sure what I'm spozeta do about this problem. Sorry about my ignorance, I'm new to Linux, and I'm trying to learn as much as possible as well as get my problems solved. Thanks for your patience. :)
cnesb860 |
|
Back to top |
|
 |
cmxflash -
Joined: 11 Dec 2004 Posts: 872
|
Posted: Sat Feb 18, 2006 2:08 pm Post subject: |
|
|
What distro are you running? Most distros comes with PHP precompiled today. |
|
Back to top |
|
 |
aprelium -
Joined: 22 Mar 2002 Posts: 6800
|
Posted: Sat Feb 18, 2006 2:19 pm Post subject: |
|
|
cnesb860 wrote: |
checking for gcc... no
checking for cc... no
configure: error: no acceptable cc found in $PATH
root@slax:/opt/php-5.1.2# make
-bash: make: command not found
root@slax:/opt/php-5.1.2#
[/code]
not sure what I'm spozeta do about this problem. Sorry about my ignorance, I'm new to Linux, and I'm trying to learn as much as possible as well as get my problems solved. Thanks for your patience. :) |
The errors reported by configure are simply related to the fact that you do not have the development packages installed on your system. These packages contain the software required to compile and build applications. So all depends on your distribution: you should run its package manager tool and install these development packages (or the packages which reference/contain these tools):
make
gcc
flex
bison
libgd (GD development libraries)
libmysql (MySQL development libraries)
Once done, execute configure again and proceed with the compilation.
As CmxFlash pointed it, most Linux distribution contain a precompiled PHP package, so you may find it easier to install this package directly (instead of rebuilding it from scratch).
If you find problem locating your distribution pacakge manager, please let us know which one your are using (Fedora, Suse, Slackware, Debian, Ubuntu, ...?). Execute also:
and copy here the result. _________________ Support Team
Aprelium - http://www.aprelium.com |
|
Back to top |
|
 |
cnesb860 -
Joined: 16 Feb 2006 Posts: 6
|
Posted: Mon Feb 20, 2006 5:05 am Post subject: |
|
|
hey,
well, I've been really busy lately, and I am still. But off the top of my head I can tell you that I am using SLAX KillBill. I'm gonna try and install some modules that contain those files you say I need (since I'm sure i'll need them in future problems anyway).
BTW, my computer is an old junker with 128 RAM, 400mhx, and 4GB. It is network ready...
I'll get back to you all soon on my progress...
cnesb860 |
|
Back to top |
|
 |
aprelium -
Joined: 22 Mar 2002 Posts: 6800
|
|
Back to top |
|
 |
cnesb860 -
Joined: 16 Feb 2006 Posts: 6
|
Posted: Mon Feb 20, 2006 8:37 pm Post subject: |
|
|
Quote: | cnesb860,
On Slax, packages are called modules: http://slax.linux-live.org/modules.php . You may want to add the develop modules to solve the problem and to be able to compile programs. |
I've been working on that during my "free time" already this weekend. I'll get back to you and let you know how things work out. thankyou again for your patience. I appreciate your help very much so.
cnesb860 |
|
Back to top |
|
 |
cnesb860 -
Joined: 16 Feb 2006 Posts: 6
|
Posted: Mon Feb 20, 2006 11:05 pm Post subject: |
|
|
Quote: | * If configure works fine and does not report errors, execute
|
Well, I did get an error. I tried continuing through your instructions anyway, but could not find a "make" file produced by the "./configure..." command. I'm guessing this is b/c no "make" file was made by configure.
here's the command I typed, and the error I got when I ran the configure command just as you typed it.
Code: | ./configure --prefix=/opt/php5 --with-gd --enable-fastcgi --with-mysql |
Code: | configure: error: PNG support requires ZLIB. Use --with-zlib-dir=<DIR> |
I ran the command again with ...
Code: | --with-zlib-dir=/opt/php5 |
... tacked on the end. This is the error message I got:
Code: | ...
checking for mSQL support... no
checking for MSSQL support via FreeTDS... no
checking for MySQL support... yes
checking for specified location of the MySQL UNIX socket... no
checking for MySQL UNIX socket location... no
configure: error: Cannot find MySQL header files under yes.
Note that the MySQL client library is not bundled anymore!
|
I'm sorry for being such a frustrattion to you, if I am. I'm just as frustrated as all of you. Thankyou for your patience and help. |
|
Back to top |
|
 |
aprelium -
Joined: 22 Mar 2002 Posts: 6800
|
Posted: Tue Feb 21, 2006 11:13 am Post subject: |
|
|
cnesb860 wrote: |
I ran the command again with ...
Code: | --with-zlib-dir=/opt/php5 |
... tacked on the end. This is the error message I got:
Code: | ...
checking for mSQL support... no
checking for MSSQL support via FreeTDS... no
checking for MySQL support... yes
checking for specified location of the MySQL UNIX socket... no
checking for MySQL UNIX socket location... no
configure: error: Cannot find MySQL header files under yes.
Note that the MySQL client library is not bundled anymore!
|
As we said in a previous post, you need to have "libmysql package (MySQL development libraries)" installed. There seems to be no such a package in Slax modules list. So you'll have to install MySQL on your own from http://dev.mysql.com/get/Downloads/MySQL-5.0/mysql-standard-5.0.18-linux-i686.tar.gz/from/pick (upack the file and read the installation instructions in it). If you do not need MySQL support then you can avoid all this hassle and remove --with-mysql from your ./configure command line.
I'm sorry for being such a frustrattion to you, if I am. I'm just as frustrated as all of you. Thankyou for your patience and help. |
_________________ Support Team
Aprelium - http://www.aprelium.com |
|
Back to top |
|
 |
Alcatraz001 -
Joined: 28 Apr 2006 Posts: 2
|
Posted: Fri Apr 28, 2006 8:20 am Post subject: |
|
|
I can't find the file after doing the make && make install. Where did it go? |
|
Back to top |
|
 |
aprelium -
Joined: 22 Mar 2002 Posts: 6800
|
Posted: Fri Apr 28, 2006 11:01 am Post subject: |
|
|
Alcatraz001 wrote: | I can't find the file after doing the make && make install. Where did it go? |
By default it is in /usr/bin/php or /usr/local/bin/php (unless you've added a --prefix parameter to configure).
You can also running the following command:
It should locate the php executable for you. _________________ Support Team
Aprelium - http://www.aprelium.com |
|
Back to top |
|
 |
Alcatraz001 -
Joined: 28 Apr 2006 Posts: 2
|
Posted: Fri Apr 28, 2006 4:28 pm Post subject: |
|
|
I GOT IT WORKING! I just installed CentOS and is everything works like a charm and a golden necklace! The adob files were just corrupt after transfer!
Thanks to :
www.lamphowto.com (For the compiling of php)
www.aprelium.com (For the great webserver and special support)
I'm running
CentOS linux
PHP 4.4.2
perl 5.8.8
mySQL 4.0.26
And to mess around with at times.
apache 1.3.34
proFTPd
Webmin
THANKS SO MUCH GUESS! BTW You should pin/sticky this as there is alot help in here for me. |
|
Back to top |
|
 |
aprelium -
Joined: 22 Mar 2002 Posts: 6800
|
Posted: Sat Apr 29, 2006 1:53 pm Post subject: |
|
|
Alcatraz001,
Congratulations and thanks for the update. We'll add a "Compile PHP" tutorial very soon. _________________ Support Team
Aprelium - http://www.aprelium.com |
|
Back to top |
|
 |
|