Results 1 to 7 of 7

Thread: php does not want to work?

  1. #1
    Join Date
    Oct 2012
    Beans
    52

    Question php does not want to work?

    php does not want to work?
    I call this page:
    http://localhost:8080/index.php
    and I get:
    It works from workdir directory and from php!

    This is the code:

    [CODE]
    Last edited by workaround; November 12th, 2012 at 02:10 AM. Reason: lost some info while posting!?

  2. #2
    Join Date
    Oct 2012
    Beans
    52

    Re: php does not want to work?

    I lost the info I wanted to post and when I re-edited it got lost again?
    Why does not want to post?

  3. #3
    Join Date
    Oct 2012
    Beans
    52

    Question Re: php does not want to work?

    I can run PHP from command line like "... hello ..." and etc but it will not display any "phpinfo" and it will not run in the web brouser?
    If I install the php module I get the
    Code:
    "/usr/local/apache2/modules/libphp5.so: undefined symbol: unixd_config"
    error!
    I tried to run:
    Code:
    sudo apt-get remove --purge apache2 php5 mysql-server-5.0 phpmyadmin
    sudo apt-get install apache2 php5-mysql libapache2-mod-php5 mysql-server
    sudo apt-get install phpmyadmin
    but that does not help to resolve the problem!
    What am I having than?

  4. #4
    Join Date
    Feb 2011
    Location
    Coquitlam, B.C. Canada
    Beans
    3,521
    Distro
    Ubuntu Development Release

    Re: php does not want to work?

    Quote Originally Posted by workaround View Post
    I lost the info I wanted to post and when I re-edited it got lost again?
    Why does not want to post?
    I think the fourms are done in vbulliten. Apparently, there is at least one key sequence that gets interpreted as "delete everything that follows". I found it the hard way, and found it seriously annoying.

    Reference thread.

  5. #5
    Join Date
    Oct 2012
    Beans
    182

    Re: php does not want to work?

    Quote Originally Posted by workaround View Post
    I can run PHP from command line like "... hello ..." and etc but it will not display any "phpinfo" and it will not run in the web brouser?
    If I install the php module I get the
    Code:
    "/usr/local/apache2/modules/libphp5.so: undefined symbol: unixd_config"
    error!
    I tried to run:
    Code:
    sudo apt-get remove --purge apache2 php5 mysql-server-5.0 phpmyadmin
    sudo apt-get install apache2 php5-mysql libapache2-mod-php5 mysql-server
    sudo apt-get install phpmyadmin
    but that does not help to resolve the problem!
    What am I having than?
    [NOTE:] Before going through the method described below, try accessing your localhost without mentioning the port i.e. 8080. I guess it shall work.

    Don't put everything in one install command. Go step by step.
    First become su in terminal so that you don't have to enter sudo with each command.

    MySQL installation will ask to set root password so chose something to use as MySQL root user's password.
    After apache2 install you shall be able to browse localhost without any port because it will be configured to listen on default port 80
    Code:
    sudo su
    apt-get install mysql-server mysql-client
    apt-get install apache2
    apt-get install php5 libapache2-mod-php5
    service apache2 restart
    apt-get install php5-mysql php5-curl php5-gd php5-imap php5-mcrypt php5-ming php5-tidy php5-xmlrpc php5-xsl
    service apache2 restart
    exit
    Last edited by pkadeel; November 12th, 2012 at 08:27 AM. Reason: forgot to mention the exit command.

  6. #6
    Join Date
    Oct 2012
    Beans
    52

    Re: php does not want to work?

    It tells me I need this file: libphp5.so!?
    Code:
    apache2: Syntax error on line 239 of /etc/apache2/apache2.conf: Syntax error on line 1 of /etc/apache2/mods-enabled/php5.load: Cannot load /usr/lib/apache2/modules/libphp5.so into server: /usr/lib/apache2/modules/libphp5.so: cannot open shared object file: No such file or directory
    what should create the file?

  7. #7
    Join Date
    Oct 2012
    Beans
    52

    Re: php does not want to work?

    OK, I removed the PHP5 and libapache2-mod-php5 and reinstalled it again and "Well!" it is working! I was getting really tired of it, spending so much time on it and missing just bits that can make it so complicated.
    Thank YOU VERY MUCH!

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
  •