All Questions
314
questions
14
votes
1
answer
6k
views
Can't send email through openshift
I have website hosted at OpenShift. I tried to send mail using mail function of php. It just returned true, but no mail is received to whom I had sent.
Please tell me procedure for sending the mail.
...
13
votes
4
answers
20k
views
how to connect to the database in openshift application
I did as following
MySQL 5.1 database added. Please make note of these credentials:
Root User: xxxxxxx
Root Password: xxxxxxx
Database Name: php
Connection URL: mysql://$...
12
votes
1
answer
32k
views
Symfony2: You have requested a non-existent parameter
I have checked similar questions on SO, but they did not solve my issue.
I am deploying a Symfony2 application on Openshift. It works well on my Windows 10 laptop, but I am getting the following ...
12
votes
3
answers
29k
views
Environment variable in PHP-docker container
I want to show an env var in my docker container.
The PHP script looks like this:
<html>
<head>
<title>Show Use of environment variables</title>
</head>
<body>...
12
votes
2
answers
4k
views
Can't connect through WiFi, but possible through Mobile Data
I've a php file named test.php stored in my Openshift server (http://phpgear-shifz.rhcloud.com/v1/test.php) with the below code.
<?php
echo "Hello";
Task
I am trying to download the text from an ...
7
votes
1
answer
6k
views
sendmail on OpenShift / PHP / CodeIgniter
I'm looking for OpenShift configuration information for sendmail functionality.
It's not totally clear to me what the preferred way of doing it is.
Some articles say that one must have the pear/...
7
votes
1
answer
2k
views
URLs Not Allowed: Facebook PHP login
I keep getting the following error
Given URL is not allowed by the Application configuration.: One or
more of the given URLs is not allowed by the App's settings. It must
match the Website URL ...
6
votes
2
answers
9k
views
How to open DB connection in Openshift? [closed]
This is my dbcon file in PHP.
Basically, I need to connect my PHP application with openshift MySQL DB. Here's what I did.
<?php
// Database Connection Setting
$dbhost = "127.0.0.1"; // ...
6
votes
1
answer
2k
views
Openshift redirects wp-admin to https
In general option in wordpress, I have changed the wordpress directory to be on http://mywebsite.com but wordpress dashboard is still in htpps causing mixed content warning and images in dashboard are ...
6
votes
2
answers
4k
views
Openshift, 503 Service Unavailable. No server is available to handle this request
I have a scalable PHP 5.4 cartridge on Openshift, with a bronze account.
It's a wordpress blog and I've used it until 2 weeks ago.
Today, I returned to visit it and it says:
503 Service ...
5
votes
1
answer
724
views
Redirect loop with CloudFlare and OpenShift and a WordPress application
I created my WordPress application on OpenShift, and it responds to the URL blog-porta8080.rhcloud.com.
I created 2 aliases on OpenShift
I bought my domain (porta8080.com.br) from a brazilian ...
5
votes
1
answer
1k
views
How to change default GMT timezone of php 5.4 application on OpenShift?
I recently subscribed to OpenShift and deployed a new php 5.4 application, everything works fine, but I can't seem to change the default GMT php timezone.
Here's where this GMT timezone is defined:
&...
5
votes
0
answers
1k
views
The pod has been stuck in the pending state for more than five minutes
Hello I new to openshift online . Tried to deploy mysql pod and got this Error n command line
error: update acceptor rejected mysql-8: pods for deployment "mysql-8" took longer than 600 seconds to ...
4
votes
5
answers
4k
views
How to access Openshift mysql via locally installed wamp phpMyAdmin?
i am using openshift free tier (3 gears). My scalable app uses PHP and MySQL. But unavailability of phpMyAdmin credentials for 3 gears scalable app it's difficult for me to access Mysql table entries. ...
4
votes
3
answers
4k
views
PHP on OpenShift: How to enable errors and warnings?
I have moved my app to OpenShift and now, for convenience of getting it actually work, I'd like to enable in-page errors and warnings. Currently, I see a blank page.
How can I enable errors?
In PHP, ...
4
votes
2
answers
3k
views
How to run (or should I run) Composer on Openshift?
I am trying to create ZendFramework's Skeleton application on Openshift. I have created a PHP5 application using these instructions and cloned it locally. I cloned the ZendFramework skeleton ...
4
votes
2
answers
1k
views
How can I access socket through Openshift
I register in the Openshift.com and create a catridge. But when I need to deploy Mosquitto, a MQTT Server, which is accessed through tcp or ssl protocol, and I need visit from public IP.
Does ...
4
votes
0
answers
1k
views
Proxy Error 502 Openshift
I'am using Openshift Demo in my local machine and Drupal project, when i submit in a form.php i need to create an app with the REST API with the curl lib, and i get the :
Proxy Error 502
The proxy ...
3
votes
2
answers
4k
views
openshift v3 sed couldn't open temporary file
hi i tried to deploy my docker image to openshift online v3 but failed with message
sed: couldn't open temporary file /etc/php/7.0/apache2/sedJpqwn4:
permission denied
my docker image contain ...
3
votes
1
answer
2k
views
Confused about deplyoing application on openshift server using git
I am using openshift server to host my php application. I have added files to my server using sftp to ~/app-root/runtime/repo directory. The same files are accesible over the web. But when I git clone ...
3
votes
2
answers
2k
views
How can I composer update on OpenShift?
I am trying to use Slim on OpenShift with a free node. I can run composer update from the SSH sessions without any problem.
The only problem is every time I want to commit files through git I have ...
3
votes
1
answer
6k
views
Static IP address of Openshift app [closed]
How to find static IP address of my non scalable app(free tier). I need it for My dns management A(HOST)entry field.any rhc window command
3
votes
3
answers
1k
views
.env/user_vars Environment Variables are returning NULL
I am trying to setup Laravel 5.2 on Openshift using
https://github.com/boekkooi/openshift-cartridge-php
https://github.com/boekkooi/openshift-cartridge-nginx
I am able to set the user variables like ...
3
votes
2
answers
840
views
404 Not Found error after commit changes on PHP application Openshift
I'm having problems with my PHP applications, I have created and deleted several of them because everytime I commit changes my application crushes and it shows the "404 Not Found" error.
I'm sure ...
3
votes
1
answer
2k
views
How to connect to Openshift database using PhpStorm?
I've tried to connect to OpenShift MySQL database using the following settings:
And
but I've got following error message:
Connection to ConnectionNAME failed
java.sql.SQLException: ...
3
votes
1
answer
854
views
Upload file using PHP on OpenShift
I'm trying to upload an image using the following code:
index.php:
<form action="upload_photo.php" method="post" enctype="multipart/form-data">
<p>
Upload a new photo to the ...
3
votes
1
answer
554
views
wordpress on openshift custom domain "too many redirects" error, works on openshift default domain
wordpress on openshift custom domain "too many redirects" error, works on openshift default domain
curl request on custom domain does not work
curl -vvv http://www.hobbyhap.com/h
...
3
votes
1
answer
2k
views
Access uploaded file on $OPENSHIFT_DATA_DIR
I uploaded some images to the folder $OPENSHIFT_DATA_DIR/uploaded, but I can't seem to retrieve those files using:
$_ENV['$OPENSHIFT_DATA_DIR'].'uploaded/filename.jpg';
The error message was ...
3
votes
0
answers
2k
views
OpenShift WordPress - How to define WP_CONTENT_DIR and WP_CONTENT_URL correctly to fix broken theme options in some themes?
The theme options panel does not load correctly with certain themes on OpenShift.
According to the theme developer this is because the theme
is built using the redux options framework. The ...
2
votes
2
answers
2k
views
OpenShift action hook deploy issues
I have a symfony 2 project I am trying to launch on OpenShift online. I created the directory as required and running symfony locally works perfect.
However, when I deploy to my OpenShift ...
2
votes
1
answer
2k
views
PHP Parse error caused by SVG
I have this SVG on the server. Everything is fine, until I try to use PHP to include it into my page. When I do that, it causes 503 errors to appear on all pages, not just the one I have the SVG ...
2
votes
2
answers
2k
views
How to update catridges on OpenShift?
Hey guys its a very general question, but I need your help.
I already have an application at [Edited - Removed my site's link] which uses php 5.3
& now OpenShift has a new catridge called php 5.4.....
2
votes
2
answers
1k
views
PHP 5.4 on RedHat Openshift Online
I'm trying to explore openshift as a possible service to use for a project or two.
I require PHP 5.4 due to the fact that a dependency I'm using makes use of PHP Traits.
Obviously the default on ...
2
votes
2
answers
540
views
Upload HTML website files to Openshift PHP 5.4
This is my first website (website itself is all done). I'm trying to upload my website files to my Openshift PHP 5.4 domain so when I click my OpenShift domain url, my website appears (pretty simple, ...
2
votes
1
answer
1k
views
silex routes not working
I;m having a problem with my routing on a silex app I am deploying.
I have successfully deployed the app using OpenShift you can see the site here.
The problem is when I try to go to any page except ...
2
votes
1
answer
3k
views
Deploy Laravel application on OpenShift
I have git pushed my entire Laravel code base for the application that I had created on my localhost to my OpenShift server. But nothing seems to have come out of it. The webpage is still blank. Can ...
2
votes
1
answer
1k
views
How do file permissions work on OpenShift?
I think I'm misunderstanding something fundamental about file permissions in an OpenShift PHP app. How do they actually work?
I develop on OSX and push changes using SourceTree. When I log in to ...
2
votes
1
answer
543
views
Openshift App defaults back to php 5.3
I have a wordpress app hosted on openshift, deployed using the php-5.4 cartridge. As of today it is using the php-5.3 binary again, which throws a lot of errors. I have restarted the application as ...
2
votes
3
answers
920
views
Schedule php script at certain date to just run once in Openshift
I need to develop a web application to let me scheduled tasks at certain date.
I have checked cron jobs and looks like is just for periodic tasks. In the other hand I just need schedule a single task ...
2
votes
1
answer
1k
views
503 Service Unavailable, PHP 5.3 Web App
My PHP wordpress app (reversiblean-reversiblean.rhcloud.com) returns HTTP Error '503 Service Unavailable, No server is available to handle this request.', ongoing for 1d 22h
I haven't made any ...
2
votes
1
answer
7k
views
Suppress "Ambiguous class resolution" warning on composer dump-autoload -o
I'm in the follwoing situation:
I want to deploy a php-app via "git push" on openshift. Dependencies are resolved via composer. The composer.lock file (locking the dependencies to the specific wanted ...
2
votes
2
answers
2k
views
Openshift 3 CronJob inside running container
If I understand it correctly, you can configure Openshift to run cronjobs which will run a job periodically. Also a job seems to run a new container each time the cronjob fires.
I need a way to run a ...
2
votes
1
answer
997
views
Joomla 3.5.1 on Openshift MySQL 5.5 out of sort memory
Fresh install of Joomla on OpenShift and when I open go to Extensions > Modules, i get the following error message:
Error
Out of sort memory, consider increasing server sort buffer size SQL=SELECT a....
2
votes
1
answer
438
views
Laravel 5.0 git push failed in openshift
When i push my project in openshift it's show some error and after that home page show blank. Please tell me how to overcome this problem.
Show this Error:
remote: Migrating storage and log ...
2
votes
1
answer
579
views
How do I run a C++ binary on OpenShift via PHP?
I SSH'd into my OpenShift application and compiled the C++ file using gcc and then downloaded it to my computer (for backup). I added it to git repo and pushed it.
How do I execute it in the current ...
2
votes
2
answers
1k
views
Where exactly is the document root in my openshift server?
I'm trying out OpenShift for the first time. I'm using the php-5.4 cartridge and I'm trying to deploy a Laravel project.
Laravel requires the document root to point to the public directory which is ...
2
votes
1
answer
182
views
How to push many times and deploy once a day on openshift jenkins
I am running a php application on openshift and it's live.
I'm using jenkins for continuous integration but I have an issue.
Everytime I push my changes to openshift's git repository, jenkins builds ...
2
votes
2
answers
1k
views
Openshift.com - unable to connect with mysql
I am trying to establish a connection with mysql-5.1, but it shows errors like "could not connect" or when I change the hostname "Could not connect: No such file or directory".
My file reads like ...
2
votes
1
answer
804
views
phabricator on redhat's openshift
I installed phabricator on openshift using a quickstart from github
https://github.com/CodeBlock/phabricator-openshift-quickstart
I got it running up fine, but I now have two issues:
1.) A setup ...
2
votes
1
answer
173
views
Connect to Mongo via PHP
I have an OpenShift Dev. account. I just installed Mongo and RockMongo. I am not running node.js.
Off of the RockMongo interface they have a link to this:
http://www.php.net/manual/en/book.mongo.php
...