LAMP Installation Problem in Ubuntu Lucid 10.04
2 Attachment(s)
Hello folks,
I am trying to configure LAMP environment on ubuntu10.04 Lucid system.I am writing the output & attaching files of output of different issues. PHP is not running,I cant figure out why its not working. To add this issue I would like to inform you that nanoweb server is working{I can see the page in web browser"It Works"}.Also MySQL is working fine. To summarize Linux-->Apache/Nanoweb but no bridge between MySQL--X--> PHP. Please guide me for right direction,how to approach this problem as i am unable to crack this common problem. output: ---------------------------------------------------------------------- iit@iit-desktop:~$ php PHP Deprecated: Comments starting with '#' are deprecated in /etc/php5/cli/conf.d/imagick.ini on line 1 in Unknown on line 0 PHP Deprecated: Comments starting with '#' are deprecated in /etc/php5/cli/conf.d/imap.ini on line 1 in Unknown on line 0 PHP Deprecated: Comments starting with '#' are deprecated in /etc/php5/cli/conf.d/mcrypt.ini on line 1 in Unknown on line 0 PHP Warning: PHP Startup: Unable to load dynamic library '/usr/lib/php5/20090626+lfs/curl.so' - /usr/lib/php5/20090626+lfs/curl.so: cannot open shared object file: No such file or directory in Unknown on line 0 --------------------------------------------------------------- Step by step solution will be of great help. -- Regards Arun |
Did you install php5-mysql?
sudo apt-get install php5-mysql How did you go about installing nanoweb and mysql? |
@hanzerik : Nanoweb & MySQL
Thanks Hanzerik for your reply.
Well I have already installed php5-mysql.But just for your Information,Here is the output of "sudo apt-get install php5-mysql" output: ___________________________________________________________________ iit@iit-desktop:~$ sudo apt-get install php5-mysql Reading package lists... Done Building dependency tree Reading state information... Done php5-mysql is already the newest version. php5-mysql set to manually installed. 0 upgraded, 0 newly installed, 0 to remove and 60 not upgraded. 1 not fully installed or removed. After this operation, 0B of additional disk space will be used. Setting up phppgadmin (4.2.2-1ubuntu1) ... apache2: Syntax error on line 204 of /etc/apache2/apache2.conf: Could not open configuration file /etc/apache2/mods-enabled/php4.load: No such file or directory ...fail! invoke-rc.d: initscript apache2, action "reload" failed. dpkg: error processing phppgadmin (--configure): subprocess installed post-installation script returned error exit status 1 Errors were encountered while processing: phppgadmin E: Sub-process /usr/bin/dpkg returned an error code (1) iit@iit-desktop:~$ _____________________________________________________________________ all lamp Environment is installed but not configured properly,so please guide me what changes have to made in some files like php.ini,apache.conf ....as these files are having some problem. when I writes "apache2" on terminal It have following output: output: ___________________________________________________________________ iit@iit-desktop:~$ apache2 apache2: Syntax error on line 204 of /etc/apache2/apache2.conf: Could not open configuration file /etc/apache2/mods-enabled/php4.load: No such file or directory iit@iit-desktop:~$ ___________________________________________________________________ Please Guide me.I will be very thankful to you. -- Regards Arun |
Code:
iit@iit-desktop:~$ls /etc/apache2/mods-enabled Code:
iit@iit-desktop:~$sudo a2enmod php5 Edit To Add: Have a look at this thread: http://ubuntuforums.org/showthread.php?t=354545 You may have the worng php#-pgsql loaded. Are you using phppgadmin for something? if not you might want to remove it. Code:
iit@iit-desktop:~$sudo a2dismod php4-pgsql |
Since you are using Mysql, you probably don't need phppgadmin because that is for PostgreSQL databases.
phpmyadmin is the app for working with mysql databases. |
@hanzerik : Lamp problem
Hello Hanzerik,
I applied the settings as you wrote in your previous post.I am providing you the output of "ls /etc/apache2/mods-enabled" Output: ______________________________________________________________ Code:
iit@iit-desktop:~$ openbabel In my view,In above output things in bold are conflicting each other and hence apache is not able to start/run as it is not able to decide which PHP version it should run. output of "ls /etc/apache2/mods-available" output: _____________________________________________________________________ Code:
-desktop:~$ apache2 ------------------------------------------------------- Code: iit@iit-desktop:~$sudo a2enmod php5 iit@iit-desktop:~$sudo /etc/init.d/apache2 reload This will enable the php5 module and restart the Apache2 server. But it looks like something is looking for the php4 module, did you edit any files by hand to look for php4? -------------------------------------------------------- No I did not edit ANY files by hand in any directory, neither for php4 or php5. =============================================================== Just to add for your Information,as u suggested I removed "phppgadmin"{sudo apt-get remove phppgadmin} ---------------------------------------------------------------- sudo a2dismod php4-pgsql [sudo] password for iit: ERROR: Module php4-pgsql does not exist! ================================================================ apache2 still not starting:(,it says: Code:
iit@iit-desktop:~$ sudo /etc/init.d/apache2 reload I am still fighting this situation & have no idea why It has been not solved yet. Very thankful to you for your kind help. looking forward for your reply. -- Regards Arun |
Can you do a
Code:
ls -al /etc/apache2/mods-available/php* Code:
sudo a2dismod php4 Don't forget to restart apache2: Code:
sudo /etc/init.d/apache2 reload |
@hanzerik : LAMP problem
Hello Hanzerik,
Output:ls -al /etc/apache2/mods-available/php* ___________________________________________________________ Code:
sudo su |
@hanzerik : LAMP problem
Output:"sudo a2dismod php4"
________________________________________________________________ Code:
root@iit-desktop:/home/iit# sudo a2dismod php4 :confused:Output:"sudo /etc/init.d/apache2 reload" _________________________________________________________________ Code:
root@iit-desktop:/home/iit# sudo /etc/init.d/apache2 reload Now apache2 is not starting due to another set of problem,related to nanourl file,I am showing output below after i restarted apache2. ______________________________________________________________ Code:
root@iit-desktop:/home/iit# sudo a2dismod php4 Code:
root@iit-desktop:/home/iit# sudo /etc/init.d/apache2 restart Looking forward for your reply.Thanks a lot for suggesting me right direction,but still I am juggling with problem:banghead: -- Best Regards Arun Singh |
@hanzerik : LAMP problem
I also tried this on terminal,output of php5:
output: php5 Code:
$ php5 @Hanzerik,Thanks a lot for helping out,Looking forward for your reply. -- Thanks & Regards Arun |
All times are GMT -5. The time now is 11:24 AM. |