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]
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!?
I lost the info I wanted to post and when I re-edited it got lost again?
Why does not want to 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
error!Code:"/usr/local/apache2/modules/libphp5.so: undefined symbol: unixd_config"
I tried to run:
but that does not help to resolve the problem!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
What am I having than?
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.
[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.
It tells me I need this file: libphp5.so!?
what should create the file?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
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