How to use code igniter in ubuntu web server? - codeigniter

I have a working ubuntu web server made by myself. PHP, mysql and every thing is working well for websites that are created without codeigniter. The thing is I have a web site that uses the codeigniter frame work. but I don't know how to configure my web server to work with codeigniter.
When i go to localhost keeping the default files browser is showing the codeigniter welcome message.
When I remove the application folder and paste my application folder that is having my php app it is showing an error saying:
Warning: require(../application/config/constants.php): failed to open
stream: Permission denied in
/opt/share/php/system/core/CodeIgniter.php on line 64
Fatal error: require(): Failed opening required
'../application/config/constants.php'
(include_path='.:/opt/share/php/system:/usr/share/php') in
/opt/share/php/system/core/CodeIgniter.php on line 64

Related

laravel not wroking on hosting

Hello world i just completed developing laravel web in the localhost everything work fine but when i Booking hosting in webhostface.com i have tow problem Error one is
file_put_contents(D:\web\API\storage\framework/sessions/r62WPTDKAhf5shlupWGhJzMv5U9BtEdzxrKYaGN5): failed to open stream: No such file or directory
and the problem tow is
Class 'Illuminate\View\Factory' not found
Knowing that I have made sure that all project files are up and there is no loss of files

How to configure/enable php-phantomjs on shared hosting server

I am using PHP-Phantomjs http://jonnnnyw.github.io/php-phantomjs/ to capture the content of my website, tools I am using Laravel v5.0 and PHP-Phantomjs v4.0 it is working perfect on my local MAC machine but the problem is.
I have uploaded files manually as I had to do always to the server and there is no difference in files, but when I try to generate image following error occurs.
FatalErrorException in ContainerBuilder.php line 419:
syntax error, unexpected 'finally' (T_STRING), expecting catch (T_CATCH)
I think the phantomJS exec file I have uploaded is not compatible, or is there something else I have to do to enable the phantomJS on GoDaddy server?
You're getting this error because, finally block of try-catch was added in PHP 5.5. So the reason it wont't work, you have older version of PHP on your production server.

Magento - Authentication Credentials Invalid

I am having an error trying to make a request:
Then when I submit I have the next error:
The 1003887036428 error report file:
Recently the system worked like a charm but it has to migrate to another host and this error started to appear in the actual hosting. I dont know why.

Can't get access to file on localhost under Windows

Periodically after branch downloading from github Yii shows such an issue:
copy(Z:\home\localhost\www\insur\insurance\assets\c75d288a\css\_notes\dwsync.xml) [<a href='function.copy'>function.copy</a>]: failed to open stream: Permission denied
(/_notes/dwsync.xml - is a file created by DreamWeaver automatically for developer's notes).
I can't figure out following:
Why Yii tries to implement copy($path,$dst.DIRECTORY_SEPARATOR.$file); for that file (it's here: [site_root]\yii\framework\utils\CFileHelper.php(130))?
Why an access error is possible on Windows localhost?
What exactly is an error source - Windows, Apache or Yii (or maybe DW)?
What is solution?
So a real Guru needed!
I believe that here is one!
Generally Yii Assets Manager will try to publish (or republish) copies of diffirent resources (img, css, js, ..etc) used by your app (made by you or nativly in the framework, e.g Gii module stuff)
An access error can happen in localhost if you didn't set needed permission to web-server process. But in this exact case i think the web-server can not find the folder from the begining.
It is a joint crime between Yii & Apache. Yii CAssestsManager expects an assets folder, Apache can't find it and complains
Proposed Solution:
Make sure you have a folder named assets in your App Root and make sure it's writable by the web server process!!
To understand more about Yii Assests check this wiki-post

My website is throwing "PHP Fatal error: Call to undefined method CI_Lang::lang()"

I created a website using CodeIgniter Framework 2.1.0 that was originally working well. Yesterday, I integrated this i18n code into the site for multi-language support.
Now, when I upload my site to cpanel and open it, I get this error in my log file:
[21-Nov-2011 10:19:04] PHP Fatal error: Call to undefined method CI_Lang::lang() in XXXX
However, the website is working well on my localhost server (xampp for Windows). What's wrong?
See the thread attached to the library: http://web.archive.org/web/20120112092127/http://codeigniter.com/forums/viewthread/179036. In the first post is attached a modified library that claims to alleviate the buggyness of the original.
There is also a post on the first page there referencing an error similar to yours:
After copying the files as described in the article I get the
following error: Fatal error: Call to undefined method
CI_Lang::CI_Lang() in
/www/websites/audio-machinery/application/core/MY_Lang.php on line 32
Though he seems to be calling CI_Lang, not Lang. His solution appears to have been to use the code attached to the forum thread.
Also, cpanel is a control panel for hosting, not a hosting provider. But your hosting provider may be causing issues (e.g. if using older versions of PHP which do not work with newer version of CI. Often hosting providers will give you the ability to choose which version of PHP you are using--usually found in cPanel).
have you uploaded ALL the new files to your live server? that error implies that the code is not found or available to the script.
I came accross the same problem.... it was working fine on localhost but when loaded on live server it gives me undefined error... the problem appears becuase I created file with name My_Lang.php and My_Config.php as on live server it is case sensitive.... so I changed it to MY_Config.php and MY_Lang.php .... it works fine now.... Hope it will work for you too

Resources