I've spent the last 3 years attempting to get a website partner for an International trading website, but now I have given up on that idea and decided to learn development alone, although still open to a partnership, however at first I installed XAMPP version 1.7.7 and added a CodeIgniter based registration script, but now get this message - Unable to connect to your database server using the provided settings. Filename: C:\xampp\htdocs\system\database\DB_driver.php Line Number: 124
With that problem, together with the CodeIgniter changes and the XAMPP new version 5.6.8 I've decided to upgrade both. However I want to keep the old versions to enable retrieving data that has been entered into the old versions. I prefer to keep the old versions separate so that I know what portions are old and new.
I have attempted to change the name of the old version of XAMPP but I'm unable to do that and get this response - "The action can't be completed because the folder or a file is open in another program." I guess the referred folders are "Apache" and "MySQL". I've gone into XAMPP Control Panel and note "Apache" and "MySQL" are "Running" and if I click "Stop" I get ERROR messages and they don't stop. I've done some research and found that I need to be logged in as "Administrator". I've gone into Win7 Control Panel - User Accounts - and found that I'm listed as "Administrator" password protected. I've tried rebooting but that does not help. I now need guidance but open to suggestions on alternative methods to upgrade that has the same effects as in the previous paragraph.
Being an administrator under XAMPP and an administrator under Win7 are two different things.
Right click the control panel exe file in XAMPP folder and click "Run as administrator" and then Exit the control panel.
If the XAMPP control panel is running the above can't be done and I found I had to reboot to start the control panel fresh, then carry out the above.
Once all of that was done, I renamed the XAMPP folder.
Related
We have a laravel app (Version 5.5*) deployed in WIndows Server 2012 R2. But our development stack is LEMP. Same codebase works fine in development STACK but fails in WINDOWS SERVER.
Problem:
In our App, there is a REPORT DOWNLOAD queueable job which reads data from database table and generates an excel file using box/spout package(version 2.7) depending on user input date range (daily,weekly,monthly, etc) .
When running the queue:work command from cmd as administrator,
$writer->openToFile(‘path/to/file’) throws an error : failed to open stream : no such file or directory.
See this image for code snippet throwing error
Solutions I tried:
Setting right permissions(full control Read & write) for Storage folder of my project (For Users, IIS_IUSRS,IUSR)
Setting right permissions(full control Read & write) for C:windows\Temp folder (For Users, IIS_IUSRS,IUSR)
Created symlink for storage folder inside public
FYI:
OS: windows server 2012 r2
PHP: 7.2*
Laravel: 5.5.*
box/Spout package: 2.7.*
** AT LAST GOT THE SOLUTION AFTER GOING THROUGH ANSWERS OF OTHER QUESTIONS RELATED TO THIS PROBLEM **
You can follow the following procedure:
Go to IIS Manager
Select your desired project (For example: myexampledomain.com) listed under Sites
Go to Security tab and you'll see the users listed with their permissions on the folder.
Now, click Edit button to go to a new window and click Add. In the text box,type IIS AppPool\MyApplicationPoolName.In our example it should be IIS AppPool\myexampledomain.com.
Click Check Name and you'll see the test change with underline.
Click Ok. Add the appropriate permission(Modify,read,write) to the newly created user.
That's it!!!
Thanks to all for responding.
I've recently upgraded from windows 7 to windows 10 and when installing GitHub desktop, I'm getting the following error:
"Application cannot be started, contact the application vendor."
When I click on details, there is the following error:
"Unable to install this application because an application with the same identity is already installed."
I tried several troubleshoots, such as:
running the .exe file as administrator;
deleting the 2.0 folder from Local/apps/
disabling windows defender
But none of them seems to work. I cant understand what the problem may be, since I had no trouble installing github desktop on windows 7.
EDIT This method solved my problem:
Hold Windows button + R
Type in %TEMP%
Delete the entire content of temp.
I fixed this problem by adding permissions to the UserName for the of the folder containing GitHub.exe:
Using the explorer paste "%UserProfile%\AppData\Local\Apps\2.0
In the search box write "github.exe"
In the result list right-click the file & select open file location.
Right click the folder -> Properties->Security
Click [Edit...] for "Group or user names:"
Add the account user name to the list giving it full permission.
This may not apply to your situation, but here is what fixed the problem for me:
Find this file:
C:\Users[YOUR USER NAME HERE]\AppData\Local\GitHub\TheLog.txt
In that file, search for this string:
"System.Security.SecurityException: Requested registry access is not allowed."
If you find that, look down from that line, one at a time, until you find mention of some specific application. For me it was MS Visual Studio:
"at GitHub.IO.ExternalProgramLauncher.IsVisualStudioInstalled()"
Running as an administrator, run regedit and look for keys related to the application in question. If access to reading them is denied, rectify that by right-clicking on the name of the key and choosing 'permissions'. (I decline to provide instructions on how to use the permissions interface here, but it is fairly straightforward) If you can grant yourself permission, that may fix your problem. It worked for me.
If you want to find the exact correct key, download and use a tool from MicroSoft called 'Process Monitor'. Unfortunately, even when you filter to show only registry events, you will still have at least 25,000 or so to look through, and the list is not sortable. >_< This was not exactly easy, but by scrolling up from the bottom and looking for 'ACCESS DENIED' in the unsortable 'Result' column for a while I was able to find the exact registry event where access was denied which caused GH DT to fail. In my case it was this key:
HKEY_CLASSES_ROOT\VisualStudio.DTE.14.0
I ran regedit using my admin account, and ran it 'as administrator', found the key and changed the permissions. Oddly, it only worked when I added 'Administrators' (plural). When I added 'Administrator', it still refused to allow access to the key.
Hope this is related to your problem, or someone's who reads this. :)
Simply right click on the installation file and run as admin. It will automatically adjust itself to your system settings and install without error.
Setting up TYPO3 on Windows using an Apache server poses some problems I've noticed. Solutions are sporadic and/or incomplete in many instances.
There are the requirements, not being able to connect to the backend, openssl not working and a few more.
So, how to setup TYPO3 on a Windows machine for development?
This answer was made with:
Windows 8.1
Ampps (Apache/MySQL)
GraphicMagick
Setting up Typo3 on a Windows machine using a local server
Apache & MySQL
Make sure you have a local server with Apache and MySQL, such as WAMP, XAMPP, Ampps or another.
Settings this up we'll call the "project" we're going to start: typotest
Create a folder in the "www" or "wwwroot" of your Apache server called "typotest"
Create a virtual domain for your project, in Ampps go to localhost/ampps/index.php?act=ampps_domainmanage (Make sure the server is up and running first!), called "typotest". This will make your project accessible through http:// typotest/ (remove space)
On your machine, go to `C:\Windows\System32\drivers\etc\` and open the "hosts" file in the folder with administrator. Add a record at the bottom: `127.0.0.1 typotest`. Save it and make sure it's there.
Open the Apache `httpd.conf` file in C:\Program Files (x86)\Ampps\apache\conf
Make sure the following lines are **not** commented in the file (remove `#`)
LoadModule rewrite_module modules/mod_rewrite.so
LoadModule ssl_module modules/mod_ssl.so
At the bottom of the file, add the following code
<IfModule mpm_winnt_module>
ThreadStackSize 8388608
</IfModule>
Save the file
Open the `php.ini` file in `C:\Program Files (x86)\Ampps\php` and make sure the following lines aren't commented (remove ';')
extension=php_fileinfo.dll
extension=php_openssl.dll
//edit these lines to be the same
post_max_size = 32M
max_execution_time = 240
We're done with Apache.
OpenSSL
Go to here, or if the link is still active, straight here. Download the most recent 32-bit release of OpenSSL for Windows. I used 2 installations, not sure which one was the correct one.
Visual C++ 2008 Redistrubutable 1.7MB installer (Description: Having problems with error messages when trying to run OpenSSL? This will likely fix the problem. Only works with Windows 2000 and later. Although there is a "newer version" of this installer, this is the correct version to install.)
Win32 OpenSSL v1.0.1j (Description: Installs Win32 OpenSSL v1.0.1j (Recommended for software developers by the creators of OpenSSL). Note that this is a default build of OpenSSL and is subject to local and state laws. More information can be found in the legal agreement of the installation.)
That should take care of having OpenSSL installed on your Windows machine.
Additional software
By default, Typo3 cannot handle images out of the box. For it to be able to handle these you need to install GraphicMagick and a setting needs to be modified. The setting we'll get to later during the configuration of Typo3 itself.
The software you'll need is this, download the latest version of GraphicMagick. Get the version that's right for your system (and preferably corresponds to your server). You have the choice between 32/64bit, obviously, but also Q8 and Q16, these correspond to image quality (higher is better).
Windows
To setup Windows to have globally usable variables we need to add them to the system settings. I again used two methods and it might be a question of either/or.
Go to "System" (Windows key + Pause/Break key) (Control Panel/System)
Select on the left: "Advanced system settings"
Go to tab: "advanced"
Hit button: "Environment variables..."
Click "New..." to add a new variable
Name this new variable: "OPENSSL_CONF"
Remember, I used Ampps, so the Variable Value for me is: `C:\Program Files (x86)\Ampps\apache\conf\openssl.cnf` -> Press "OK"
Scroll down in the variables list and select variable: "Path"
Click "Edit..."
Behind the existing variable add: `;C:\Program Files (x86)\Ampps\apache\bin` (including the semicolon at the front!!!)
Save it
Reboot Windows at this time
PHPMyAdmin
Open PHPMyAdmin and create a new database named "typotest". Also create a user for this database with the same name and password. (This is for convenience's sake of this setup, these 3 are ideally different and this practice should never happen on a production environment!)
Typo3 Installation
Download Typo3, I've used v6.2.6. Extract it to the earlier created folder in the "www" or "wwwroot" folder of your local server. Next:
Create a file in the "/www/typotest" or "/wwwroot/typotest" called "FIRST_INSTALL", no extension for this file.
Now start the installation by going to `typotest/typo3/install` in a browser.
Follow the 5 steps of the installation, entering values created above where necessary
**Stop** before you log into the backend!
Open the file `/www/typotest/typo3conf/LocalConfiguration.php` in an editor
Search for the following variables and edit to settings below:
'loginSecurityLevel' => 'normal'
'devIPmask' => '*'
'displayErrors' => 2
Now refresh the login page and login.
In the left menu go to "Install" and select the "Unlock the Install Tool" button
Enter password and continue
Go to "All configuration"
Select "Toggle all" below
Search for "rsa"
Where it says: "[BE][loginSecurityLevel] = rsa" change "rsa" to "normal" in the inputfield below.
Modify [FE][activateContentAdapter] = 1 //This enables the viewing of images [source](http://stackoverflow.com/questions/25265924/typo3-distribution-png-issue-when-posting-images)
Modify [GFX][im_path] to the path of your GraphicMagick installation (e.g.: C:\Program Files\GraphicsMagick\ )
Modify [GFX][im_path_lzw] to the path of your GraphicMagick installation (e.g.: C:\Program Files\GraphicsMagick\ )
Modify [GFX][im_version_5] to "gm" (short for GraphicMagick)
Choose "Write configuration" at the bottom of the page. This saves this setting from becoming reset to default "rsa" for BackEnd ([BE]) login. (Make sure to change this back when going to production!)
This might not help everyone out there but it's all the stuff I had to change to get Typo3 to work and it might help a few future souls that have the same or similar troubles.
I am trying to enable some extensions in my php. If I want to initiate the changes I have to reset the apache server in XAMPP. But I just keep getting a window that says xampp-control.exe has stopped working and gives me options:
Debug Program
Close Program
Check Online for a Solution and Close Program
No matter which option I choose it will then give me this Application Error:
Exception EAccess in modele 'xampp-control.exe' at 001ABEFE. Access Violation at address 005ABEFE in module 'xampp-control.exe'. Read of address 00000042. I have read that I should just install a WAMPP server. Is there a way I can successfully reset the Apache Server?
Possible workarounds are listed on XAMPP's forum here
There are some possible workarounds:
Enable back the write privileges and to be aware of this potential issue
Modify the ini file with an editor the properties you need or
To run the XAMP Control panel as administrator
Running it as administrator worked for me.
I have a very simple VS2005 deployment project that aims to install for all users on a PC.
All the application files are written to %Program Files%\MyProg. A shortcut is created in the start menu and the startup folder. No registry settings or anything else are created. I have set
'InstallAllUsers' to true.
The created MSI runs fine and installs the software. It works without any problems when running under the user account from which it was installed.
When logging in as another user, the start menu and startup icons are present. It attempts to launch the application however an installation window pops up and states that 'the feature you are trying to use is on a network resource that is unavailable.' The installer will only proceed if pointed to the original MSI file.
Why does this happen? I want my application to be installed completely for all users when it is installed by a single user.
edit: Solution
I was getting similar event log messages as shown on this page. In my case it turned out to be as simple as ensuring that the User's Program Menu had its 'AlwaysCreate' attribute turned to false. If it was true, windows would try and recreate the folder when a new user logged in. This somehow required the invocation of the installer and thus resulted in the 'please insert the installation media' prompts.
It is actually kind of hard to say without some more information. I would recommend checking on the rights in the installed folder (seeing if only the one who installed it has rights) and also checking the file list for the directory (to make sure VS didn't automatically place some files in the user profile). Let me know what comes out from those two steps and we can try to keep digging if that didn't shed any light on it.
Keep in mind chances are this is most def not specific to Visual Studio, look at this MS support article here where the same message is coming back for office.
I know this is an old post but I thought I'd add another cause and solution in case the above didn't work for you.
There is a bug in VS Setup and Deployment Projects which results in registry values being entered into HKCU instead of HKLM irrespective of the InstallAllUsers property being set to true.
You must use Orca msi editor to change the registry root for "DesktopFolder" and "ProgramMenuFolder" from either 1 or 2 to -1. The issue cannot be resolved via VS.
http://www.qa.downappz.com/questions/vs-2010-deploys-per-user-features-during-install-which-require-access-to-install-media.html