doumouyi4039 2015-11-27 16:48
浏览 40
已采纳

如何在OpenShift上配置CodeIgniter连接?

I just finished my php application so I decided to try it on my online account OpenShift. I created a new application and I imported PHP 5.3, MySQL and phpMyAdmin. I then uploaded via filezilla my application in the app-root/data/Calendar, I think it's the right folder where to upload the projects. Within the Calendar folder is my php application.
I then inserted these credentials in the configuration.php file:

<?php
class SystemConfiguration 
{
    // General Settings
    public static $base_url    = 'first-johncloun.rhcloud.com/Calendar/';

    // Database Settings
    public static $db_host     = 'mysql://$OPENSHIFT_MYSQL_DB_HOST:$OPENSHIFT_MYSQL_DB_PORT/';
    public static $db_name     = 'first';
    public static $db_username = 'admisawhiN';
    public static $db_password = '*****';

}

Are the credentials for my database. So I put this url first-johncloun.rhcloud.com/Calendar/ to connect to my application but is displayed:

404 Page not found

What did I do wrong? Someone could help me? I'm new on OpenShift.

  • 写回答

1条回答 默认 最新

  • donglv6747 2015-11-30 16:55
    关注

    First of all I'd like to point out that you should really be using git to deploy your application, see: https://developers.openshift.com/en/managing-modifying-applications.html

    However, if you really want to stick to ftp upload, according to the openshift documentation you should upload your app to:

    /app-root/repo/php
    
    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论

报告相同问题?

悬赏问题

  • ¥15 #MATLAB仿真#车辆换道路径规划
  • ¥15 java 操作 elasticsearch 8.1 实现 索引的重建
  • ¥15 数据可视化Python
  • ¥15 要给毕业设计添加扫码登录的功能!!有偿
  • ¥15 kafka 分区副本增加会导致消息丢失或者不可用吗?
  • ¥15 微信公众号自制会员卡没有收款渠道啊
  • ¥100 Jenkins自动化部署—悬赏100元
  • ¥15 关于#python#的问题:求帮写python代码
  • ¥20 MATLAB画图图形出现上下震荡的线条
  • ¥15 关于#windows#的问题:怎么用WIN 11系统的电脑 克隆WIN NT3.51-4.0系统的硬盘