dongxun4110 2018-11-22 13:06 采纳率: 0%
浏览 304
已采纳

找不到PHP5请求的URL

I'm trying to working on a already created website project. This website is currently Running on Ubuntu with Apache2 and PHP5.

I've installed the project on APACHE2. But when I'm going to the website I'm having this message :

The requested URL /connexion/ was not found on this server.

Apache/2.4.34 (Ubuntu) Server at localhost Port 80

I don't know what to do, bcause when on the terminal I'm writing :

sudo tail -100 /var/log/apache2/error.log

I'm Having a PDO error :

    [Thu Nov 22 09:17:30.492444 2018] [mpm_prefork:notice] [pid 2033] AH00163: Apache/2.4.34 (Ubuntu) configured -- resuming normal operations

[Thu Nov 22 09:17:30.492509 2018] [core:notice] [pid 2033] AH00094: Command line: '/usr/sbin/apache2'

[Thu Nov 22 09:48:49.461147 2018] [php7:warn] [pid 2070] [client ::1:51398] PHP Warning:  Declaration of Client::create(PDO $bdd, $nom, $prenom, $email, $password, $telephone, $fax, $is_active, $site_id) should be compatible with Utilisateur::create(PDO $bdd, $nom, $prenom, $email, $password, $telephone, $fax, $is_active) in /var/www/html/{websitename}/model/Classes/Client.php on line 0, referer: http://localhost/

[Thu Nov 22 09:48:49.461201 2018] [php7:warn] [pid 2070] [client ::1:51398] PHP Warning:  Declaration of Client::update(PDO $bdd, $utilisateur_id, $nom, $prenom, $email, $password, $telephone, $fax, $is_active, $client_id, $site_id) should be compatible with Utilisateur::update(PDO $bdd, $id, $nom, $prenom, $email, $password, $telephone, $fax, $is_active) in /var/www/html/{websitename}/model/Classes/Client.php on line 0, referer: http://localhost/

[Thu Nov 22 09:48:49.461218 2018] [php7:warn] [pid 2070] [client ::1:51398] PHP Warning:  Declaration of Client::updateWithoutPassword(PDO $bdd, $utilisateur_id, $nom, $prenom, $email, $telephone, $fax, $is_active, $client_id, $site_id) should be compatible with Utilisateur::updateWithoutPassword(PDO $bdd, $id, $nom, $prenom, $email, $telephone, $fax, $is_active) in /var/www/html/{websitedown}/model/Classes/Client.php on line 0, referer: http://localhost/

[Thu Nov 22 09:48:49.463732 2018] [php7:warn] [pid 2070] [client ::1:51398] PHP Warning:  Declaration of Employee::create(PDO $bdd, $nom, $prenom, $email, $password, $telephone, $fax, $is_active, $role_id, $agence_id) should be compatible with Utilisateur::create(PDO $bdd, $nom, $prenom, $email, $password, $telephone, $fax, $is_active) in /var/www/html/{websitedown}/model/Classes/Employee.php on line 0, referer: http://localhost/

[Thu Nov 22 09:48:49.463792 2018] [php7:warn] [pid 2070] [client ::1:51398] PHP Warning:  Declaration of Employee::update(PDO $bdd, $utilisateur_id, $employe_id, $nom, $prenom, $email, $password, $telephone, $fax, $is_active, $role_id, $agence_id) should be compatible with Utilisateur::update(PDO $bdd, $id, $nom, $prenom, $email, $password, $telephone, $fax, $is_active) in /var/www/html/{websitedown}/model/Classes/Employee.php on line 0, referer: http://localhost/

[Thu Nov 22 09:48:49.463817 2018] [php7:warn] [pid 2070] [client ::1:51398] PHP Warning:  Declaration of Employee::updateWithoutPassword(PDO $bdd, $utilisateur_id, $employe_id, $nom, $prenom, $email, $telephone, $fax, $is_active, $role_id, $agence_id) should be compatible with Utilisateur::updateWithoutPassword(PDO $bdd, $id, $nom, $prenom, $email, $telephone, $fax, $is_active) in /var/www/html/{websitedown}/model/Classes/Employee.php on line 0, referer: http://localhost/

SO I've enabled PHP PDO in PHP ini, trying to install PHP. THe website is still not working... What can I do ?

(I've met the problem on Windows, changing PHP making the website working but not Ubuntu)

  • 写回答

2条回答 默认 最新

  • dtja73027 2018-11-26 09:52
    关注

    Well, so After severals trial, I fix it... Simply by doing this :

    systemctl status mysql

    My website can now run normally.

    THank you all for you

    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论
查看更多回答(1条)

报告相同问题?

悬赏问题

  • ¥15 Python中的request,如何使用ssr节点,通过代理requests网页。本人在泰国,需要用大陆ip才能玩网页游戏,合法合规。
  • ¥100 为什么这个恒流源电路不能恒流?
  • ¥15 有偿求跨组件数据流路径图
  • ¥15 写一个方法checkPerson,入参实体类Person,出参布尔值
  • ¥15 我想咨询一下路面纹理三维点云数据处理的一些问题,上传的坐标文件里是怎么对无序点进行编号的,以及xy坐标在处理的时候是进行整体模型分片处理的吗
  • ¥15 CSAPPattacklab
  • ¥15 一直显示正在等待HID—ISP
  • ¥15 Python turtle 画图
  • ¥15 stm32开发clion时遇到的编译问题
  • ¥15 lna设计 源简并电感型共源放大器