Run Joomla live site on local server - php

I'm trying to run a copy of a joomla site (that works perfectly on the hosting) but, when I put all its files on my directory and install its BD just works administrator site but the site itself keeps in white screen.
I update its configuration file (configuration.php) exactly:
-DB
User
Password
Host
DB & DB prefix no changes needed
-Logs
log_path = 'C:\wamp\www\sitename\logs'
tmp_path = 'C:\wamp\www\sitename\tmp';
I don't know what to do, I don't understand (I'm new with Joomla)
Joomla version: 3.5.1
PHP: 7.0

A white screen usually is a sign of a server error of any kind. A first step to identify the underlying problem is to enable the debug mode and set the error reporting to development. You should then get an error message instead of the white screen.
In general, it is a good idea to use a tool like Akeeba Backup to transfer sites. It takes care of some environmental differences between the production server and localhost. You can even utilise another database management system.

Its not much complicated.. As you said you have already configure DB, Prefix, Host and Password.
So verify it again and suggest to check your localhost PHP version and online PHP version. Its create problem if your PHP version and live PHP version are different.
And make sure the PHP libraries you used on live site, these all need to install on your local PC too.
and make error_reporting maximun to check exact error and tell me error you get.
Please do this and if still you have issue than please wirte comment me, we will find more about your issue.
Thank You.

Related

Installing OpenSIS?

Im using OpenSIS version 5.2. I am trying to install it but after step 2 it just shows a blank box, I cannot proceed to step 3. I have installed this successfully in my other computer but in this one I cannot. They have the same apache, mysql, and PHP version. What should I do?
Thanks in advance.
i hope im not too late. I had the same issue when installing openSis. The third page just loaded blank with no errors. Turns out I am on php 7.0 which dropped all support for php-mysql extension. So i now have to downgrade to php 5.6 or something. Hacked the source a bit and this error gave me a clue:-
An old question but still this problem exists and the solution to that is:
Open the php.ini file in your PHP folder and search for max_execution_time.
When you find it, increase it to 3600 and save the file. Maximum execution time of each script, in seconds, i.e. max_execution_time=3600
Then restart Apache.
Try openSIS installation again.
Basically turned error logging on and it turns out the blank page was caused by the session_state directory not have the correct permissions. That is for my install the PHP.ini file had put it in my documents and settings\local settings\temp\php or something like that. What you need to do is change the directory in the PHP.ini file to point to say c:\temp (make sure it exists!) and set the permission. To fault find grant everyone access to see if it works then work back from there.
The next issue was the install wouldn't connect to my SQL Server express database, so I was madly replacing dll's as per the WIKI!
Turns out though that the SQL Server express install by default doesn't allow named pipes or TCPIP connections hence cannot connect! You need to check this protocols are enabled
To enable TCP/IP:
From the Start menu, choose All Programs, point to Microsoft SQL Server 2005, point to Configuration Tools, and then click SQL Server Configuration Manager.
Optionally, you can open Computer Manager by right-clicking My Computer and choosing Manage. In Computer Management, expand Services and Applications, expand SQL Server Configuration Manager.
Expand SQL Server 2005 Network Configuration, and then click Protocols for InstanceName.
In the list of protocols, right-click the protocol you want to enable, and then click Enable.
The icon for the protocol will change to show that the protocol is enabled.
After this it was smooth. WIKI needs updating badly!

I am really confused and frustrated about my php website and mysql connection

So basically I've created a MYSQL database that holds information about a gaming server player information, it's loaded into this PHP website that I created just 2 days ago (I'm completely new to PHP, I only started experimenting on it 2 days ago). So I had it all fixed up but on a localhost, it could fetch the data from the mysql database but only in the localhost, today I wanted to host a free mysql hostname is: fdb3.runhosting.com username: 1141497_damagedz and ofcourse I know the password. But when I'm trying to type this in via my PHP code in the db_connect line it gives me error saying it fails to connect at line 13 which is the line of $db_connect line, before it did work under the localhost but just now it doesnt work because I've deleted 3 files from xampp but surely that shouldnt matter now since its hosted on a whole different place like fdb3.runhosting.com ??
Also I'm using Adobe Dreamweaver to make the PHP website, before I just had to type in
http://localhost/tester.php
to open up my tester.php website that I've been working on, but now after I deleted the xampp it wont open this so I can't really tell what I'm doing or does it work or not, this is after I deleted my xampp, which is after I deleted my 3 files from xampp. So you can see i'm really confused and I do not know how to fix this at all, I don't know why db_connect at php gives me errors when clearly my fdb3.runhosting.com mysql database works just fine... I've created tables there too. Also how may I run my tester.php file without the localhost? Please tell me I'm really confused and really need help, thank you!
"I've deleted 3 files from xampp but surely that shouldnt matter"
Which 3 files and how do you come to that conclusion? Everything you say tends to indicate the reverse to be true!
Re-install XAMPP is the logical first option. Backup your htdocs folder then re-install. Don't know if you'll need the backup or not (I suspect not)
I agree with David.
It is highly unlikely you can use the remote database at fdb3.runhosting.com using PHP scripts on your local computer. XAMPP includes a MySQL database server and had you not deleted phpMyAdmin you would be able to use that to browse the databases on it.
Develop the website on your local XAMPP install and local XAMPP database, then export the database to the remote host and copy the files across when you are ready to view it online.
It's also worth keeping the XAMPP install folder and others because it contains information on XAMP and I believe allows you to check whether the version you're running is the latest one.

Error when connecting to database Zend, MySQL, MAMP, Mac, OSX

I have just purchased a MacBook Air and am having trouble setting up my development environment. On windows I used WAMP with fairly few problems, and on OSX I'm using MAMP.
the windows development environment is working as needed, and I'm using an exact copy to start out on the mac
When I visit the phpMyAdmin page I am able to log in, and make changes to the database.
My application is based off of the Zend Quickstart tutorial, so I am using the error controller that comes with that (I haven't changed it)
My application will work up until the point I call to connect to the database:
$dbAdapter->getConnection(); results in:
"An error occurred
Application error"
As you can see there is no information about the error. Typically an error will have a code and description, whatever is causing this error is not providing any information.
Please help! Thanks.
EDIT: The answer was indeed that my virtual host was not set up correctly, and left the environment variable undefined, which caused the application to run as if in production. This caused the application to attempt to access a database that doesn't exist on my local dev env. Thanks so much for the help!
Current OSX has built in php, apache. you need to install mysql. for few months I'm using Zend server community edition. You may try this. its easy to install and maintainable through GUI

how to make xampp environment behave the same as my remote shared hosting environment?

i don't know how to say that in technical terms. and i think this is the reason to why i cant get good answer from Google.
i have xampp on my local winxp machine. i use it for developing websites locally then upload these files to my clients shared hosting accounts.
the problem that in 2 years i have always found differences between how xampp works and how the web server work.
some code work locally but dont remotely and the opposite. also flash behave differently on xampp than the remote web server.
is there is a way i can get the server configuration and use it with xampp like get the server php.ini and use it with xampp?
In fact XAMPP may behave different than your production system's web server.
This might be annoying at first, but it is definitely manageable.
Some thoughts:
Run
<?php
echo phpinfo();
?>
on both systems and check different features.
If a feature of PHP is marked as experimental, just drop it.
In case you need to deploy on different production servers, prepare a script called grabProperties.php and add code which checks essential properties you know to be in use. Output the result in some normalized way, so you may use another script to compare results and prepare a nice report.
Certain features activated in XAMPP are not enabled on most web hoster's server - e.g. Flash support. Before using these features, first ensure they are present on your production system.
You are always free to change php.ini. Thus, you may enable or disable modules in such a way, that you dev system mimics your production system's settings.
I wonder, that Flash problems relate to PHP itself. More likely, problems relate to erroneous code.
That said...
I do write PHP for quite some time. Upgraded XAMPP on dev and Apache/PHP/MySQL on production system several times. But not a single application failed to work after the upgrade.
Several times, I moved from dev Windows and production Linux to dev Mac OS X. Even there, everything worked fine immediately.
Needless to note, that not a single line of code needs to be changed between dev and prodution systems.
The essential point to to write high quality code is based on a defensive style.
Check as much input parameters of as much methods as possible (see assert()).
Log all errors to a log-file and visualize it using your admin backend (see set_error_handler()).
Use type-hints as often as possible (see type-hinting)
Set the maximum error level and code in such a way, that not a single warning appears.
Still unsatisfied?
In case you are still unsatisfied with XAMPP, prepare a virtual machine with VirtualBox, install some Linux edition and enable apache, mysql and php.
If your hoster's server is on linux - which is very likely - there should't be a big problem configuring the virtual LAMP server in a similar way.

PHP on windows environment Vista

Do I need a special library to run PHP on Windows environment Vista?
I can write simple message like echo "hello" but whenever I try to run any these scripts no error nothing display on the page http://php.net/manual/en/function.crypt.php.
I'm new to PHP please help
When in doubt...
<?php echo phpinfo(); ?>
If that code outputs information regarding your PHP version and settings, PHP is installed correctly.
There would be errors in your code if nothing is displaying. Post the code you are having trouble with and we can help you out.
Have you actually set up a local server? You'll need this to run PHP scripts. For a newbie I'd recommend WampServer since it's really easy and handles all the complexity of installing a server. Once installed and running, try http://localhost/ in your web browser.
Based on your comment though, I think the problem is that the sample code on the page you posted won't work on their own, you'd need to combine them with other things. For example the first one references a variable $user_input which you'd replace with a variable taken from user input (eg a form) on your site.
I suggest finding some tutorials online (or buy a book) and walk through various proper examples to familiarise yourself with PHP.
Do you have PHP / Apache installed at the moment? If you don't, try XAMPP. It comes with an easy and convenient installer.
Like most languages your computer must have the language/compiler installed in order develop and run scripts/applications. PHP was originally designed for web development so you won't usually find it installed on PCs by default.
The easiest way to develop PHP is to upload the scripts to a web server that has PHP installed and then test in your browser in the same fashion that you'd test an HTML page.
Otherwise to do it locally on your computer you can install a web development environment which acts like a web server. Essentially eliminating the upload step.
I believe the most popular for Windows is Wamp Server

Categories