Results 1 to 6 of 6

Thread: Problem in installing PHP under Debian

  1. #1
    Join Date
    Mar 2010
    Posts
    203

    Problem in installing PHP under Debian

    Hello,
    I want to update php on debian 3.0
    So I added the line:
    Code:
    deb http://packages.dotdeb.org. /
    deb-src http://sources.dotdeb.org. /
    in the sources.list file, andt hen I do the following
    Code:
    apt-get update
    apt-get upgrade php4
    But this is not updating the system and not it is installing a new copy of PHP. If you guys have any idea about it then please let me know. Thanks in advance.

  2. #2
    Join Date
    Nov 2009
    Posts
    333

    Re: Problem in installing PHP under Debian

    Hello,
    I guess you have a stable version Debain and it appears that the version for your php debian stable is one that is installed. That leaves the choice to switch to SID or make dselect. If it does not the see if the package manager is installed properly and if not the you can install it and then try to install other software. The most used package manager is the apt. Hope this solution will help you.

  3. #3
    Join Date
    Nov 2009
    Posts
    347

    Re:PHP under debain

    Hello,
    I think you should edit the file / etc / apt / apt.conf
    In my case, it gives (and I can update php4)
    Code:
    APT:EFAULT-Release "testing";
    APT:: Cache-Limit 100000;
    APT:: Get:urg;
    Hope the same of a similar kind of a out put even you will get when you will try to update the software. If you need more help on installing PHP on debian then you can visit the PHP's official site and find for the same.

  4. #4
    Join Date
    Nov 2009
    Posts
    583

    Re: Problem in installing PHP under Debian

    Hello,
    I have too, but I also apt.conf in / etc / apt /
    if it does not exist, you can create it (you have nothing to lose)
    This is a example command that I have run under my operating system
    Code:
    ls-lh / etc / apt /
    apt.conf
    apt.conf.d (> file 50debconf)
    deb
    sources.list
    If this is the result you are getting then I think you have to install the software again as if is not responding correctly.

  5. #5
    Join Date
    Nov 2009
    Posts
    446

    Re: Problem in installing PHP under Debian

    Hello,
    The test is a small basic script to put in / var / www / apache-default /
    Code:
        <? php
        $ dbhst = 'localhost';
        $ dbusr = 'root';
        $ dbps = 'password';
    
        $ conn = mysql_connect ($ dbhst, $ dbusr, $ dbps) or die ( 'Error connecting to mysql');
        $ dbnm = 'mysql';
        mysql_select_db ($ dbnm);
        ?>

  6. #6
    Join Date
    Nov 2009
    Posts
    359

    Re: Problem in installing PHP under Debian

    Hello,
    These are the steps to install PHP under Debian. Assume Apache2 has already been installed.
    The super-mysql package is installed
    Code:
    apt-get install mysql-server
    Php5 is installed in the same manner with
    Code:
    apt-get install php5
    I guess this is correct and it will help you.

Similar Threads

  1. Installing GUI on Debian 6.03 KDE from a CDR
    By Mae Huckett in forum Operating Systems
    Replies: 5
    Last Post: 25-06-2012, 10:53 AM
  2. Installing glibc under Debian
    By Trini Alvarado in forum Operating Systems
    Replies: 5
    Last Post: 12-03-2010, 11:41 AM
  3. Replies: 4
    Last Post: 18-01-2010, 10:54 PM
  4. Installing gnome-applet Debian
    By Brunoz in forum Windows Software
    Replies: 5
    Last Post: 17-12-2009, 11:33 AM
  5. Problem installing openldap under debian
    By NetworkeR in forum Networking & Security
    Replies: 5
    Last Post: 16-12-2009, 11:33 AM

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Page generated in 1,713,557,792.00829 seconds with 16 queries