Skip to content
This repository has been archived by the owner on Nov 9, 2017. It is now read-only.

PHP Project error phpmyadmin #377

Open
meghprkh opened this issue May 24, 2015 · 9 comments
Open

PHP Project error phpmyadmin #377

meghprkh opened this issue May 24, 2015 · 9 comments

Comments

@meghprkh
Copy link

I got the following log on Fedora 21 when creating new project using GUI

INFO: Checking for presence of php...
DEBUG: rpm -q --whatprovides "php"
DEBUG: php-5.6.8-1.fc21.x86_64
DEBUG: 0
INFO: Found php-5.6.8-1.fc21.x86_64
INFO: Checking for presence of httpd...
DEBUG: rpm -q --whatprovides "httpd"
DEBUG: httpd-2.4.10-15.fc21.x86_64
DEBUG: 0
INFO: Found httpd-2.4.10-15.fc21.x86_64
INFO: Checking for presence of phpMyAdmin...
DEBUG: rpm -q --whatprovides "phpMyAdmin"
DEBUG: phpMyAdmin-4.4.7-1.fc21.noarch
DEBUG: 0
INFO: Found phpMyAdmin-4.4.7-1.fc21.noarch
INFO: Checking for presence of php-mysql...
DEBUG: rpm -q --whatprovides "php-mysql"
DEBUG: php-mysqlnd-5.6.8-1.fc21.x86_64
DEBUG: 0
INFO: Found php-mysqlnd-5.6.8-1.fc21.x86_64
INFO: Checking for presence of mysql...
DEBUG: rpm -q --whatprovides "mysql"
DEBUG: mariadb-10.0.17-1.fc21.x86_64
DEBUG: 0
INFO: Found mariadb-10.0.17-1.fc21.x86_64
INFO: Checking for presence of mysql-server...
DEBUG: rpm -q --whatprovides "mysql-server"
DEBUG: mariadb-server-10.0.17-1.fc21.x86_64
DEBUG: 0
INFO: Found mariadb-server-10.0.17-1.fc21.x86_64
DEBUG: dirname "/home/meet/php/first"
DEBUG: /home/meet/php
DEBUG: 0
DEBUG: basename "/home/meet/php/first"
DEBUG: first
DEBUG: 0
DEBUG: echo /home/meet
DEBUG: /home/meet
DEBUG: 0
DEBUG: ls "/home/meet/public_html/first"
DEBUG: ls: cannot access /home/meet/public_html/first: No such file or directory
DEBUG: 2
INFO: Copying AMP source tree to /home/meet/public_html/first
INFO: pkexec /usr/libexec/da_auth << DA_AS_USER_ROOT
bash /usr/share/devassistant/files/crt/php/lamp/apache_config.sh first /home/meet
DA_AS_USER_ROOT
INFO: Checking SELinux...
INFO: SELinux is: Permissive
INFO: Activation httpd.service
INFO: Actiovation mysqld.service
INFO: Modify /usr/share/phpMyAdmin/config.inc.php
INFO: cp: cannot stat ‘/usr/share/doc/phpMyAdmin/config.sample.inc.php’: No such file or directory
INFO: Problem with setting PHP MyAdmin
DEBUG: 1
ERROR: Checking SELinux...
SELinux is: Permissive
Activation httpd.service
Actiovation mysqld.service
Modify /usr/share/phpMyAdmin/config.inc.php
cp: cannot stat ‘/usr/share/doc/phpMyAdmin/config.sample.inc.php’: No such file or directory
Problem with setting PHP MyAdmin
@meghprkh
Copy link
Author

Sorry this may sound as a request for help but I fixed it by changing apache_config.sh but now I am getting 403 forbidden. I know that I should use this issue as a forum but pls help. Thanks and apologies.

@tradej
Copy link
Member

tradej commented May 27, 2015

Hi, I'll look into this bug tomorrow.

@tradej
Copy link
Member

tradej commented Jun 8, 2015

Hi, sorry for the delay. I have tried to replicate your problem with the latest version of DA in Fedora 22, but I can't. Can you please specify which version of DevAssistant and the PHP DAP you have* and what values you put into the form when creating the project in the GUI?

*For DevAssistant, run this command as regular user:
rpm -q devassistant
For PHP DAP, run this and please paste results here:
da pkg list --installed | grep php

@tradej tradej added the needinfo label Jun 8, 2015
@meghprkh
Copy link
Author

meghprkh commented Jun 9, 2015

devassistant-0.11.1-2.fc22.noarch

and

php (0.11:/usr/share/devassistant/)

@tradej
Copy link
Member

tradej commented Jun 9, 2015

I am afraid I can't reproduce this bug. I have found a different one (requirement on php-mysqlnd is missing), but that one produces a different error.

I can only recommend to try one (or all) of these:

  1. Reinstall the PHP DAP: sudo dnf reinstall devassistant-dap-php
  2. Remove the .devassistant directory: mv ~/.devassistant{,.bak} (renames the directory to .devassistant.bak, you can rename it back if you want to use it again)
  3. Update all packages on the system: sudo dnf update

@meghprkh
Copy link
Author

meghprkh commented Jun 9, 2015

De assistant states that you have to navigate to localhost/project but localhost/~user/project is correct, isn't it?

I had this bug in f21 but in f22 I followed another tutorial, so I don't know for sure

@tradej
Copy link
Member

tradej commented Jun 9, 2015

You're right, the address is wrong, but you shouldn't be getting the error in DA because of it.

@meghprkh
Copy link
Author

meghprkh commented Jun 9, 2015

No I didn't get error (initially I got error but I fixed it by modifying phpmyadmin conf file)

-----Original Message-----
From: "Tomas Radej" notifications@github.com
Sent: ‎09-‎06-‎2015 20:57
To: "devassistant/devassistant" devassistant@noreply.github.com
Cc: "Megh Parikh" meghprkh@gmail.com
Subject: Re: [devassistant] PHP Project error phpmyadmin (#377)

You're right, the address is wrong, but you shouldn't be getting the error in DA because of it.

Reply to this email directly or view it on GitHub.

@tradej tradej added this to the 0.11.2 milestone Jun 22, 2015
@oopcell
Copy link

oopcell commented Oct 31, 2015

It seems I already have MariaDB installed, and it prevents installing MySQL.

Resolving RPM dependencies with DNF...
Copying AMP source tree to /home/oopcell/public_html/mybank_lamp
pkexec /usr/libexec/da_auth << DA_AS_USER_ROOT
bash /usr/share/devassistant/files/crt/php/lamp/apache_config.sh mybank_lamp /home/oopcell
DA_AS_USER_ROOT
Checking SELinux...
SELinux is: Enforcing
Enabling httpd.service
Created symlink from /etc/systemd/system/multi-user.target.wants/httpd.service to /usr/lib/systemd/system/httpd.service.
Enabling and starting mysqld.service
Created symlink from /etc/systemd/system/multi-user.target.wants/mysqld.service to /usr/lib/systemd/system/mysqld.service.
$cfg['Servers'][$i]['auth_type']     = 'cookie';    // Authentication method (config, http or cookie based)?
Enabling HTTP auth method in /etc/phpMyAdmin/config.inc.php
Creating configuration file for Apache httpd
Configuration file was successfuly created
Checking whether UserDir is enabled
UserDir disabled
# directory, remove the "UserDir disabled" line above, and uncomment
Enabling UserDir
#UserDir public_html
Setting UserDir to ~/public_html
Restarting httpd.service
Restarting httpd.service done
php /usr/share/devassistant/files/crt/php/lamp/create_database.php Ut01hr
PHP Warning:  PHP Startup: Unable to load dynamic library '/usr/lib64/php/modules/mysqlnd.so' - /usr/lib64/php/modules/mysqlnd.so: cannot open shared object file: No such file or directory in Unknown on line 0
PHP Warning:  PHP Startup: Unable to load dynamic library '/usr/lib64/php/modules/mysql.so' - /usr/lib64/php/modules/mysql.so: cannot open shared object file: No such file or directory in Unknown on line 0
PHP Warning:  PHP Startup: Unable to load dynamic library '/usr/lib64/php/modules/mysqli.so' - /usr/lib64/php/modules/mysqli.so: cannot open shared object file: No such file or directory in Unknown on line 0
PHP Warning:  PHP Startup: Unable to load dynamic library '/usr/lib64/php/modules/pdo_mysql.so' - /usr/lib64/php/modules/pdo_mysql.so: cannot open shared object file: No such file or directory in Unknown on line 0
PHP Warning:  PHP Startup: Unable to load dynamic library '/usr/lib64/php/modules/mysqlnd.so' - /usr/lib64/php/modules/mysqlnd.so: cannot open shared object file: No such file or directory in Unknown on line 0
PHP Warning:  PHP Startup: Unable to load dynamic library '/usr/lib64/php/modules/mysql.so' - /usr/lib64/php/modules/mysql.so: cannot open shared object file: No such file or directory in Unknown on line 0
PHP Warning:  PHP Startup: Unable to load dynamic library '/usr/lib64/php/modules/mysqli.so' - /usr/lib64/php/modules/mysqli.so: cannot open shared object file: No such file or directory in Unknown on line 0
PHP Warning:  PHP Startup: Unable to load dynamic library '/usr/lib64/php/modules/pdo_mysql.so' - /usr/lib64/php/modules/pdo_mysql.so: cannot open shared object file: No such file or directory in Unknown on line 0

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

3 participants